mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[SERVICES]
* Prepare the CMake scripts for PCH. CORE-7716 svn path=/trunk/; revision=62055
This commit is contained in:
parent
4319284676
commit
3d82bfc371
6 changed files with 29 additions and 23 deletions
|
@ -1,14 +1,15 @@
|
||||||
|
|
||||||
add_executable(audiosrv
|
list(APPEND SOURCE
|
||||||
main.c
|
main.c
|
||||||
pnp_list_manager.c
|
pnp_list_manager.c
|
||||||
pnp_list_lock.c
|
pnp_list_lock.c
|
||||||
pnp.c
|
pnp.c
|
||||||
services.c
|
services.c
|
||||||
debug.c
|
debug.c
|
||||||
audiosrv.rc)
|
audiosrv.h)
|
||||||
|
|
||||||
|
add_executable(audiosrv ${SOURCE} audiosrv.rc)
|
||||||
set_module_type(audiosrv win32cui UNICODE)
|
set_module_type(audiosrv win32cui UNICODE)
|
||||||
add_pch(audiosrv audiosrv.h)
|
|
||||||
add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
|
add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
|
||||||
|
add_pch(audiosrv audiosrv.h SOURCE)
|
||||||
add_cd_file(TARGET audiosrv DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET audiosrv DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl
|
include_directories(
|
||||||
|
${REACTOS_SOURCE_DIR}/include/reactos/idl
|
||||||
${CMAKE_CURRENT_BINARY_DIR})
|
${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/eventlogrpc.idl)
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/eventlogrpc.idl)
|
||||||
|
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
eventlog.c
|
eventlog.c
|
||||||
eventsource.c
|
eventsource.c
|
||||||
logport.c
|
logport.c
|
||||||
eventlog.rc
|
|
||||||
rpc.c
|
rpc.c
|
||||||
file.c
|
file.c
|
||||||
|
eventlog.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
|
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
|
||||||
|
|
||||||
add_executable(eventlog ${SOURCE})
|
add_executable(eventlog ${SOURCE} eventlog.rc)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
target_link_libraries(eventlog ${PSEH_LIB})
|
target_link_libraries(eventlog ${PSEH_LIB})
|
||||||
|
@ -22,5 +22,5 @@ endif()
|
||||||
|
|
||||||
set_module_type(eventlog win32cui UNICODE)
|
set_module_type(eventlog win32cui UNICODE)
|
||||||
add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
||||||
add_pch(eventlog eventlog.h)
|
add_pch(eventlog eventlog.h SOURCE)
|
||||||
add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -9,13 +9,13 @@ list(APPEND SOURCE
|
||||||
irotp.c
|
irotp.c
|
||||||
rpcss_main.c
|
rpcss_main.c
|
||||||
service_main.c
|
service_main.c
|
||||||
rpcss.rc
|
rpcss.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/epm_s.c
|
${CMAKE_CURRENT_BINARY_DIR}/epm_s.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
|
${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
|
||||||
|
|
||||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
|
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
|
||||||
|
|
||||||
add_executable(rpcss ${SOURCE})
|
add_executable(rpcss ${SOURCE} rpcss.rc)
|
||||||
|
|
||||||
target_link_libraries(rpcss
|
target_link_libraries(rpcss
|
||||||
${PSEH_LIB}
|
${PSEH_LIB}
|
||||||
|
@ -24,4 +24,5 @@ target_link_libraries(rpcss
|
||||||
set_module_type(rpcss win32cui UNICODE)
|
set_module_type(rpcss win32cui UNICODE)
|
||||||
|
|
||||||
add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
||||||
|
add_pch(rpcss rpcss.h SOURCE)
|
||||||
add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -2,13 +2,18 @@
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
globals.c
|
globals.c
|
||||||
registry.c
|
registry.c
|
||||||
security.cxx
|
|
||||||
rpcsrv.c
|
rpcsrv.c
|
||||||
netbios.c
|
netbios.c
|
||||||
svchost.c)
|
svchost.c
|
||||||
|
svchost.h)
|
||||||
|
|
||||||
|
add_executable(svchost
|
||||||
|
${SOURCE}
|
||||||
|
security.cxx
|
||||||
|
svchost.rc)
|
||||||
|
|
||||||
add_executable(svchost ${SOURCE} svchost.rc)
|
|
||||||
target_link_libraries(svchost uuid)
|
target_link_libraries(svchost uuid)
|
||||||
set_module_type(svchost win32cui UNICODE)
|
set_module_type(svchost win32cui UNICODE)
|
||||||
add_importlibs(svchost advapi32 netapi32 rpcrt4 ole32 kernel32 ntdll)
|
add_importlibs(svchost advapi32 netapi32 rpcrt4 ole32 kernel32 ntdll)
|
||||||
|
add_pch(svchost svchost.h SOURCE)
|
||||||
add_cd_file(TARGET svchost DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET svchost DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
tcpsvcs.c
|
tcpsvcs.c
|
||||||
skelserver.c
|
skelserver.c
|
||||||
|
@ -8,15 +7,12 @@ list(APPEND SOURCE
|
||||||
daytime.c
|
daytime.c
|
||||||
qotd.c
|
qotd.c
|
||||||
chargen.c
|
chargen.c
|
||||||
tcpsvcs.rc
|
log.c
|
||||||
log.c)
|
tcpsvcs.h)
|
||||||
|
|
||||||
add_executable(tcpsvcs ${SOURCE})
|
|
||||||
|
|
||||||
|
add_executable(tcpsvcs ${SOURCE} tcpsvcs.rc)
|
||||||
set_module_type(tcpsvcs win32cui UNICODE)
|
set_module_type(tcpsvcs win32cui UNICODE)
|
||||||
add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt kernel32 ntdll)
|
add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt kernel32 ntdll)
|
||||||
add_pch(tcpsvcs tcpsvcs.h)
|
add_pch(tcpsvcs tcpsvcs.h SOURCE)
|
||||||
|
|
||||||
|
|
||||||
add_cd_file(TARGET tcpsvcs DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET tcpsvcs DESTINATION reactos/system32 FOR all)
|
||||||
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/quotes DESTINATION reactos/system32/drivers/etc FOR all)
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/quotes DESTINATION reactos/system32/drivers/etc FOR all)
|
||||||
|
|
|
@ -3,16 +3,19 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl)
|
||||||
|
|
||||||
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/wlansvc.idl)
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/wlansvc.idl)
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
add_executable(wlansvc
|
|
||||||
wlansvc.c
|
wlansvc.c
|
||||||
rpcserver.c
|
rpcserver.c
|
||||||
|
precomp.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/wlansvc_s.c)
|
${CMAKE_CURRENT_BINARY_DIR}/wlansvc_s.c)
|
||||||
|
|
||||||
|
add_executable(wlansvc ${SOURCE})
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
target_link_libraries(wlansvc ${PSEH_LIB})
|
target_link_libraries(wlansvc ${PSEH_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_module_type(wlansvc win32cui UNICODE)
|
set_module_type(wlansvc win32cui UNICODE)
|
||||||
add_importlibs(wlansvc advapi32 rpcrt4 iphlpapi msvcrt kernel32 ntdll)
|
add_importlibs(wlansvc advapi32 rpcrt4 iphlpapi msvcrt kernel32 ntdll)
|
||||||
|
add_pch(wlansvc precomp.h SOURCE)
|
||||||
add_cd_file(TARGET wlansvc DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET wlansvc DESTINATION reactos/system32 FOR all)
|
||||||
|
|
Loading…
Reference in a new issue