1 2add_definitions(-D__WINESRC__ -D__ROS_LONG64__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(vbscript.dll vbscript.spec) 5 6list(APPEND SOURCE 7 compile.c 8 global.c 9 interp.c 10 lex.c 11 regexp.c 12 utils.c 13 vbdisp.c 14 vbregexp.c 15 vbscript.c 16 vbscript_main.c) 17 18BISON_TARGET(parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c COMPILE_FLAGS "-p parser_") 19 20list(APPEND vbscript_rc_deps 21 ${CMAKE_CURRENT_SOURCE_DIR}/vbscript_classes.rgs 22 ${CMAKE_CURRENT_SOURCE_DIR}/vbsglobal.rgs 23 ${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp10.rgs 24 ${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp55.rgs 25 ${CMAKE_CURRENT_BINARY_DIR}/vbsglobal.tlb 26 ${CMAKE_CURRENT_BINARY_DIR}/vbsregexp10.tlb 27 ${CMAKE_CURRENT_BINARY_DIR}/vbsregexp55.tlb) 28 29set_source_files_properties(vbscript.rc PROPERTIES OBJECT_DEPENDS "${vbscript_rc_deps}") 30add_idl_headers(vbscript_idlheader vbscript_classes.idl vbsglobal.idl vbsregexp55.idl) 31add_typelib(vbsglobal.idl vbsregexp10.idl vbsregexp55.idl) 32 33add_library(vbscript MODULE 34 ${SOURCE} 35 ${BISON_parser_OUTPUTS} 36 vbscript.rc 37 ${CMAKE_CURRENT_BINARY_DIR}/vbscript.def) 38 39set_module_type(vbscript win32dll) 40target_link_libraries(vbscript uuid wine) 41add_importlibs(vbscript oleaut32 ole32 user32 msvcrt kernel32 ntdll) 42add_dependencies(vbscript vbscript_idlheader stdole2) 43add_pch(vbscript precomp.h "${PCH_SKIP_SOURCE}") 44add_cd_file(TARGET vbscript DESTINATION reactos/system32 FOR all) 45