[REACTOS]
[reactos.git] / reactos / dll / win32 / jscript / CMakeLists.txt
1
2 add_typelib(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_USE_MATH_DEFINES)
10
11 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
12
13 spec2def(jscript.dll jscript.spec)
14
15 list(APPEND SOURCE
16 activex.c
17 array.c
18 bool.c
19 compile.c
20 date.c
21 decode.c
22 dispex.c
23 engine.c
24 error.c
25 function.c
26 global.c
27 jscript.c
28 jscript_main.c
29 jsregexp.c
30 jsstr.c
31 jsutils.c
32 lex.c
33 math.c
34 number.c
35 object.c
36 parser.tab.c
37 regexp.c
38 string.c
39 vbarray.c
40 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
41
42 add_library(jscript SHARED ${SOURCE} rsrc.rc)
43 add_idl_headers(jscript_idlheader jscript_classes.idl)
44
45 if(NOT MSVC)
46 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
47 #allow_warnings(jscript)
48 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
49 endif()
50
51 set_module_type(jscript win32dll)
52 target_link_libraries(jscript wine)
53 add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
54 add_pch(jscript jscript.h)
55 # jsglobal.tlb needs stdole2.tlb
56 add_dependencies(jscript jscript_idlheader stdole2)
57 add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
58 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)