xref: /reactos/dll/win32/jscript/CMakeLists.txt (revision 9592728f)
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    enumerator.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    regexp.c
33    string.c
34    vbarray.c
35    precomp.h)
36
37# cc_parser.tab.c/parser.tab.c have been generated with relative file paths...
38set_source_files_properties(cc_parser.tab.c parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
39
40list(APPEND jscript_rc_deps
41    ${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
42    ${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
43    ${CMAKE_CURRENT_SOURCE_DIR}/jsglobal.rgs
44    ${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
45
46set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
47
48add_library(jscript MODULE
49    ${SOURCE}
50    cc_parser.tab.c
51    parser.tab.c
52    rsrc.rc
53    ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
54
55add_idl_headers(jscript_idlheader jscript_classes.idl)
56add_typelib(jsglobal.idl)
57add_dependencies(jscript jscript_idlheader stdole2)
58set_module_type(jscript win32dll)
59target_link_libraries(jscript uuid wine)
60add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
61add_pch(jscript precomp.h SOURCE)
62add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
63