2 add_typelib(jsglobal.idl)
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
11 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
13 spec2def(jscript.dll jscript.spec)
40 ${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
42 add_library(jscript SHARED ${SOURCE} rsrc.rc)
43 add_idl_headers(jscript_idlheader jscript_classes.idl)
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")
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)