2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2012-05-01 17:20:47 +00:00
|
|
|
-D_USE_MATH_DEFINES)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-05-16 13:12:07 +00:00
|
|
|
spec2def(jscript.dll jscript.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
activex.c
|
2012-05-01 17:20:47 +00:00
|
|
|
array.c
|
|
|
|
bool.c
|
2015-03-25 15:58:08 +00:00
|
|
|
cc_parser.tab.c
|
2013-04-03 21:19:50 +00:00
|
|
|
compile.c
|
2011-05-16 13:12:07 +00:00
|
|
|
date.c
|
2013-04-03 21:19:50 +00:00
|
|
|
decode.c
|
2011-05-16 13:12:07 +00:00
|
|
|
dispex.c
|
|
|
|
engine.c
|
|
|
|
error.c
|
2012-05-01 17:20:47 +00:00
|
|
|
function.c
|
|
|
|
global.c
|
2011-05-16 13:12:07 +00:00
|
|
|
jscript.c
|
|
|
|
jscript_main.c
|
2016-03-03 13:24:43 +00:00
|
|
|
json.c
|
2013-04-03 21:19:50 +00:00
|
|
|
jsregexp.c
|
|
|
|
jsstr.c
|
2011-05-16 13:12:07 +00:00
|
|
|
jsutils.c
|
|
|
|
lex.c
|
|
|
|
math.c
|
|
|
|
number.c
|
|
|
|
object.c
|
2012-05-01 17:20:47 +00:00
|
|
|
parser.tab.c
|
2011-05-16 13:12:07 +00:00
|
|
|
regexp.c
|
|
|
|
string.c
|
2013-04-03 21:19:50 +00:00
|
|
|
vbarray.c
|
2018-03-17 12:11:29 +00:00
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2013-04-24 11:18:29 +00:00
|
|
|
list(APPEND jscript_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
|
2014-04-23 13:43:40 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jsglobal.rgs
|
2013-04-24 11:18:29 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
|
|
|
|
|
2014-02-10 12:19:56 +00:00
|
|
|
add_library(jscript SHARED
|
|
|
|
${SOURCE}
|
|
|
|
rsrc.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
|
|
|
|
|
2013-09-20 12:14:54 +00:00
|
|
|
add_idl_headers(jscript_idlheader jscript_classes.idl)
|
|
|
|
add_typelib(jsglobal.idl)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_dependencies(jscript jscript_idlheader stdole2)
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(jscript win32dll)
|
2013-12-24 21:56:03 +00:00
|
|
|
target_link_libraries(jscript uuid wine)
|
2012-08-01 23:25:06 +00:00
|
|
|
add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
|
2018-03-17 12:11:29 +00:00
|
|
|
add_pch(jscript precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
|