mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
[CMD][EXPLORER][EXPLORER_NEW]
* Prepare the CMake scripts for PCH. CORE-7716 svn path=/trunk/; revision=62127
This commit is contained in:
parent
4940711b04
commit
1cba1c80c4
3 changed files with 16 additions and 14 deletions
|
@ -65,11 +65,11 @@ list(APPEND SOURCE
|
||||||
vol.c
|
vol.c
|
||||||
where.c
|
where.c
|
||||||
window.c
|
window.c
|
||||||
cmd.rc)
|
precomp.h)
|
||||||
|
|
||||||
add_executable(cmd ${SOURCE})
|
add_executable(cmd ${SOURCE} cmd.rc)
|
||||||
target_link_libraries(cmd wine)
|
target_link_libraries(cmd wine)
|
||||||
set_module_type(cmd win32cui UNICODE)
|
set_module_type(cmd win32cui UNICODE)
|
||||||
add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll)
|
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)
|
add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -14,9 +14,9 @@ list(APPEND SOURCE
|
||||||
trayntfy.c
|
trayntfy.c
|
||||||
trayprop.c
|
trayprop.c
|
||||||
traywnd.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)
|
target_link_libraries(explorer_new uuid)
|
||||||
set_module_type(explorer_new win32gui UNICODE)
|
set_module_type(explorer_new win32gui UNICODE)
|
||||||
add_importlibs(explorer_new
|
add_importlibs(explorer_new
|
||||||
|
@ -34,5 +34,5 @@ add_importlibs(explorer_new
|
||||||
msvcrt
|
msvcrt
|
||||||
kernel32
|
kernel32
|
||||||
ntdll)
|
ntdll)
|
||||||
add_pch(explorer_new precomp.h)
|
add_pch(explorer_new precomp.h SOURCE)
|
||||||
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)
|
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)
|
||||||
|
|
|
@ -7,7 +7,6 @@ add_definitions(
|
||||||
-DWIN32
|
-DWIN32
|
||||||
-D__WINDRES__)
|
-D__WINDRES__)
|
||||||
|
|
||||||
#add_pch(explorer precomp.h)
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
|
@ -31,9 +30,6 @@ list(APPEND SOURCE
|
||||||
taskbar/desktopbar.cpp
|
taskbar/desktopbar.cpp
|
||||||
taskbar/startmenu.cpp
|
taskbar/startmenu.cpp
|
||||||
taskbar/traynotify.cpp
|
taskbar/traynotify.cpp
|
||||||
precomp.cpp
|
|
||||||
explorer.rc
|
|
||||||
services/startup.c
|
|
||||||
services/shellservices.cpp
|
services/shellservices.cpp
|
||||||
desktop/desktop.cpp
|
desktop/desktop.cpp
|
||||||
explorer.cpp
|
explorer.cpp
|
||||||
|
@ -43,18 +39,24 @@ list(APPEND SOURCE
|
||||||
utility/utility.cpp
|
utility/utility.cpp
|
||||||
utility/xmlstorage.cpp
|
utility/xmlstorage.cpp
|
||||||
utility/window.cpp
|
utility/window.cpp
|
||||||
utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
|
utility/shellbrowserimpl.cpp
|
||||||
|
precomp.h) # utility/shelltests.cpp
|
||||||
|
|
||||||
if(ARCH STREQUAL "i386")
|
if(ARCH STREQUAL "i386")
|
||||||
list(APPEND SOURCE
|
list(APPEND I386_SOURCE i386-stub-win32.c)
|
||||||
i386-stub-win32.c)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_executable(explorer ${SOURCE})
|
add_executable(explorer
|
||||||
|
${SOURCE}
|
||||||
|
${I386_SOURCE}
|
||||||
|
services/startup.c
|
||||||
|
explorer.rc)
|
||||||
|
|
||||||
target_link_libraries(explorer comsupp wine uuid)
|
target_link_libraries(explorer comsupp wine uuid)
|
||||||
set_module_type(explorer win32gui UNICODE)
|
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_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_dependencies(explorer psdk)
|
||||||
add_cd_file(TARGET explorer DESTINATION reactos FOR all)
|
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)
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/explorer-cfg-template.xml DESTINATION reactos FOR all)
|
||||||
|
|
Loading…
Reference in a new issue