[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 -Disinf=!_finite
14 -Disnan=_isnan)
15
16 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
17
18 set_rc_compiler()
19
20 spec2def(jscript.dll jscript.spec)
21
22 list(APPEND SOURCE
23 activex.c
24 date.c
25 dispex.c
26 engine.c
27 error.c
28 jscript.c
29 jscript_main.c
30 jsutils.c
31 lex.c
32 parser.tab.c
33 math.c
34 number.c
35 object.c
36 regexp.c
37 string.c
38 array.c
39 bool.c
40 function.c
41 global.c
42 rsrc.rc
43 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
44
45 add_library(jscript SHARED ${SOURCE})
46
47 set_module_type(jscript win32dll)
48
49 target_link_libraries(jscript wine)
50 if(MSVC)
51 target_link_libraries(jscript uuid)
52 endif()
53
54 add_importlibs(jscript
55 msvcrt
56 user32
57 ole32
58 oleaut32
59 advapi32
60 kernel32
61 ntdll)
62
63 add_dependencies(jscript jsglobal)
64 add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)