[SDK] One step further towards ReactOS source code tree restructure: the sdk folder...
[reactos.git] / reactos / dll / win32 / jscript / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_USE_MATH_DEFINES)
5
6 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7 spec2def(jscript.dll jscript.spec)
8
9 list(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
38 list(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
44 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
45
46 add_library(jscript SHARED
47 ${SOURCE}
48 rsrc.rc
49 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
50
51 add_idl_headers(jscript_idlheader jscript_classes.idl)
52 add_typelib(jsglobal.idl)
53 add_dependencies(jscript jscript_idlheader stdole2)
54 set_module_type(jscript win32dll)
55 target_link_libraries(jscript uuid wine)
56 add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
57 add_pch(jscript jscript.h SOURCE)
58 add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)