Author: akhaldi
Date: Sat Feb 8 19:01:04 2014
New Revision: 62055
URL:
http://svn.reactos.org/svn/reactos?rev=62055&view=rev
Log:
[SERVICES]
* Prepare the CMake scripts for PCH.
CORE-7716
Modified:
trunk/reactos/base/services/audiosrv/CMakeLists.txt
trunk/reactos/base/services/eventlog/CMakeLists.txt
trunk/reactos/base/services/rpcss/CMakeLists.txt
trunk/reactos/base/services/svchost/CMakeLists.txt
trunk/reactos/base/services/tcpsvcs/CMakeLists.txt
trunk/reactos/base/services/wlansvc/CMakeLists.txt
Modified: trunk/reactos/base/services/audiosrv/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/audiosrv/CMa…
==============================================================================
--- trunk/reactos/base/services/audiosrv/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/audiosrv/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -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)
Modified: trunk/reactos/base/services/eventlog/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/CMa…
==============================================================================
--- trunk/reactos/base/services/eventlog/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -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 @@
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)
Modified: trunk/reactos/base/services/rpcss/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/rpcss/CMakeL…
==============================================================================
--- trunk/reactos/base/services/rpcss/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/rpcss/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -9,13 +9,13 @@
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 @@
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)
Modified: trunk/reactos/base/services/svchost/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/svchost/CMak…
==============================================================================
--- trunk/reactos/base/services/svchost/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/svchost/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -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} svchost.rc)
+add_executable(svchost
+ ${SOURCE}
+ security.cxx
+ 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)
Modified: trunk/reactos/base/services/tcpsvcs/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/tcpsvcs/CMak…
==============================================================================
--- trunk/reactos/base/services/tcpsvcs/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/tcpsvcs/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -1,4 +1,3 @@
-
list(APPEND SOURCE
tcpsvcs.c
@@ -8,15 +7,12 @@
daytime.c
qotd.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)
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)
Modified: trunk/reactos/base/services/wlansvc/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/wlansvc/CMak…
==============================================================================
--- trunk/reactos/base/services/wlansvc/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/services/wlansvc/CMakeLists.txt [iso-8859-1] Sat Feb 8 19:01:04
2014
@@ -3,11 +3,13 @@
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})
@@ -15,4 +17,5 @@
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)