1 2add_definitions( 3 -D__WINESRC__ 4 -D_USE_MATH_DEFINES) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(jscript.dll jscript.spec) 8 9list(APPEND SOURCE 10 activex.c 11 array.c 12 bool.c 13 cc_parser.tab.c 14 compile.c 15 date.c 16 decode.c 17 dispex.c 18 engine.c 19 error.c 20 function.c 21 global.c 22 jscript.c 23 jscript_main.c 24 json.c 25 jsregexp.c 26 jsstr.c 27 jsutils.c 28 lex.c 29 math.c 30 number.c 31 object.c 32 parser.tab.c 33 regexp.c 34 string.c 35 vbarray.c 36 jscript.h) 37 38list(APPEND jscript_rc_deps 39 ${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs 40 ${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs 41 ${CMAKE_CURRENT_SOURCE_DIR}/jsglobal.rgs 42 ${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb) 43 44set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}") 45 46add_library(jscript SHARED 47 ${SOURCE} 48 rsrc.rc 49 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def) 50 51add_idl_headers(jscript_idlheader jscript_classes.idl) 52add_typelib(jsglobal.idl) 53add_dependencies(jscript jscript_idlheader stdole2) 54set_module_type(jscript win32dll) 55target_link_libraries(jscript uuid wine) 56add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll) 57add_pch(jscript jscript.h SOURCE) 58add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all) 59