mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[CMAKE]
- improve cacls build file - add charmap, dbgprint, doskey, find, hostname, lodctr, more, reg and xcopy build files - add win32cui module type to msc toolchain find is commented out for now. svn path=/branches/cmake-bringup/; revision=48875
This commit is contained in:
parent
29ab93ce7f
commit
38dd8fce5f
14 changed files with 106 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(cacls)
|
||||
add_subdirectory(calc)
|
||||
#add_subdirectory(charmap)
|
||||
#add_subdirectory(cmdutils)
|
||||
add_subdirectory(charmap)
|
||||
add_subdirectory(cmdutils)
|
||||
#add_subdirectory(control)
|
||||
#add_subdirectory(dxdiag)
|
||||
#add_subdirectory(extrac32)
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
add_definitions(-DUNICODE -D_UNICODE)
|
||||
|
||||
add_executable(cacls
|
||||
cacls.c
|
||||
cacls.rc)
|
||||
|
||||
set_module_type(cacls win32cui)
|
||||
|
||||
set_unicode(cacls yes)
|
||||
|
||||
add_importlibs(cacls advapi32 ntdll user32 shell32 msvcrt)
|
||||
|
||||
add_dependencies(cacls psdk)
|
||||
|
|
19
base/applications/charmap/CMakeLists.txt
Normal file
19
base/applications/charmap/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
about.c
|
||||
charmap.c
|
||||
lrgcell.c
|
||||
map.c
|
||||
charmap.rc)
|
||||
|
||||
add_executable(charmap
|
||||
${CMAKE_CURRENT_BINARY_DIR}/charmap_precomp.h.gch
|
||||
${SOURCE})
|
||||
|
||||
add_pch(charmap ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
|
||||
set_unicode(charmap yes)
|
||||
|
||||
set_module_type(charmap win32gui)
|
||||
|
||||
add_importlibs(charmap user32 gdi32 comctl32 msvcrt)
|
|
@ -1,9 +1,8 @@
|
|||
|
||||
#add_subdirectory(dbgprint)
|
||||
#add_subdirectory(doskey)
|
||||
add_subdirectory(dbgprint)
|
||||
add_subdirectory(doskey)
|
||||
#add_subdirectory(find)
|
||||
#add_subdirectory(hostname)
|
||||
#add_subdirectory(lodctr)
|
||||
#add_subdirectory(more)
|
||||
#add_subdirectory(reg)
|
||||
#add_subdirectory(xcopy)
|
||||
add_subdirectory(hostname)
|
||||
add_subdirectory(lodctr)
|
||||
add_subdirectory(more)
|
||||
add_subdirectory(reg)
|
||||
add_subdirectory(xcopy)
|
||||
|
|
7
base/applications/cmdutils/dbgprint/CMakeLists.txt
Normal file
7
base/applications/cmdutils/dbgprint/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
add_executable(dbgprint dbgprint.c)
|
||||
|
||||
set_module_type(dbgprint win32cui)
|
||||
|
||||
set_unicode(dbgprint no)
|
||||
|
||||
add_importlibs(dbgprint msvcrt)
|
9
base/applications/cmdutils/doskey/CMakeLists.txt
Normal file
9
base/applications/cmdutils/doskey/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
add_executable(doskey
|
||||
doskey.c
|
||||
doskey.rc)
|
||||
|
||||
set_module_type(doskey win32cui)
|
||||
|
||||
set_unicode(doskey yes)
|
||||
|
||||
add_importlibs(doskey user32 msvcrt)
|
9
base/applications/cmdutils/find/CMakeLists.txt
Normal file
9
base/applications/cmdutils/find/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
add_executable(find
|
||||
find.c
|
||||
find.rc)
|
||||
|
||||
set_module_type(find win32cui)
|
||||
|
||||
set_unicode(find no)
|
||||
|
||||
add_importlibs(find user32 msvcrt)
|
9
base/applications/cmdutils/hostname/CMakeLists.txt
Normal file
9
base/applications/cmdutils/hostname/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
add_executable(hostname
|
||||
hostname.c
|
||||
hostname.rc)
|
||||
|
||||
set_module_type(hostname win32cui)
|
||||
|
||||
set_unicode(hostname no)
|
||||
|
||||
add_importlibs(hostname msvcrt)
|
7
base/applications/cmdutils/lodctr/CMakeLists.txt
Normal file
7
base/applications/cmdutils/lodctr/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
add_executable(lodctr lodctr_main.c)
|
||||
|
||||
set_module_type(lodctr win32cui)
|
||||
|
||||
set_unicode(lodctr yes)
|
||||
|
||||
add_importlibs(lodctr loadperf msvcrt)
|
9
base/applications/cmdutils/more/CMakeLists.txt
Normal file
9
base/applications/cmdutils/more/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
add_executable(more
|
||||
more.c
|
||||
more.rc)
|
||||
|
||||
set_module_type(more win32cui)
|
||||
|
||||
set_unicode(more no)
|
||||
|
||||
add_importlibs(more ntdll user32 msvcrt)
|
11
base/applications/cmdutils/reg/CMakeLists.txt
Normal file
11
base/applications/cmdutils/reg/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
add_executable(reg
|
||||
reg.c
|
||||
rsrc.rc)
|
||||
|
||||
set_module_type(reg win32cui)
|
||||
|
||||
set_unicode(reg yes)
|
||||
|
||||
add_importlibs(reg advapi32 user32 msvcrt)
|
11
base/applications/cmdutils/xcopy/CMakeLists.txt
Normal file
11
base/applications/cmdutils/xcopy/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
add_executable(xcopy
|
||||
xcopy.c
|
||||
rsrc.rc)
|
||||
|
||||
set_module_type(xcopy win32cui)
|
||||
|
||||
set_unicode(xcopy yes)
|
||||
|
||||
add_importlibs(xcopy shell32 user32 msvcrt)
|
||||
|
||||
target_link_libraries(xcopy wine)
|
BIN
importlibs/libloadperf.a
Normal file
BIN
importlibs/libloadperf.a
Normal file
Binary file not shown.
|
@ -36,6 +36,10 @@ macro(set_module_type MODULE TYPE)
|
|||
if (${TYPE} MATCHES win32gui)
|
||||
set_subsystem(${MODULE} windows)
|
||||
endif ()
|
||||
if (${TYPE} MATCHES win32cui)
|
||||
set_subsystem(${MODULE} windows)
|
||||
set_entrypoint(${MODULE} mainCRTStartup)
|
||||
endif ()
|
||||
endmacro()
|
||||
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue