Author: akhaldi
Date: Sun Feb 9 12:26:28 2014
New Revision: 62066
URL:
http://svn.reactos.org/svn/reactos?rev=62066&view=rev
Log:
[CPLS]
* Prepare the CMake scripts for PCH.
CORE-7716
Modified:
trunk/reactos/dll/cpl/access/CMakeLists.txt
trunk/reactos/dll/cpl/appwiz/CMakeLists.txt
trunk/reactos/dll/cpl/console/CMakeLists.txt
trunk/reactos/dll/cpl/desk/CMakeLists.txt
trunk/reactos/dll/cpl/inetcpl/CMakeLists.txt
trunk/reactos/dll/cpl/input/CMakeLists.txt
trunk/reactos/dll/cpl/intl/CMakeLists.txt
trunk/reactos/dll/cpl/main/CMakeLists.txt
trunk/reactos/dll/cpl/mmsys/CMakeLists.txt
trunk/reactos/dll/cpl/powercfg/CMakeLists.txt
trunk/reactos/dll/cpl/sysdm/CMakeLists.txt
trunk/reactos/dll/cpl/timedate/CMakeLists.txt
trunk/reactos/dll/cpl/usrmgr/CMakeLists.txt
trunk/reactos/dll/cpl/wined3dcfg/CMakeLists.txt
Modified: trunk/reactos/dll/cpl/access/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/access/CMakeLists.…
==============================================================================
--- trunk/reactos/dll/cpl/access/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/access/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,17 +1,21 @@
spec2def(access.cpl access.spec)
-add_library(access SHARED
+list(APPEND SOURCE
access.c
display.c
general.c
keyboard.c
mouse.c
sound.c
+ access.h)
+
+add_library(access SHARED
+ ${SOURCE}
access.rc
${CMAKE_CURRENT_BINARY_DIR}/access.def)
set_module_type(access cpl UNICODE)
add_importlibs(access user32 gdi32 advapi32 comctl32 msvcrt kernel32)
-add_pch(access access.h)
+add_pch(access access.h SOURCE)
add_cd_file(TARGET access DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/appwiz/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz/CMakeLists.…
==============================================================================
--- trunk/reactos/dll/cpl/appwiz/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/appwiz/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -8,10 +8,14 @@
spec2def(appwiz.cpl appwiz.spec)
-add_library(appwiz SHARED
+list(APPEND SOURCE
addons.c
appwiz.c
createlink.c
+ appwiz.h)
+
+add_library(appwiz SHARED
+ ${SOURCE}
appwiz.rc
${CMAKE_CURRENT_BINARY_DIR}/appwiz.def)
@@ -19,5 +23,5 @@
target_link_libraries(appwiz uuid wine)
add_importlibs(appwiz urlmon ole32 comctl32 advapi32 shell32 user32 msvcrt kernel32
ntdll)
add_delay_importlibs(appwiz msi)
-add_pch(appwiz appwiz.h)
+add_pch(appwiz appwiz.h SOURCE)
add_cd_file(TARGET appwiz DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/console/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/CMakeLists…
==============================================================================
--- trunk/reactos/dll/cpl/console/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/console/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -11,10 +11,12 @@
font.c
layout.c
colors.c
+ console.h)
+
+add_library(console SHARED
+ ${SOURCE}
console.rc
${CMAKE_CURRENT_BINARY_DIR}/console.def)
-
-add_library(console SHARED ${SOURCE})
set_module_type(console win32dll UNICODE)
@@ -26,5 +28,5 @@
kernel32
ntdll)
-add_pch(console console.h)
+add_pch(console console.h SOURCE)
add_cd_file(TARGET console DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/desk/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/CMakeLists.tx…
==============================================================================
--- trunk/reactos/dll/cpl/desk/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,9 +1,8 @@
add_definitions(-D_WIN32)
-
spec2def(desk.cpl desk.spec)
-add_library(desk SHARED
+list(APPEND SOURCE
advmon.c
appearance.c
background.c
@@ -19,10 +18,14 @@
settings.c
monslctl.c
general.c
- desk.rc
draw.c
theme.c
muireg.c
+ desk.h)
+
+add_library(desk SHARED
+ ${SOURCE}
+ desk.rc
${CMAKE_CURRENT_BINARY_DIR}/desk.def)
set_module_type(desk cpl UNICODE)
@@ -43,5 +46,5 @@
kernel32
ntdll)
-add_pch(desk desk.h)
+add_pch(desk desk.h SOURCE)
add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/inetcpl/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/inetcpl/CMakeLists…
==============================================================================
--- trunk/reactos/dll/cpl/inetcpl/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/inetcpl/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -7,12 +7,17 @@
content.c
general.c
security.c
+ inetcpl.h)
+
+add_library(inetcpl SHARED
+ ${SOURCE}
+ inetcpl.rc
${CMAKE_CURRENT_BINARY_DIR}/inetcpl_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/inetcpl.def)
-add_library(inetcpl SHARED ${SOURCE} inetcpl.rc)
set_module_type(inetcpl cpl UNICODE)
target_link_libraries(inetcpl wine)
add_importlibs(inetcpl advapi32 comctl32 user32 shlwapi msvcrt kernel32 ntdll)
add_delay_importlibs(inetcpl cryptui wininet ole32 urlmon shell32)
+add_pch(inetcpl inetcpl.h SOURCE)
add_cd_file(TARGET inetcpl DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/input/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/input/CMakeLists.t…
==============================================================================
--- trunk/reactos/dll/cpl/input/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/input/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,13 +1,17 @@
spec2def(input.dll input.spec)
-add_library(input SHARED
+list(APPEND SOURCE
input.c
settings.c
advsettings.c
keysettings.c
add.c
changekeyseq.c
+ input.h)
+
+add_library(input SHARED
+ ${SOURCE}
input.rc
${CMAKE_CURRENT_BINARY_DIR}/input.def)
@@ -21,5 +25,5 @@
gdi32
kernel32)
-add_pch(input input.h)
+add_pch(input input.h SOURCE)
add_cd_file(TARGET input DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/intl/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/intl/CMakeLists.tx…
==============================================================================
--- trunk/reactos/dll/cpl/intl/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/intl/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,7 +1,7 @@
spec2def(intl.cpl intl.spec)
-add_library(intl SHARED
+list(APPEND SOURCE
currency.c
date.c
generalp.c
@@ -14,6 +14,10 @@
languages.c
advanced.c
sort.c
+ intl.h)
+
+add_library(intl SHARED
+ ${SOURCE}
intl.rc
${CMAKE_CURRENT_BINARY_DIR}/intl.def)
@@ -29,5 +33,5 @@
kernel32
ntdll)
-add_pch(intl intl.h)
+add_pch(intl intl.h SOURCE)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/main/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/CMakeLists.tx…
==============================================================================
--- trunk/reactos/dll/cpl/main/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,10 +1,14 @@
spec2def(main.cpl main.spec)
-add_library(main SHARED
+list(APPEND SOURCE
keyboard.c
main.c
mouse.c
+ main.h)
+
+add_library(main SHARED
+ ${SOURCE}
main.rc
${CMAKE_CURRENT_BINARY_DIR}/main.def)
@@ -22,5 +26,5 @@
gdi32
kernel32)
-add_pch(main main.h)
+add_pch(main main.h SOURCE)
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/mmsys/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/CMakeLists.t…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,12 +1,16 @@
spec2def(mmsys.cpl mmsys.spec)
-add_library(mmsys SHARED
+list(APPEND SOURCE
mmsys.c
sounds.c
volume.c
audio.c
voice.c
+ mmsys.h)
+
+add_library(mmsys SHARED
+ ${SOURCE}
mmsys.rc
${CMAKE_CURRENT_BINARY_DIR}/mmsys.def)
@@ -27,5 +31,5 @@
kernel32
comdlg32)
-add_pch(mmsys mmsys.h)
+add_pch(mmsys mmsys.h SOURCE)
add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/powercfg/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/powercfg/CMakeList…
==============================================================================
--- trunk/reactos/dll/cpl/powercfg/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/powercfg/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,12 +1,16 @@
spec2def(powercfg.cpl powercfg.spec)
-add_library(powercfg SHARED
+list(APPEND SOURCE
powercfg.c
powershemes.c
alarms.c
advanced.c
hibernate.c
+ powercfg.h)
+
+add_library(powercfg SHARED
+ ${SOURCE}
powercfg.rc
${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
@@ -22,5 +26,5 @@
kernel32
ntdll)
-add_pch(powercfg powercfg.h)
+add_pch(powercfg powercfg.h SOURCE)
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/sysdm/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/CMakeLists.t…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/sysdm/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -12,10 +12,13 @@
sysdm.c
userprofile.c
virtmem.c
+ precomp.h)
+
+add_library(sysdm SHARED
+ ${SOURCE}
sysdm.rc
${CMAKE_CURRENT_BINARY_DIR}/sysdm.def)
-add_library(sysdm SHARED ${SOURCE})
set_module_type(sysdm cpl UNICODE)
add_importlibs(sysdm
@@ -33,5 +36,5 @@
kernel32
ntdll)
-add_pch(sysdm precomp.h)
+add_pch(sysdm precomp.h SOURCE)
add_cd_file(TARGET sysdm DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/timedate/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/CMakeList…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/timedate/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,7 +1,7 @@
spec2def(timedate.cpl timedate.spec)
-add_library(timedate SHARED
+list(APPEND SOURCE
clock.c
dateandtime.c
internettime.c
@@ -9,6 +9,10 @@
ntpclient.c
timedate.c
timezone.c
+ timedate.h)
+
+add_library(timedate SHARED
+ ${SOURCE}
timedate.rc
${CMAKE_CURRENT_BINARY_DIR}/timedate.def)
@@ -24,5 +28,5 @@
msvcrt
kernel32)
-add_pch(timedate timedate.h)
+add_pch(timedate timedate.h SOURCE)
add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/usrmgr/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/usrmgr/CMakeLists.…
==============================================================================
--- trunk/reactos/dll/cpl/usrmgr/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/usrmgr/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -3,7 +3,7 @@
spec2def(usrmgr.cpl usrmgr.spec)
-add_library(usrmgr SHARED
+list(APPEND SOURCE
extra.c
groupprops.c
groups.c
@@ -11,6 +11,10 @@
userprops.c
users.c
usrmgr.c
+ usrmgr.h)
+
+add_library(usrmgr SHARED
+ ${SOURCE}
usrmgr.rc
${CMAKE_CURRENT_BINARY_DIR}/usrmgr.def)
@@ -26,5 +30,5 @@
kernel32
ntdll)
-add_pch(usrmgr usrmgr.h)
+add_pch(usrmgr usrmgr.h SOURCE)
add_cd_file(TARGET usrmgr DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/dll/cpl/wined3dcfg/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/wined3dcfg/CMakeLi…
==============================================================================
--- trunk/reactos/dll/cpl/wined3dcfg/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/wined3dcfg/CMakeLists.txt [iso-8859-1] Sun Feb 9 12:26:28 2014
@@ -1,9 +1,13 @@
spec2def(wined3dcfg.cpl wined3dcfg.spec)
-add_library(wined3dcfg SHARED
+list(APPEND SOURCE
wined3dcfg.c
general.c
+ wined3dcfg.h)
+
+add_library(wined3dcfg SHARED
+ ${SOURCE}
wined3dcfg.rc
${CMAKE_CURRENT_BINARY_DIR}/wined3dcfg.def)
@@ -16,5 +20,5 @@
advapi32
kernel32)
-add_pch(wined3dcfg wined3dcfg.h)
+add_pch(wined3dcfg wined3dcfg.h SOURCE)
add_cd_file(TARGET wined3dcfg DESTINATION reactos/system32 FOR all)