reactos/dll/win32/jscript/CMakeLists.txt
Joachim Henze 1e367ccbb7 [0.4.13] Fix VSSolution's msbuild CORE-15991
It regressed by 0.4.12-dev-1064-g 09c4d0a74b
when we tried to mute compiler warnings in the GCC Release configuration
for all modules, that do contain .y files.

In master we switched to use flex+bison to process those files at build-time
in 0.4.15-dev-2277-g 28dadda8be and at the same
time reverted the guilty rev.

In the backport to the old releases we do only revert, but do not introduce
flex+bison. This will reintroduce the warnings in GCC Release configuration.
2021-06-20 00:29:30 +02:00

60 lines
1.3 KiB
CMake

add_definitions(
-D__WINESRC__
-D_USE_MATH_DEFINES)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(jscript.dll jscript.spec)
list(APPEND SOURCE
activex.c
array.c
bool.c
compile.c
date.c
decode.c
dispex.c
engine.c
enumerator.c
error.c
function.c
global.c
jscript.c
jscript_main.c
json.c
jsregexp.c
jsstr.c
jsutils.c
lex.c
math.c
number.c
object.c
regexp.c
string.c
vbarray.c
precomp.h)
list(APPEND jscript_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs
${CMAKE_CURRENT_SOURCE_DIR}/jscript_classes.rgs
${CMAKE_CURRENT_SOURCE_DIR}/jsglobal.rgs
${CMAKE_CURRENT_BINARY_DIR}/jsglobal.tlb)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps}")
add_library(jscript MODULE
${SOURCE}
cc_parser.tab.c
parser.tab.c
rsrc.rc
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
add_idl_headers(jscript_idlheader jscript_classes.idl)
add_typelib(jsglobal.idl)
add_dependencies(jscript jscript_idlheader stdole2)
set_module_type(jscript win32dll)
target_link_libraries(jscript uuid wine)
add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
add_pch(jscript precomp.h SOURCE)
add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)