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