[CMAKE]
[reactos.git] / dll / win32 / jscript / CMakeLists.txt
1
2 add_typelib(jsglobal jsglobal.idl)
3 add_dependencies(jsglobal stdole2)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 add_definitions(
9 -D__WINESRC__
10 -D_USE_MATH_DEFINES
11 -D_DLL
12 -D__USE_CRTIMP)
13
14 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
15
16 spec2def(jscript.dll jscript.spec)
17
18 list(APPEND SOURCE
19 activex.c
20 date.c
21 dispex.c
22 engine.c
23 error.c
24 jscript.c
25 jscript_main.c
26 jsutils.c
27 lex.c
28 parser.tab.c
29 math.c
30 number.c
31 object.c
32 regexp.c
33 string.c
34 array.c
35 bool.c
36 function.c
37 global.c
38 rsrc.rc
39 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
40
41 add_library(jscript SHARED ${SOURCE})
42
43 set_module_type(jscript win32dll)
44
45 target_link_libraries(jscript wine)
46
47 add_importlibs(jscript
48 msvcrt
49 user32
50 ole32
51 oleaut32
52 advapi32
53 kernel32
54 ntdll)
55
56 add_dependencies(jscript jsglobal)
57 add_cab_target(jscript 1)