xref: /reactos/dll/win32/jscript/CMakeLists.txt (revision 7eead935)
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    compile.c
14    date.c
15    decode.c
16    dispex.c
17    engine.c
18    error.c
19    function.c
20    global.c
21    jscript.c
22    jscript_main.c
23    json.c
24    jsregexp.c
25    jsstr.c
26    jsutils.c
27    lex.c
28    math.c
29    number.c
30    object.c
31    regexp.c
32    string.c
33    vbarray.c
34    precomp.h)
35
36# cc_parser.tab.c/parser.tab.c have been generated with relative file paths...
37set_source_files_properties(cc_parser.tab.c parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
38
39list(APPEND jscript_rc_deps
40    ${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
41    ${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
42    ${CMAKE_CURRENT_SOURCE_DIR}/jsglobal.rgs
43    ${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
44
45set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
46
47add_library(jscript MODULE
48    ${SOURCE}
49    cc_parser.tab.c
50    parser.tab.c
51    rsrc.rc
52    ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
53
54add_idl_headers(jscript_idlheader jscript_classes.idl)
55add_typelib(jsglobal.idl)
56add_dependencies(jscript jscript_idlheader stdole2)
57set_module_type(jscript win32dll)
58target_link_libraries(jscript uuid wine)
59add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
60add_pch(jscript precomp.h SOURCE)
61add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
62