* Forgot this file.
[reactos.git] / reactos / dll / win32 / jscript / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_USE_MATH_DEFINES)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7 spec2def(jscript.dll jscript.spec)
8
9 list(APPEND SOURCE
10 activex.c
11 array.c
12 bool.c
13 compile.c
14 date.c
15 decode.c
16 dispex.c
17 engine.c
18 error.c
19 function.c
20 global.c
21 jscript.c
22 jscript_main.c
23 jsregexp.c
24 jsstr.c
25 jsutils.c
26 lex.c
27 math.c
28 number.c
29 object.c
30 parser.tab.c
31 regexp.c
32 string.c
33 vbarray.c
34 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
35
36 list(APPEND jscript_rc_deps
37 ${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
38 ${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
39 ${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
40
41 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
42
43 add_library(jscript SHARED ${SOURCE} rsrc.rc)
44 add_idl_headers(jscript_idlheader jscript_classes.idl)
45 add_typelib(jsglobal.idl)
46 add_dependencies(jscript jscript_idlheader stdole2) # jsglobal.tlb needs stdole2.tlb
47 set_module_type(jscript win32dll)
48 target_link_libraries(jscript uuid wine)
49 add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
50 add_pch(jscript jscript.h)
51 add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)