2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2012-05-01 17:20:47 +00:00
|
|
|
-D_USE_MATH_DEFINES)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
|
|
|
spec2def(jscript.dll jscript.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
activex.c
|
2012-05-01 17:20:47 +00:00
|
|
|
array.c
|
|
|
|
bool.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
|
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
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
|
|
|
|
|
2013-04-03 22:03:06 +00:00
|
|
|
add_library(jscript SHARED ${SOURCE} rsrc.rc)
|
2013-04-03 21:19:50 +00:00
|
|
|
add_idl_headers(jscript_idlheader jscript_classes.idl)
|
2013-04-03 22:03:06 +00:00
|
|
|
|
2013-04-24 11:18:29 +00:00
|
|
|
add_typelib(jsglobal.idl)
|
|
|
|
|
|
|
|
list(APPEND jscript_rc_deps
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
|
|
|
|
|
|
|
|
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
|
|
|
|
|
|
|
|
# jsglobal.tlb needs stdole2.tlb
|
|
|
|
add_dependencies(jscript jscript_idlheader stdole2)
|
|
|
|
|
|
|
|
|
2013-04-03 22:03:06 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
|
|
#allow_warnings(jscript)
|
|
|
|
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(jscript win32dll)
|
|
|
|
target_link_libraries(jscript wine)
|
2012-08-01 23:25:06 +00:00
|
|
|
add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
|
2011-07-28 15:55:42 +00:00
|
|
|
add_pch(jscript jscript.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
|