Author: akhaldi
Date: Sun Feb 9 10:40:34 2014
New Revision: 62063
URL:
http://svn.reactos.org/svn/reactos?rev=62063&view=rev
Log:
[BASE/SYSTEM]
* Prepare the CMake scripts for PCH.
CORE-7716
Modified:
trunk/reactos/base/system/diskpart/CMakeLists.txt
trunk/reactos/base/system/msiexec/CMakeLists.txt
trunk/reactos/base/system/services/CMakeLists.txt
trunk/reactos/base/system/smss/CMakeLists.txt
trunk/reactos/base/system/winlogon/CMakeLists.txt
Modified: trunk/reactos/base/system/diskpart/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/diskpart/CMake…
==============================================================================
--- trunk/reactos/base/system/diskpart/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/system/diskpart/CMakeLists.txt [iso-8859-1] Sun Feb 9 10:40:34
2014
@@ -1,48 +1,50 @@
-add_executable(diskpart
- active.c
- add.c
- assign.c
- attach.c
- attributes.c
- automount.c
- break.c
- clean.c
- compact.c
- convert.c
- create.c
- delete.c
- detach.c
- detail.c
- diskpart.c
- expand.c
- extend.c
- filesystems.c
- format.c
- gpt.c
- help.c
- import.c
- inactive.c
- interpreter.c
- list.c
- merge.c
- offline.c
- online.c
- recover.c
- remove.c
- repair.c
- rescan.c
- retain.c
- san.c
- select.c
- setid.c
- shrink.c
- uniqueid.c
- diskpart.rc)
+list(APPEND SOURCE
+ active.c
+ add.c
+ assign.c
+ attach.c
+ attributes.c
+ automount.c
+ break.c
+ clean.c
+ compact.c
+ convert.c
+ create.c
+ delete.c
+ detach.c
+ detail.c
+ diskpart.c
+ expand.c
+ extend.c
+ filesystems.c
+ format.c
+ gpt.c
+ help.c
+ import.c
+ inactive.c
+ interpreter.c
+ list.c
+ merge.c
+ offline.c
+ online.c
+ recover.c
+ remove.c
+ repair.c
+ rescan.c
+ retain.c
+ san.c
+ select.c
+ setid.c
+ shrink.c
+ uniqueid.c
+ diskpart.h)
+add_executable(diskpart ${SOURCE} diskpart.rc)
set_module_type(diskpart win32cui UNICODE)
add_importlibs(diskpart user32 msvcrt advapi32 kernel32)
if(MSVC)
add_importlibs(diskpart ntdll)
endif()
+add_pch(diskpart diskpart.h SOURCE)
add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/base/system/msiexec/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/msiexec/CMakeL…
==============================================================================
--- trunk/reactos/base/system/msiexec/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/system/msiexec/CMakeLists.txt [iso-8859-1] Sun Feb 9 10:40:34
2014
@@ -3,12 +3,15 @@
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
-add_executable(msiexec
+list(APPEND SOURCE
msiexec.c
service.c
- rsrc.rc)
+ precomp.h)
+
+add_executable(msiexec ${SOURCE} rsrc.rc)
set_module_type(msiexec win32gui)
target_link_libraries(msiexec uuid wine)
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)
Modified: trunk/reactos/base/system/services/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/CMake…
==============================================================================
--- trunk/reactos/base/system/services/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/CMakeLists.txt [iso-8859-1] Sun Feb 9 10:40:34
2014
@@ -16,10 +16,10 @@
lock.c
rpcserver.c
services.c
- services.rc
+ services.h
${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
-add_executable(services ${SOURCE})
+add_executable(services ${SOURCE} services.rc)
if(NOT MSVC)
target_link_libraries(services ${PSEH_LIB})
@@ -27,5 +27,5 @@
set_module_type(services win32gui UNICODE)
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)
Modified: trunk/reactos/base/system/smss/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/CMakeList…
==============================================================================
--- trunk/reactos/base/system/smss/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/CMakeLists.txt [iso-8859-1] Sun Feb 9 10:40:34 2014
@@ -11,11 +11,11 @@
smsubsys.c
smutil.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)
-add_pch(smss smss.h)
set_module_type(smss nativecui)
add_importlibs(smss ntdll)
+add_pch(smss smss.h SOURCE)
add_cd_file(TARGET smss DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/base/system/winlogon/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/winlogon/CMake…
==============================================================================
--- trunk/reactos/base/system/winlogon/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/system/winlogon/CMakeLists.txt [iso-8859-1] Sun Feb 9 10:40:34
2014
@@ -6,13 +6,11 @@
setup.c
winlogon.c
wlx.c
- winlogon.rc)
+ winlogon.h)
-add_executable(winlogon ${SOURCE})
-
+add_executable(winlogon ${SOURCE} winlogon.rc)
target_link_libraries(winlogon wine)
-
set_module_type(winlogon win32gui)
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)