mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[BASE/SYSTEM]
* Prepare the CMake scripts for PCH. CORE-7716 svn path=/trunk/; revision=62063
This commit is contained in:
parent
114af4f814
commit
06510e690b
5 changed files with 56 additions and 53 deletions
|
@ -1,48 +1,50 @@
|
||||||
|
|
||||||
add_executable(diskpart
|
list(APPEND SOURCE
|
||||||
active.c
|
active.c
|
||||||
add.c
|
add.c
|
||||||
assign.c
|
assign.c
|
||||||
attach.c
|
attach.c
|
||||||
attributes.c
|
attributes.c
|
||||||
automount.c
|
automount.c
|
||||||
break.c
|
break.c
|
||||||
clean.c
|
clean.c
|
||||||
compact.c
|
compact.c
|
||||||
convert.c
|
convert.c
|
||||||
create.c
|
create.c
|
||||||
delete.c
|
delete.c
|
||||||
detach.c
|
detach.c
|
||||||
detail.c
|
detail.c
|
||||||
diskpart.c
|
diskpart.c
|
||||||
expand.c
|
expand.c
|
||||||
extend.c
|
extend.c
|
||||||
filesystems.c
|
filesystems.c
|
||||||
format.c
|
format.c
|
||||||
gpt.c
|
gpt.c
|
||||||
help.c
|
help.c
|
||||||
import.c
|
import.c
|
||||||
inactive.c
|
inactive.c
|
||||||
interpreter.c
|
interpreter.c
|
||||||
list.c
|
list.c
|
||||||
merge.c
|
merge.c
|
||||||
offline.c
|
offline.c
|
||||||
online.c
|
online.c
|
||||||
recover.c
|
recover.c
|
||||||
remove.c
|
remove.c
|
||||||
repair.c
|
repair.c
|
||||||
rescan.c
|
rescan.c
|
||||||
retain.c
|
retain.c
|
||||||
san.c
|
san.c
|
||||||
select.c
|
select.c
|
||||||
setid.c
|
setid.c
|
||||||
shrink.c
|
shrink.c
|
||||||
uniqueid.c
|
uniqueid.c
|
||||||
diskpart.rc)
|
diskpart.h)
|
||||||
|
|
||||||
|
add_executable(diskpart ${SOURCE} diskpart.rc)
|
||||||
set_module_type(diskpart win32cui UNICODE)
|
set_module_type(diskpart win32cui UNICODE)
|
||||||
add_importlibs(diskpart user32 msvcrt advapi32 kernel32)
|
add_importlibs(diskpart user32 msvcrt advapi32 kernel32)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_importlibs(diskpart ntdll)
|
add_importlibs(diskpart ntdll)
|
||||||
endif()
|
endif()
|
||||||
|
add_pch(diskpart diskpart.h SOURCE)
|
||||||
add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -3,12 +3,15 @@ add_definitions(-D__WINESRC__)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
|
||||||
|
|
||||||
add_executable(msiexec
|
list(APPEND SOURCE
|
||||||
msiexec.c
|
msiexec.c
|
||||||
service.c
|
service.c
|
||||||
rsrc.rc)
|
precomp.h)
|
||||||
|
|
||||||
|
add_executable(msiexec ${SOURCE} rsrc.rc)
|
||||||
|
|
||||||
set_module_type(msiexec win32gui)
|
set_module_type(msiexec win32gui)
|
||||||
target_link_libraries(msiexec uuid wine)
|
target_link_libraries(msiexec uuid wine)
|
||||||
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
|
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
|
||||||
|
add_pch(msiexec precomp.h SOURCE)
|
||||||
add_cd_file(TARGET msiexec DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET msiexec DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -16,10 +16,10 @@ list(APPEND SOURCE
|
||||||
lock.c
|
lock.c
|
||||||
rpcserver.c
|
rpcserver.c
|
||||||
services.c
|
services.c
|
||||||
services.rc
|
services.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
|
${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
|
||||||
|
|
||||||
add_executable(services ${SOURCE})
|
add_executable(services ${SOURCE} services.rc)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
target_link_libraries(services ${PSEH_LIB})
|
target_link_libraries(services ${PSEH_LIB})
|
||||||
|
@ -27,5 +27,5 @@ endif()
|
||||||
|
|
||||||
set_module_type(services win32gui UNICODE)
|
set_module_type(services win32gui UNICODE)
|
||||||
add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
||||||
add_pch(services services.h ${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.h)
|
add_pch(services services.h SOURCE)
|
||||||
add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET services DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -11,11 +11,11 @@ list(APPEND SOURCE
|
||||||
smsubsys.c
|
smsubsys.c
|
||||||
smutil.c
|
smutil.c
|
||||||
smss.c
|
smss.c
|
||||||
smss.rc)
|
smss.h)
|
||||||
|
|
||||||
add_executable(smss WIN32 ${SOURCE})
|
add_executable(smss WIN32 ${SOURCE} smss.rc)
|
||||||
target_link_libraries(smss nt ${PSEH_LIB} smlib)
|
target_link_libraries(smss nt ${PSEH_LIB} smlib)
|
||||||
add_pch(smss smss.h)
|
|
||||||
set_module_type(smss nativecui)
|
set_module_type(smss nativecui)
|
||||||
add_importlibs(smss ntdll)
|
add_importlibs(smss ntdll)
|
||||||
|
add_pch(smss smss.h SOURCE)
|
||||||
add_cd_file(TARGET smss DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET smss DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -6,13 +6,11 @@ list(APPEND SOURCE
|
||||||
setup.c
|
setup.c
|
||||||
winlogon.c
|
winlogon.c
|
||||||
wlx.c
|
wlx.c
|
||||||
winlogon.rc)
|
winlogon.h)
|
||||||
|
|
||||||
add_executable(winlogon ${SOURCE})
|
|
||||||
|
|
||||||
|
add_executable(winlogon ${SOURCE} winlogon.rc)
|
||||||
target_link_libraries(winlogon wine)
|
target_link_libraries(winlogon wine)
|
||||||
|
|
||||||
set_module_type(winlogon win32gui)
|
set_module_type(winlogon win32gui)
|
||||||
add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt kernel32 ntdll)
|
add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt kernel32 ntdll)
|
||||||
add_pch(winlogon winlogon.h)
|
add_pch(winlogon winlogon.h SOURCE)
|
||||||
add_cd_file(TARGET winlogon DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET winlogon DESTINATION reactos/system32 FOR all)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue