* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62066
This commit is contained in:
Amine Khaldi 2014-02-09 12:26:28 +00:00
parent 88985c5d99
commit 7b06bb1c9c
14 changed files with 83 additions and 30 deletions

View file

@ -1,17 +1,21 @@
spec2def(access.cpl access.spec) spec2def(access.cpl access.spec)
add_library(access SHARED list(APPEND SOURCE
access.c access.c
display.c display.c
general.c general.c
keyboard.c keyboard.c
mouse.c mouse.c
sound.c sound.c
access.h)
add_library(access SHARED
${SOURCE}
access.rc access.rc
${CMAKE_CURRENT_BINARY_DIR}/access.def) ${CMAKE_CURRENT_BINARY_DIR}/access.def)
set_module_type(access cpl UNICODE) set_module_type(access cpl UNICODE)
add_importlibs(access user32 gdi32 advapi32 comctl32 msvcrt kernel32) 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) add_cd_file(TARGET access DESTINATION reactos/system32 FOR all)

View file

@ -8,10 +8,14 @@ add_definitions(-D__WINESRC__)
spec2def(appwiz.cpl appwiz.spec) spec2def(appwiz.cpl appwiz.spec)
add_library(appwiz SHARED list(APPEND SOURCE
addons.c addons.c
appwiz.c appwiz.c
createlink.c createlink.c
appwiz.h)
add_library(appwiz SHARED
${SOURCE}
appwiz.rc appwiz.rc
${CMAKE_CURRENT_BINARY_DIR}/appwiz.def) ${CMAKE_CURRENT_BINARY_DIR}/appwiz.def)
@ -19,5 +23,5 @@ set_module_type(appwiz cpl UNICODE)
target_link_libraries(appwiz uuid wine) target_link_libraries(appwiz uuid wine)
add_importlibs(appwiz urlmon ole32 comctl32 advapi32 shell32 user32 msvcrt kernel32 ntdll) add_importlibs(appwiz urlmon ole32 comctl32 advapi32 shell32 user32 msvcrt kernel32 ntdll)
add_delay_importlibs(appwiz msi) 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) add_cd_file(TARGET appwiz DESTINATION reactos/system32 FOR all)

View file

@ -11,11 +11,13 @@ list(APPEND SOURCE
font.c font.c
layout.c layout.c
colors.c colors.c
console.h)
add_library(console SHARED
${SOURCE}
console.rc console.rc
${CMAKE_CURRENT_BINARY_DIR}/console.def) ${CMAKE_CURRENT_BINARY_DIR}/console.def)
add_library(console SHARED ${SOURCE})
set_module_type(console win32dll UNICODE) set_module_type(console win32dll UNICODE)
add_importlibs(console add_importlibs(console
@ -26,5 +28,5 @@ add_importlibs(console
kernel32 kernel32
ntdll) ntdll)
add_pch(console console.h) add_pch(console console.h SOURCE)
add_cd_file(TARGET console DESTINATION reactos/system32 FOR all) add_cd_file(TARGET console DESTINATION reactos/system32 FOR all)

View file

@ -1,9 +1,8 @@
add_definitions(-D_WIN32) add_definitions(-D_WIN32)
spec2def(desk.cpl desk.spec) spec2def(desk.cpl desk.spec)
add_library(desk SHARED list(APPEND SOURCE
advmon.c advmon.c
appearance.c appearance.c
background.c background.c
@ -19,10 +18,14 @@ add_library(desk SHARED
settings.c settings.c
monslctl.c monslctl.c
general.c general.c
desk.rc
draw.c draw.c
theme.c theme.c
muireg.c muireg.c
desk.h)
add_library(desk SHARED
${SOURCE}
desk.rc
${CMAKE_CURRENT_BINARY_DIR}/desk.def) ${CMAKE_CURRENT_BINARY_DIR}/desk.def)
set_module_type(desk cpl UNICODE) set_module_type(desk cpl UNICODE)
@ -43,5 +46,5 @@ add_importlibs(desk
kernel32 kernel32
ntdll) ntdll)
add_pch(desk desk.h) add_pch(desk desk.h SOURCE)
add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all) add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all)

View file

