mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00

- Sync with trunk 50501 - fix a couple of merge artifacts (indentation) svn path=/branches/cmake-bringup/; revision=50505
57 lines
950 B
CMake
57 lines
950 B
CMake
|
|
add_typelib(jsglobal jsglobal.idl)
|
|
add_dependencies(jsglobal stdole2)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-D_USE_MATH_DEFINES
|
|
-D_DLL
|
|
-D__USE_CRTIMP)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(jscript.dll jscript.spec)
|
|
|
|
list(APPEND SOURCE
|
|
activex.c
|
|
date.c
|
|
dispex.c
|
|
engine.c
|
|
error.c
|
|
jscript.c
|
|
jscript_main.c
|
|
jsutils.c
|
|
lex.c
|
|
parser.tab.c
|
|
math.c
|
|
number.c
|
|
object.c
|
|
regexp.c
|
|
string.c
|
|
array.c
|
|
bool.c
|
|
function.c
|
|
global.c
|
|
rsrc.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
|
|
|
|
add_library(jscript SHARED ${SOURCE})
|
|
|
|
set_module_type(jscript win32dll)
|
|
|
|
target_link_libraries(jscript wine)
|
|
|
|
add_importlibs(jscript
|
|
msvcrt
|
|
user32
|
|
ole32
|
|
oleaut32
|
|
advapi32
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(jscript jsglobal)
|
|
add_cab_target(jscript 1)
|