mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 08:52:59 +08:00
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
This commit is contained in:
committed by
Victor Perevertkin
parent
4cd7b3a3df
commit
139a3d6661
@@ -32,8 +32,11 @@ list(APPEND SOURCE
|
||||
object.c
|
||||
regexp.c
|
||||
string.c
|
||||
vbarray.c
|
||||
precomp.h)
|
||||
vbarray.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
cc_parser.tab.c
|
||||
parser.tab.c)
|
||||
|
||||
# cc_parser.tab.c/parser.tab.c have been generated with relative file paths...
|
||||
set_source_files_properties(cc_parser.tab.c parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
|
||||
@@ -48,8 +51,7 @@ set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${jscript_rc_deps
|
||||
|
||||
add_library(jscript MODULE
|
||||
${SOURCE}
|
||||
cc_parser.tab.c
|
||||
parser.tab.c
|
||||
${PCH_SKIP_SOURCE}
|
||||
rsrc.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/jscript.def)
|
||||
|
||||
@@ -59,5 +61,5 @@ 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_pch(jscript precomp.h "${PCH_SKIP_SOURCE}")
|
||||
add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
|
||||
|
||||
Reference in New Issue
Block a user