15aa68df787c0f393342fa27c556adfa228e684b
[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 ${CMAKE_CURRENT_SOURCE_DIR}/jscript.spec ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
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
38 set_module_type(jscript win32dll)
39
40 target_link_libraries(jscript
41 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def
42 wine)
43
44 add_importlibs(jscript
45 msvcrt
46 user32
47 ole32
48 oleaut32
49 advapi32
50 kernel32
51 ntdll)
52
53 add_dependencies(jscript jsglobal jscript_def stdole2)
54 add_livecd_target(jscript reactos/system32)