[SERVICES]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 8 Feb 2014 19:01:04 +0000 (19:01 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 8 Feb 2014 19:01:04 +0000 (19:01 +0000)
* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62055

reactos/base/services/audiosrv/CMakeLists.txt
reactos/base/services/eventlog/CMakeLists.txt
reactos/base/services/rpcss/CMakeLists.txt
reactos/base/services/svchost/CMakeLists.txt
reactos/base/services/tcpsvcs/CMakeLists.txt
reactos/base/services/wlansvc/CMakeLists.txt

index 08c5d24..979161a 100644 (file)
@@ -1,14 +1,15 @@
 
-add_executable(audiosrv
+list(APPEND SOURCE
     main.c
     pnp_list_manager.c
     pnp_list_lock.c
     pnp.c
     services.c
     debug.c
-    audiosrv.rc)
+    audiosrv.h)
 
+add_executable(audiosrv ${SOURCE} audiosrv.rc)
 set_module_type(audiosrv win32cui UNICODE)
-add_pch(audiosrv audiosrv.h)
 add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
+add_pch(audiosrv audiosrv.h SOURCE)
 add_cd_file(TARGET audiosrv DESTINATION reactos/system32 FOR all)
index 221bc9f..1f799c7 100644 (file)
@@ -1,20 +1,20 @@
 
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl
+include_directories(
+    ${REACTOS_SOURCE_DIR}/include/reactos/idl
     ${CMAKE_CURRENT_BINARY_DIR})
 
 add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/eventlogrpc.idl)
 
-
 list(APPEND SOURCE
     eventlog.c
     eventsource.c
     logport.c
-    eventlog.rc
     rpc.c
     file.c
+    eventlog.h
     ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_s.c)
 
-add_executable(eventlog ${SOURCE})
+add_executable(eventlog ${SOURCE} eventlog.rc)
 
 if(NOT MSVC)
     target_link_libraries(eventlog ${PSEH_LIB})
@@ -22,5 +22,5 @@ endif()
 
 set_module_type(eventlog win32cui UNICODE)
 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)
index 2c36c7a..159479d 100644 (file)
@@ -9,13 +9,13 @@ list(APPEND SOURCE
     irotp.c
     rpcss_main.c
     service_main.c
-    rpcss.rc
+    rpcss.h
     ${CMAKE_CURRENT_BINARY_DIR}/epm_s.c
     ${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
 
 include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
 
-add_executable(rpcss ${SOURCE})
+add_executable(rpcss ${SOURCE} rpcss.rc)
 
 target_link_libraries(rpcss
     ${PSEH_LIB}
@@ -24,4 +24,5 @@ target_link_libraries(rpcss
 set_module_type(rpcss win32cui UNICODE)
 
 add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
+add_pch(rpcss rpcss.h SOURCE)
 add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
index 1bcddd7..c567640 100644 (file)
@@ -2,13 +2,18 @@
 list(APPEND SOURCE
     globals.c
     registry.c
-    security.cxx
     rpcsrv.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)
 set_module_type(svchost win32cui UNICODE)
 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)
index d3b267b..736c3fc 100644 (file)
@@ -1,5 +1,4 @@
 
-
 list(APPEND SOURCE
     tcpsvcs.c
     skelserver.c
@@ -8,15 +7,12 @@ list(APPEND SOURCE
     daytime.c
     qotd.c
     chargen.c
-    tcpsvcs.rc
-    log.c)
-
-add_executable(tcpsvcs ${SOURCE})
+    log.c
+    tcpsvcs.h)
 
+add_executable(tcpsvcs ${SOURCE} tcpsvcs.rc)
 set_module_type(tcpsvcs win32cui UNICODE)
 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(FILE ${CMAKE_CURRENT_SOURCE_DIR}/quotes DESTINATION reactos/system32/drivers/etc FOR all)
index 77eec90..7f146da 100644 (file)
@@ -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_executable(wlansvc
+list(APPEND SOURCE
     wlansvc.c
     rpcserver.c
+    precomp.h
     ${CMAKE_CURRENT_BINARY_DIR}/wlansvc_s.c)
 
+add_executable(wlansvc ${SOURCE})
+
 if(NOT MSVC)
     target_link_libraries(wlansvc ${PSEH_LIB})
 endif()
 
 set_module_type(wlansvc win32cui UNICODE)
 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)