2013-05-15 17:33:01 +00:00
|
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2013-05-15 17:33:01 +00:00
|
|
|
spec2def(vbscript.dll vbscript.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
compile.c
|
|
|
|
global.c
|
|
|
|
interp.c
|
|
|
|
lex.c
|
|
|
|
parser.tab.c
|
|
|
|
regexp.c
|
2018-01-20 12:39:40 +00:00
|
|
|
utils.c
|
2013-05-15 17:33:01 +00:00
|
|
|
vbdisp.c
|
|
|
|
vbregexp.c
|
|
|
|
vbscript.c
|
|
|
|
vbscript_main.c
|
2018-03-24 12:09:01 +00:00
|
|
|
precomp.h)
|
2013-05-15 17:33:01 +00:00
|
|
|
|
2019-04-06 21:35:37 +00:00
|
|
|
# parser.tab.c has been generated with relative file paths...
|
|
|
|
set_source_files_properties(parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
|
|
|
|
|
2013-05-15 17:33:01 +00:00
|
|
|
list(APPEND vbscript_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/vbscript_classes.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/vbsglobal.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp10.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/vbsregexp55.rgs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/vbsglobal.tlb
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/vbsregexp10.tlb
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/vbsregexp55.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(vbscript.rc PROPERTIES OBJECT_DEPENDS "${vbscript_rc_deps}")
|
2013-09-28 15:12:46 +00:00
|
|
|
add_idl_headers(vbscript_idlheader vbscript_classes.idl vbsglobal.idl vbsregexp55.idl)
|
|
|
|
add_typelib(vbsglobal.idl vbsregexp10.idl vbsregexp55.idl)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(vbscript MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
|
|
|
vbscript.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/vbscript.def)
|
|
|
|
|
2013-05-15 17:33:01 +00:00
|
|
|
set_module_type(vbscript win32dll)
|
2014-01-01 18:29:51 +00:00
|
|
|
target_link_libraries(vbscript uuid wine)
|
2013-05-15 17:33:01 +00:00
|
|
|
add_importlibs(vbscript oleaut32 ole32 user32 msvcrt kernel32 ntdll)
|
2013-09-28 15:12:46 +00:00
|
|
|
add_dependencies(vbscript vbscript_idlheader stdole2)
|
2019-04-07 19:00:33 +00:00
|
|
|
#add_pch(vbscript precomp.h SOURCE)
|
2013-05-15 17:33:01 +00:00
|
|
|
add_cd_file(TARGET vbscript DESTINATION reactos/system32 FOR all)
|