@ -7,12 +7,17 @@ list(APPEND SOURCE
content.c content.c
general.c general.c
security.c security.c
inetcpl.h)
add_library(inetcpl SHARED
${SOURCE}
inetcpl.rc
${CMAKE_CURRENT_BINARY_DIR}/inetcpl_stubs.c ${CMAKE_CURRENT_BINARY_DIR}/inetcpl_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/inetcpl.def) ${CMAKE_CURRENT_BINARY_DIR}/inetcpl.def)
add_library(inetcpl SHARED ${SOURCE} inetcpl.rc)
set_module_type(inetcpl cpl UNICODE) set_module_type(inetcpl cpl UNICODE)
target_link_libraries(inetcpl wine) target_link_libraries(inetcpl wine)
add_importlibs(inetcpl advapi32 comctl32 user32 shlwapi msvcrt kernel32 ntdll) add_importlibs(inetcpl advapi32 comctl32 user32 shlwapi msvcrt kernel32 ntdll)
add_delay_importlibs(inetcpl cryptui wininet ole32 urlmon shell32) 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) add_cd_file(TARGET inetcpl DESTINATION reactos/system32 FOR all)

View file

@ -1,13 +1,17 @@
spec2def(input.dll input.spec) spec2def(input.dll input.spec)
add_library(input SHARED list(APPEND SOURCE
input.c input.c
settings.c settings.c
advsettings.c advsettings.c
keysettings.c keysettings.c
add.c add.c
changekeyseq.c changekeyseq.c
input.h)
add_library(input SHARED
${SOURCE}
input.rc input.rc
${CMAKE_CURRENT_BINARY_DIR}/input.def) ${CMAKE_CURRENT_BINARY_DIR}/input.def)
@ -21,5 +25,5 @@ add_importlibs(input
gdi32 gdi32
kernel32) kernel32)
add_pch(input input.h) add_pch(input input.h SOURCE)
add_cd_file(TARGET input DESTINATION reactos/system32 FOR all) add_cd_file(TARGET input DESTINATION reactos/system32 FOR all)

View file

@ -1,7 +1,7 @@
spec2def(intl.cpl intl.spec) spec2def(intl.cpl intl.spec)
add_library(intl SHARED list(APPEND SOURCE
currency.c currency.c
date.c date.c
generalp.c generalp.c
@ -14,6 +14,10 @@ add_library(intl SHARED
languages.c languages.c
advanced.c advanced.c
sort.c sort.c
intl.h)
add_library(intl SHARED
${SOURCE}
intl.rc intl.rc
${CMAKE_CURRENT_BINARY_DIR}/intl.def) ${CMAKE_CURRENT_BINARY_DIR}/intl.def)
@ -29,5 +33,5 @@ add_importlibs(intl
kernel32 kernel32
ntdll) ntdll)
add_pch(intl intl.h) add_pch(intl intl.h SOURCE)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all) add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)

View file

@ -1,10 +1,14 @@
spec2def(main.cpl main.spec) spec2def(main.cpl main.spec)
add_library(main SHARED list(APPEND SOURCE
keyboard.c keyboard.c
main.c main.c
mouse.c mouse.c
main.h)
add_library(main SHARED
${SOURCE}
main.rc main.rc
${CMAKE_CURRENT_BINARY_DIR}/main.def) ${CMAKE_CURRENT_BINARY_DIR}/main.def)
@ -22,5 +26,5 @@ add_importlibs(main
gdi32 gdi32
kernel32) kernel32)
add_pch(main main.h) add_pch(main main.h SOURCE)
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all) add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)

View file

@ -1,12 +1,16 @@
spec2def(mmsys.cpl mmsys.spec) spec2def(mmsys.cpl mmsys.spec)
add_library(mmsys SHARED list(APPEND SOURCE
mmsys.c mmsys.c
sounds.c sounds.c
volume.c volume.c
audio.c audio.c
voice.c voice.c
mmsys.h)
add_library(mmsys SHARED
${SOURCE}
mmsys.rc mmsys.rc
${CMAKE_CURRENT_BINARY_DIR}/mmsys.def) ${CMAKE_CURRENT_BINARY_DIR}/mmsys.def)
@ -27,5 +31,5 @@ add_importlibs(mmsys
kernel32 kernel32
comdlg32) comdlg32)
add_pch(mmsys mmsys.h) add_pch(mmsys mmsys.h SOURCE)
add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all) add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all)

View file

@ -1,12 +1,16 @@
spec2def(powercfg.cpl powercfg.spec) spec2def(powercfg.cpl powercfg.spec)
add_library(powercfg SHARED list(APPEND SOURCE
powercfg.c powercfg.c
powershemes.c powershemes.c
alarms.c alarms.c
advanced.c advanced.c
hibernate.c hibernate.c
powercfg.h)
add_library(powercfg SHARED
${SOURCE}
powercfg.rc powercfg.rc
${CMAKE_CURRENT_BINARY_DIR}/powercfg.def) ${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
@ -22,5 +26,5 @@ add_importlibs(powercfg
kernel32 kernel32
ntdll) ntdll)
add_pch(powercfg powercfg.h) add_pch(powercfg powercfg.h SOURCE)
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all) add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)

