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