Author: akhaldi
Date: Wed Feb 12 11:00:35 2014
New Revision: 62127
URL:
http://svn.reactos.org/svn/reactos?rev=62127&view=rev
Log:
[CMD][EXPLORER][EXPLORER_NEW]
* Prepare the CMake scripts for PCH.
CORE-7716
Modified:
trunk/reactos/base/shell/cmd/CMakeLists.txt
trunk/reactos/base/shell/explorer-new/CMakeLists.txt
trunk/reactos/base/shell/explorer/CMakeLists.txt
Modified: trunk/reactos/base/shell/cmd/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/CMakeLists.…
==============================================================================
--- trunk/reactos/base/shell/cmd/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/CMakeLists.txt [iso-8859-1] Wed Feb 12 11:00:35 2014
@@ -65,11 +65,11 @@
vol.c
where.c
window.c
- cmd.rc)
+ precomp.h)
-add_executable(cmd ${SOURCE})
+add_executable(cmd ${SOURCE} cmd.rc)
target_link_libraries(cmd wine)
set_module_type(cmd win32cui UNICODE)
add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll)
-add_pch(cmd precomp.h)
+add_pch(cmd precomp.h SOURCE)
add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all)
Modified: trunk/reactos/base/shell/explorer-new/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/CM…
==============================================================================
--- trunk/reactos/base/shell/explorer-new/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/CMakeLists.txt [iso-8859-1] Wed Feb 12 11:00:35
2014
@@ -14,9 +14,9 @@
trayntfy.c
trayprop.c
traywnd.c
- explorer.rc)
+ precomp.h)
-add_executable(explorer_new ${SOURCE})
+add_executable(explorer_new ${SOURCE} explorer.rc)
target_link_libraries(explorer_new uuid)
set_module_type(explorer_new win32gui UNICODE)
add_importlibs(explorer_new
@@ -34,5 +34,5 @@
msvcrt
kernel32
ntdll)
-add_pch(explorer_new precomp.h)
+add_pch(explorer_new precomp.h SOURCE)
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)
Modified: trunk/reactos/base/shell/explorer/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/CMakeL…
==============================================================================
--- trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/CMakeLists.txt [iso-8859-1] Wed Feb 12 11:00:35
2014
@@ -7,7 +7,6 @@
-DWIN32
-D__WINDRES__)
-#add_pch(explorer precomp.h)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND SOURCE
@@ -31,9 +30,6 @@
taskbar/desktopbar.cpp
taskbar/startmenu.cpp
taskbar/traynotify.cpp
- precomp.cpp
- explorer.rc
- services/startup.c
services/shellservices.cpp
desktop/desktop.cpp
explorer.cpp
@@ -43,18 +39,24 @@
utility/utility.cpp
utility/xmlstorage.cpp
utility/window.cpp
- utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
+ utility/shellbrowserimpl.cpp
+ precomp.h) # utility/shelltests.cpp
if(ARCH STREQUAL "i386")
- list(APPEND SOURCE
- i386-stub-win32.c)
+ list(APPEND I386_SOURCE i386-stub-win32.c)
endif()
-add_executable(explorer ${SOURCE})
+add_executable(explorer
+ ${SOURCE}
+ ${I386_SOURCE}
+ services/startup.c
+ explorer.rc)
+
target_link_libraries(explorer comsupp wine uuid)
set_module_type(explorer win32gui UNICODE)
add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32
shell32 shlwapi notifyhook msvcrt kernel32 ntdll)
+add_pch(explorer precomp.h SOURCE)
add_dependencies(explorer psdk)
add_cd_file(TARGET explorer DESTINATION reactos FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION
reactos FOR all)