View file

@ -12,10 +12,13 @@ list(APPEND SOURCE
sysdm.c sysdm.c
userprofile.c userprofile.c
virtmem.c virtmem.c
precomp.h)
add_library(sysdm SHARED
${SOURCE}
sysdm.rc sysdm.rc
${CMAKE_CURRENT_BINARY_DIR}/sysdm.def) ${CMAKE_CURRENT_BINARY_DIR}/sysdm.def)
add_library(sysdm SHARED ${SOURCE})
set_module_type(sysdm cpl UNICODE) set_module_type(sysdm cpl UNICODE)
add_importlibs(sysdm add_importlibs(sysdm
@ -33,5 +36,5 @@ add_importlibs(sysdm
kernel32 kernel32
ntdll) ntdll)
add_pch(sysdm precomp.h) add_pch(sysdm precomp.h SOURCE)
add_cd_file(TARGET sysdm DESTINATION reactos/system32 FOR all) add_cd_file(TARGET sysdm DESTINATION reactos/system32 FOR all)

View file

@ -1,7 +1,7 @@
spec2def(timedate.cpl timedate.spec) spec2def(timedate.cpl timedate.spec)
add_library(timedate SHARED list(APPEND SOURCE
clock.c clock.c
dateandtime.c dateandtime.c
internettime.c internettime.c
@ -9,6 +9,10 @@ add_library(timedate SHARED
ntpclient.c ntpclient.c
timedate.c timedate.c
timezone.c timezone.c
timedate.h)
add_library(timedate SHARED
${SOURCE}
timedate.rc timedate.rc
${CMAKE_CURRENT_BINARY_DIR}/timedate.def) ${CMAKE_CURRENT_BINARY_DIR}/timedate.def)
@ -24,5 +28,5 @@ add_importlibs(timedate
msvcrt msvcrt
kernel32) kernel32)
add_pch(timedate timedate.h) add_pch(timedate timedate.h SOURCE)
add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all) add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all)

View file

@ -3,7 +3,7 @@ include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(usrmgr.cpl usrmgr.spec) spec2def(usrmgr.cpl usrmgr.spec)
add_library(usrmgr SHARED list(APPEND SOURCE
extra.c extra.c
groupprops.c groupprops.c
groups.c groups.c
@ -11,6 +11,10 @@ add_library(usrmgr SHARED
userprops.c userprops.c
users.c users.c
usrmgr.c usrmgr.c
usrmgr.h)
add_library(usrmgr SHARED
${SOURCE}
usrmgr.rc usrmgr.rc
${CMAKE_CURRENT_BINARY_DIR}/usrmgr.def) ${CMAKE_CURRENT_BINARY_DIR}/usrmgr.def)
@ -26,5 +30,5 @@ add_importlibs(usrmgr
kernel32 kernel32
ntdll) ntdll)
add_pch(usrmgr usrmgr.h) add_pch(usrmgr usrmgr.h SOURCE)
add_cd_file(TARGET usrmgr DESTINATION reactos/system32 FOR all) add_cd_file(TARGET usrmgr DESTINATION reactos/system32 FOR all)

View file

@ -1,9 +1,13 @@
spec2def(wined3dcfg.cpl wined3dcfg.spec) spec2def(wined3dcfg.cpl wined3dcfg.spec)
add_library(wined3dcfg SHARED list(APPEND SOURCE
wined3dcfg.c wined3dcfg.c
general.c general.c
wined3dcfg.h)
add_library(wined3dcfg SHARED
${SOURCE}
wined3dcfg.rc wined3dcfg.rc
${CMAKE_CURRENT_BINARY_DIR}/wined3dcfg.def) ${CMAKE_CURRENT_BINARY_DIR}/wined3dcfg.def)
@ -16,5 +20,5 @@ add_importlibs(wined3dcfg
advapi32 advapi32
kernel32) kernel32)
add_pch(wined3dcfg wined3dcfg.h) add_pch(wined3dcfg wined3dcfg.h SOURCE)
add_cd_file(TARGET wined3dcfg DESTINATION reactos/system32 FOR all) add_cd_file(TARGET wined3dcfg DESTINATION reactos/system32 FOR all)