Integrate cmake stuff into trunk
Only files added.

svn path=/trunk/; revision=51783
This commit is contained in:
Timo Kreuzer 2011-05-16 13:12:07 +00:00
parent 5d006f3cbf
commit fae2044a23
844 changed files with 41236 additions and 0 deletions

206
reactos/CMakeLists.txt Normal file
View file

@ -0,0 +1,206 @@
cmake_minimum_required(VERSION 2.6)
if(POLICY CMP0017)
# Shadow cmake provided modules
cmake_policy(SET CMP0017 OLD)
endif()
project(REACTOS)
#versioning
include(include/reactos/version.cmake)
# Don't escape preprocessor definition values added via add_definitions
cmake_policy(SET CMP0005 OLD)
cmake_policy(SET CMP0002 NEW)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
set(CMAKE_SKIP_PREPROCESSED_SOURCE_RULES TRUE)
set(CMAKE_SKIP_ASSEMBLY_SOURCE_RULES TRUE)
set(CMAKE_COLOR_MAKEFILE OFF)
#set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
if(NOT ARCH)
set(ARCH i386)
endif()
string(TOLOWER ${ARCH} ARCH)
# Compile options
if(ARCH MATCHES i386)
include(config.cmake)
elseif(ARCH MATCHES amd64)
include(config-amd64.cmake)
elseif(ARCH MATCHES arm)
include(config-arm.cmake)
endif()
add_definitions(-D__REACTOS__)
if(NOT CMAKE_CROSSCOMPILING)
add_definitions(-DTARGET_${ARCH})
if(MSVC)
add_definitions(-Dinline=__inline)
else()
add_definitions(-fshort-wchar)
endif()
include_directories(
${REACTOS_SOURCE_DIR}/tools/unicode
include
include/host
${REACTOS_BINARY_DIR}/include)
add_subdirectory(tools)
add_subdirectory(lib)
if(NOT MSVC)
export(TARGETS widl wrc gendib cabman cdmake mkhive spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
else()
export(TARGETS gendib cabman cdmake mkhive spec2def geninc FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
endif()
else()
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
#useful stuff!
include(CMakeParseArguments)
# Do some cleanup
file(REMOVE
${REACTOS_BINARY_DIR}/dependencies.graphml
${REACTOS_BINARY_DIR}/boot/ros_livecd.txt
${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_cab.txt
${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
endif()
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
include(${IMPORT_EXECUTABLES})
# Compiler specific definitions and macros
if(MSVC)
include(msc.cmake)
else()
include(gcc.cmake)
endif()
# Generic macros
include(CMakeMacros.cmake)
# IDL macros for widl/midl
include(cmake/idl-support.cmake)
# Activate support for assembly source files
enable_language(ASM)
# Activate language support for resource files
enable_language(RC)
if(DBG)
add_definitions(-DDBG=1 -D_SEH_ENABLE_TRACE)
endif()
if(KDBG)
add_definitions(-DKDBG=1)
endif()
if(_WINKD_)
add_definitions(-D_WINKD_=1)
endif()
# Version Options
add_definitions(-DWINVER=0x502
-D_WIN32_IE=0x600
-D_WIN32_WINNT=0x502
-D_WIN32_WINDOWS=0x502
-D_SETUPAPI_VER=0x502)
# Arch Options
if(ARCH MATCHES i386)
add_definitions(-D_M_IX86 -D_X86_ -D__i386__)
elseif(ARCH MATCHES amd64)
add_definitions(-D_M_AMD64 -D_AMD64_ -D__x86_64__ -D_WIN64)
elseif(ARCH MATCHES arm)
# _M_ARM is already defined by toolchain
add_definitions(-D_ARM_ -D__arm__)
endif()
# Other
if(ARCH MATCHES i386)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T)
elseif(ARCH MATCHES amd64)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX)
elseif(ARCH MATCHES arm)
add_definitions(-DUSE_COMPILER_EXCEPTIONS)
endif()
include_directories(
include
include/psdk
include/dxsdk
${REACTOS_BINARY_DIR}/include
${REACTOS_BINARY_DIR}/include/dxsdk
${REACTOS_BINARY_DIR}/include/psdk
${REACTOS_BINARY_DIR}/include/reactos
include/crt
include/ddk
include/ndk
include/reactos
include/reactos/libs)
if(ARCH MATCHES arm)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/arm)
endif()
if(MSVC)
include_directories(include/crt/msc)
else()
include_directories(include/crt/mingw32)
endif()
add_dependency_header()
add_subdirectory(include/psdk)
add_subdirectory(include/dxsdk)
add_subdirectory(include/reactos/idl)
add_subdirectory(include/reactos/wine)
add_subdirectory(include/reactos/mc)
add_subdirectory(include/asm)
include(baseaddress.cmake)
#begin with boot so reactos_cab target is defined before all other modules
add_subdirectory(boot)
add_subdirectory(base)
add_subdirectory(dll)
add_subdirectory(drivers)
add_subdirectory(hal)
add_subdirectory(lib)
add_subdirectory(media)
add_subdirectory(modules)
add_subdirectory(ntoskrnl)
add_subdirectory(subsystems)
file(MAKE_DIRECTORY ${REACTOS_BINARY_DIR}/include/reactos)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/importlibs)
add_dependency_footer()
endif()

178
reactos/CMakeMacros.cmake Normal file
View file

@ -0,0 +1,178 @@
if (NOT MSVC)
macro(CreateBootSectorTarget _target_name _asm_file _object_file)
get_filename_component(OBJECT_PATH ${_object_file} PATH)
get_filename_component(OBJECT_NAME ${_object_file} NAME)
file(MAKE_DIRECTORY ${OBJECT_PATH})
get_directory_property(defines COMPILE_DEFINITIONS)
get_directory_property(includes INCLUDE_DIRECTORIES)
foreach(arg ${defines})
set(result_defs ${result_defs} -D${arg})
endforeach()
foreach(arg ${includes})
set(result_incs -I${arg} ${result_incs})
endforeach()
add_custom_command(
OUTPUT ${_object_file}
COMMAND nasm -o ${_object_file} ${result_incs} ${result_defs} -f bin ${_asm_file}
DEPENDS ${_asm_file})
set_source_files_properties(${_object_file} PROPERTIES GENERATED TRUE)
add_custom_target(${_target_name} ALL DEPENDS ${_object_file})
endmacro()
else()
macro(CreateBootSectorTarget _target_name _asm_file _object_file)
endmacro()
endif()
macro(set_cpp)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
set(IS_CPP 1)
add_definitions(
-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
-DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
endmacro()
macro(add_dependency_node _node)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_node} TYPE)
if(_type MATCHES SHARED_LIBRARY)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <node id=\"${_node}\"/>\n")
endif()
endif()
endmacro()
macro(add_dependency_edge _source _target)
if(GENERATE_DEPENDENCY_GRAPH)
get_target_property(_type ${_source} TYPE)
if(_type MATCHES SHARED_LIBRARY)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " <edge source=\"${_source}\" target=\"${_target}\"/>\n")
endif()
endif()
endmacro()
macro(add_dependency_header)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<graphml>\n <graph id=\"ReactOS dependencies\" edgedefault=\"directed\">\n")
add_dependency_node(ntdll)
endmacro()
macro(add_dependency_footer)
file(APPEND ${REACTOS_BINARY_DIR}/dependencies.graphml " </graph>\n</graphml>\n")
endmacro()
macro(add_message_headers)
foreach(_in_FILE ${ARGN})
get_filename_component(FILE ${_in_FILE} NAME_WE)
macro_mc(${FILE})
add_custom_command(
OUTPUT ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h
COMMAND ${COMMAND_MC}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.mc)
set_source_files_properties(
${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc
PROPERTIES GENERATED TRUE)
add_custom_target(${FILE} ALL DEPENDS ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc)
endforeach()
endmacro()
macro(dir_to_num dir var)
if(${dir} STREQUAL reactos/system32)
set(${var} 1)
elseif(${dir} STREQUAL reactos/system32/drivers)
set(${var} 2)
elseif(${dir} STREQUAL reactos/Fonts)
set(${var} 3)
elseif(${dir} STREQUAL reactos)
set(${var} 4)
elseif(${dir} STREQUAL reactos/system32/drivers/etc)
set(${var} 5)
elseif(${dir} STREQUAL reactos/inf)
set(${var} 6)
elseif(${dir} STREQUAL reactos/bin)
set(${var} 7)
elseif(${dir} STREQUAL reactos/media)
set(${var} 8)
else()
message(ERROR "Wrong destination: ${dir}")
endif()
endmacro()
function(add_cd_file)
cmake_parse_arguments(_CD "NO_CAB" "DESTINATION;NAME_ON_CD;TARGET" "FILE;FOR" ${ARGN})
if(NOT (_CD_TARGET OR _CD_FILE))
message(FATAL_ERROR "You must provide a target or a file to install!")
endif()
if(NOT _CD_DESTINATION)
message(FATAL_ERROR "You must provide a destination")
elseif(${_CD_DESTINATION} STREQUAL root)
set(_CD_DESTINATION "")
endif()
if(NOT _CD_FOR)
message(FATAL_ERROR "You must provide a cd name (or "all" for all of them) to install the file on!")
endif()
#get file if we need to
if(NOT _CD_FILE)
get_target_property(_CD_FILE ${_CD_TARGET} LOCATION)
endif()
#do we add it to all CDs?
if(_CD_FOR STREQUAL all)
set(_CD_FOR "bootcd;livecd;regtest")
endif()
#do we add it to bootcd?
list(FIND _CD_FOR bootcd __cd)
if(NOT __cd EQUAL -1)
#whether or not we should put it in reactos.cab or directly on cd
if(_CD_NO_CAB)
#directly on cd
foreach(item ${_CD_FILE})
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootcd.cmake "file(COPY \"${item}\" DESTINATION \"\${CD_DIR}/${_CD_DESTINATION}\")\n")
endforeach()
if(_CD_NAME_ON_CD)
get_filename_component(__file ${_CD_FILE} NAME)
#rename it in the cd tree
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootcd.cmake "file(RENAME \${CD_DIR}/${_CD_DESTINATION}/${__file} \${CD_DIR}/${_CD_DESTINATION}/${_CD_NAME_ON_CD})\n")
endif()
if(_CD_TARGET)
#manage dependency
add_dependencies(bootcd ${_CD_TARGET})
endif()
else()
#add it in reactos.cab
dir_to_num(${_CD_DESTINATION} _num)
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn "${_CD_FILE} ${_num}\n")
if(_CD_TARGET)
#manage dependency
add_dependencies(reactos_cab ${_CD_TARGET})
endif()
endif()
endif() #end bootcd
#do we add it to livecd?
list(FIND _CD_FOR livecd __cd)
if(NOT __cd EQUAL -1)
#manage dependency
if(_CD_TARGET)
add_dependencies(livecd ${_CD_TARGET})
endif()
foreach(item ${_CD_FILE})
file(APPEND ${REACTOS_BINARY_DIR}/boot/livecd.cmake "file(COPY \"${item}\" DESTINATION \"\${CD_DIR}/${_CD_DESTINATION}\")\n")
endforeach()
if(_CD_NAME_ON_CD)
get_filename_component(__file ${_CD_FILE} NAME)
#rename it in the cd tree
file(APPEND ${REACTOS_BINARY_DIR}/boot/livecd.cmake "file(RENAME \${CD_DIR}/${_CD_DESTINATION}/${__file} \${CD_DIR}/${_CD_DESTINATION}/${_CD_NAME_ON_CD})\n")
endif()
endif() #end livecd
endfunction()

10
reactos/PreLoad.cmake Normal file
View file

@ -0,0 +1,10 @@
# small trick to get the real source directory at this stage
STRING(REPLACE "/PreLoad.cmake" "" REACTOS_HOME_DIR ${CMAKE_CURRENT_LIST_FILE})
#message("/PreLoad.cmake ... ${REACTOS_HOME_DIR}")
SET(CMAKE_MODULE_PATH "${REACTOS_HOME_DIR}/cmake" CACHE INTERNAL "")
#message("CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}")

View file

@ -0,0 +1,6 @@
add_subdirectory(applications)
add_subdirectory(services)
add_subdirectory(setup)
add_subdirectory(shell)
add_subdirectory(system)

View file

@ -0,0 +1,37 @@
add_subdirectory(cacls)
add_subdirectory(calc)
add_subdirectory(charmap)
add_subdirectory(cmdutils)
add_subdirectory(control)
add_subdirectory(dxdiag)
add_subdirectory(extrac32)
add_subdirectory(findstr)
add_subdirectory(fontview)
add_subdirectory(games)
add_subdirectory(hh)
add_subdirectory(iexplore)
add_subdirectory(kbswitch)
add_subdirectory(logoff)
add_subdirectory(magnify)
add_subdirectory(mmc)
add_subdirectory(mplay32)
# add_subdirectory(msconfig)
add_subdirectory(mscutils)
add_subdirectory(mstsc)
add_subdirectory(network)
add_subdirectory(notepad)
add_subdirectory(mspaint)
add_subdirectory(rapps)
add_subdirectory(regedit)
add_subdirectory(regedt32)
add_subdirectory(sc)
add_subdirectory(screensavers)
add_subdirectory(shutdown)
add_subdirectory(sndrec32)
add_subdirectory(sndvol32)
add_subdirectory(taskmgr)
add_subdirectory(winhlp32)
add_subdirectory(winver)
add_subdirectory(wordpad)
add_subdirectory(write)

View file

@ -0,0 +1,15 @@
set_unicode()
set_rc_compiler()
list(APPEND SOURCE cacls.c cacls.rc)
add_executable(cacls
${CMAKE_CURRENT_BINARY_DIR}/cacls_precomp.h.gch
${SOURCE})
add_pch(cacls ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(cacls win32cui)
add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32)
add_cd_file(TARGET cacls DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,22 @@
set_unicode()
set_rc_compiler()
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
add_executable(calc
about.c
convert.c
function.c
rpn.c
utl.c
winmain.c
resource.rc)
set_module_type(calc win32gui)
add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)
if(MSVC)
add_importlibs(calc ntdll)
endif()
add_cd_file(TARGET calc DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,22 @@
set_unicode()
set_rc_compiler()
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_module_type(charmap win32gui)
add_importlibs(charmap user32 gdi32 comctl32 kernel32 msvcrt)
add_cd_file(TARGET charmap DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,8 @@
add_subdirectory(dbgprint)
add_subdirectory(doskey)
add_subdirectory(find)
add_subdirectory(hostname)
add_subdirectory(lodctr)
add_subdirectory(more)
add_subdirectory(reg)
add_subdirectory(xcopy)

View file

@ -0,0 +1,5 @@
add_executable(dbgprint dbgprint.c)
set_module_type(dbgprint win32cui)
add_importlibs(dbgprint msvcrt kernel32)
add_cd_file(TARGET dbgprint DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,9 @@
set_unicode()
set_rc_compiler()
add_executable(doskey doskey.c doskey.rc)
set_module_type(doskey win32cui)
add_importlibs(doskey user32 msvcrt kernel32)
add_cd_file(TARGET doskey DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,7 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(find find.c find.rc)
set_module_type(find win32cui)
add_importlibs(find user32 msvcrt kernel32)
add_cd_file(TARGET find DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,7 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(hostname hostname.c hostname.rc)
set_module_type(hostname win32cui)
add_importlibs(hostname msvcrt kernel32)
add_cd_file(TARGET hostname DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,8 @@
set_unicode()
add_executable(lodctr lodctr_main.c)
set_module_type(lodctr win32cui)
add_importlibs(lodctr loadperf msvcrt kernel32)
add_cd_file(TARGET lodctr DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,6 @@
add_executable(more more.c more.rc)
set_module_type(more win32cui)
add_importlibs(more user32 msvcrt kernel32)
add_cd_file(TARGET more DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
set_unicode()
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_executable(reg reg.c rsrc.rc)
set_module_type(reg win32cui)
add_importlibs(reg advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET reg DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
set_unicode()
add_executable(xcopy xcopy.c rsrc.rc)
target_link_libraries(xcopy wine)
set_module_type(xcopy win32cui)
add_importlibs(xcopy shell32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET xcopy DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,9 @@
set_unicode()
set_rc_compiler()
add_executable(control control.c control.rc)
set_module_type(control win32gui)
add_importlibs(control advapi32 shell32 msvcrt kernel32)
add_cd_file(TARGET control DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,33 @@
set_unicode()
set_rc_compiler()
list(APPEND SOURCE
system.c
display.c
sound.c
music.c
input.c
network.c
help.c
dxdiag.c
dxdiag.rc
ddtest.c
d3dtest.c
d3dtest7.c
d3dtest8.c
d3dtest9.c)
add_executable(dxdiag
${CMAKE_CURRENT_BINARY_DIR}/dxdiag_precomp.h.gch
${SOURCE})
add_pch(dxdiag ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(dxdiag win32gui)
target_link_libraries(dxdiag dxguid)
add_importlibs(dxdiag user32 advapi32 comctl32 dinput8 setupapi dsound ddraw version gdi32 winmm d3d9 msvcrt kernel32 ntdll)
add_cd_file(TARGET dxdiag DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
set_unicode()
add_executable(extrac32 extrac32.c)
target_link_libraries(extrac32 wine)
set_module_type(extrac32 win32gui)
add_importlibs(extrac32 shell32 setupapi shlwapi user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET extrac32 DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(findstr
findstr.c
findstr.rc)
set_module_type(findstr win32cui)
add_importlibs(findstr user32 msvcrt kernel32)
add_cd_file(TARGET findstr DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
set_rc_compiler()
add_executable(fontview
display.c
fontview.c
fontview.rc)
set_module_type(fontview win32gui)
add_importlibs(fontview gdi32 shell32 user32 msvcrt kernel32)
add_cd_file(TARGET fontview DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,4 @@
add_subdirectory(solitaire)
add_subdirectory(spider)
add_subdirectory(winmine)

View file

@ -0,0 +1,20 @@
set_unicode()
set_cpp()
set_rc_compiler()
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib)
add_executable(sol
solcreate.cpp
solgame.cpp
solitaire.cpp
rsrc.rc)
target_link_libraries(sol cardlib)
set_module_type(sol win32gui)
add_importlibs(sol advapi32 comctl32 user32 gdi32 kernel32 msvcrt)
add_cd_file(TARGET sol DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,20 @@
set_unicode()
set_cpp()
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib ${CMAKE_CURRENT_SOURCE_DIR})
set_rc_compiler()
add_executable(spider
spider.cpp
spigame.cpp
rsrc.rc)
target_link_libraries(spider cardlib)
set_module_type(spider win32gui)
add_importlibs(spider advapi32 comctl32 user32 gdi32 kernel32 msvcrt)
add_cd_file(TARGET spider DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,15 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
set_rc_compiler()
add_executable(winmine
main.c
dialog.c
rsrc.rc)
set_module_type(winmine win32gui)
target_link_libraries(winmine wine)
add_importlibs(winmine user32 gdi32 advapi32 shell32 msvcrt kernel32 ntdll)
add_cd_file(TARGET winmine DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,6 @@
set_rc_compiler()
add_executable(hh main.c hh.rc)
set_module_type(hh win32gui)
add_importlibs(hh gdi32 user32 msvcrt kernel32)
add_cd_file(TARGET hh DESTINATION reactos FOR all)

View file

@ -0,0 +1,6 @@
set_rc_compiler()
add_executable(iexplore main.c iexplore.rc)
set_module_type(iexplore win32gui)
add_importlibs(iexplore shdocvw msvcrt kernel32)
add_cd_file(TARGET iexplore DESTINATION reactos FOR all)

View file

@ -0,0 +1,11 @@
set_unicode()
set_rc_compiler()
add_executable(kbswitch kbswitch.c kbswitch.rc)
set_module_type(kbswitch win32gui)
add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt kernel32)
add_cd_file(TARGET kbswitch DESTINATION reactos/system32 FOR all)
add_subdirectory(kbsdll)

View file

@ -0,0 +1,15 @@
set_unicode()
spec2def(kbsdll.dll kbsdll.spec)
list(APPEND SOURCE
kbsdll.c
kbsdll.rc
${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
add_library(kbsdll SHARED ${SOURCE})
set_module_type(kbsdll win32dll)
add_importlibs(kbsdll user32 comctl32 kernel32 msvcrt)
add_cd_file(TARGET kbsdll DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,15 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
list(APPEND SOURCE
misc.c
logoff.c
logoff.rc)
add_executable(logoff ${CMAKE_CURRENT_BINARY_DIR}/logoff_precomp.h.gch ${SOURCE})
add_pch(logoff ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(logoff win32cui)
add_importlibs(logoff advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET logoff DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
set_rc_compiler()
add_executable(magnify
magnifier.c
settings.c
magnify.rc)
set_module_type(magnify win32gui)
add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32)
add_cd_file(TARGET magnify DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,16 @@
set_rc_compiler()
set_unicode()
list(APPEND SOURCE
console.c
misc.c
mmc.c
mmc.rc)
add_executable(mmcclient ${CMAKE_CURRENT_BINARY_DIR}/mmcclient_precomp.h.gch ${SOURCE})
add_pch(mmcclient ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(mmcclient win32gui)
add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt kernel32)

View file

@ -0,0 +1,9 @@
set_unicode()
set_rc_compiler()
add_executable(mplay32 mplay32.c mplay32.rc)
set_module_type(mplay32 win32gui)
add_importlibs(mplay32 advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt kernel32)
add_cd_file(TARGET mplay32 DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,21 @@
set_unicode()
set_rc_compiler()
list(APPEND SOURCE
toolspage.c
srvpage.c
systempage.c
startuppage.c
freeldrpage.c
generalpage.c
msconfig.c
msconfig.rc)
add_executable(msconfig ${CMAKE_CURRENT_BINARY_DIR}/msconfig_precomp.h.gch ${SOURCE})
add_pch(msconfig ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(msconfig win32gui)
add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt kernel32)
add_cd_file(TARGET msconfig DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,4 @@
add_subdirectory(devmgmt)
add_subdirectory(eventvwr)
add_subdirectory(servman)

View file

@ -0,0 +1,18 @@
set_unicode()
list(APPEND SOURCE
about.c
devmgmt.c
enumdevices.c
mainwnd.c
misc.c
devmgmt.rc)
add_executable(devmgmt ${CMAKE_CURRENT_BINARY_DIR}/devmgmt_precomp.h.gch ${SOURCE})
add_pch(devmgmt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(devmgmt win32gui)
add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt kernel32)
add_cd_file(TARGET devmgmt DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,13 @@
set_unicode()
add_executable(eventvwr eventvwr.c eventvwr.rc)
set_module_type(eventvwr win32gui)
add_importlibs(eventvwr user32 comctl32 advapi32 msvcrt kernel32)
if(MSVC)
add_importlibs(eventvwr ntdll)
endif()
add_cd_file(TARGET eventvwr DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,35 @@
set_unicode()
set_rc_compiler()
list(APPEND SOURCE
about.c
control.c
create.c
delete.c
dependencies_tv1.c
dependencies_tv2.c
export.c
listview.c
mainwnd.c
misc.c
progress.c
propsheet.c
propsheet_depends.c
propsheet_general.c
query.c
servman.c
start.c
stop.c
stop_dependencies.c
servman.rc)
add_executable(servman ${CMAKE_CURRENT_BINARY_DIR}/servman_precomp.h.gch ${SOURCE})
add_pch(servman ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(servman win32gui)
add_importlibs(servman user32 gdi32 advapi32 version comctl32 shell32 comdlg32 msvcrt kernel32)
add_cd_file(TARGET servman DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,21 @@
set_unicode()
add_executable(paint
dialogs.c
dib.c
drawing.c
history.c
main.c
mouse.c
palette.c
registry.c
selection.c
sizebox.c
toolsettings.c
winproc.c
rsrc.rc)
set_module_type(paint win32gui)
add_importlibs(paint comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
add_cab_target(paint 1)

View file

@ -0,0 +1,34 @@
set_unicode()
list(APPEND SOURCE
bitmap.c
bsops.c
cache.c
channels.c
connectdialog.c
iso.c
licence.c
mcs.c
mppc.c
orders.c
pstcache.c
rdp5.c
rdp.c
secure.c
settings.c
ssl_calls.c
tcp.c
uimain.c
win32.c
rdc.rc)
add_executable(mstsc ${CMAKE_CURRENT_BINARY_DIR}/mstsc_precomp.h.gch ${SOURCE})
add_pch(mstsc ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(mstsc win32gui)
add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32)
add_cd_file(TARGET mstsc DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,16 @@
add_subdirectory(arp)
add_subdirectory(dwnl)
add_subdirectory(finger)
add_subdirectory(ftp)
add_subdirectory(ipconfig)
add_subdirectory(net)
add_subdirectory(netstat)
add_subdirectory(nslookup)
add_subdirectory(ping)
add_subdirectory(route)
if(NOT MSVC)
add_subdirectory(telnet)
endif()
add_subdirectory(tracert)
add_subdirectory(whois)

View file

@ -0,0 +1,8 @@
add_executable(arp arp.c arp.rc)
set_module_type(arp win32cui)
add_importlibs(arp iphlpapi ws2_32 shlwapi msvcrt kernel32)
add_cd_file(TARGET arp DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,16 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
add_executable(dwnl dwnl.c)
set_module_type(dwnl win32cui)
target_link_libraries(dwnl uuid)
add_importlibs(dwnl urlmon wininet msvcrt kernel32)
if(MSVC)
add_importlibs(dwnl ntdll)
endif()
add_cd_file(TARGET dwnl DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,15 @@
add_definitions(
-D__USE_W32_SOCKETS
-D_DLL -D__USE_CRTIMP)
add_executable(finger
finger.c
err.c
getopt.c
net.c
finger.rc)
set_module_type(finger win32cui)
add_importlibs(finger ws2_32 msvcrt kernel32)
add_cd_file(TARGET finger DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,24 @@
add_definitions(
-D_DLL -D__USE_CRTIMP
-Dlint)
add_executable(ftp
cmds.c
cmdtab.c
domacro.c
fake.c
ftp.c
main.c
ruserpass.c
ftp.rc)
set_module_type(ftp win32cui)
add_importlibs(ftp ws2_32 iphlpapi msvcrt kernel32)
if(MSVC)
target_link_libraries(ftp oldnames)
add_importlibs(ftp ntdll)
endif()
add_cd_file(TARGET ftp DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,5 @@
add_executable(ipconfig ipconfig.c ipconfig.rc)
set_module_type(ipconfig win32cui)
add_importlibs(ipconfig user32 iphlpapi advapi32 msvcrt kernel32)
add_cd_file(TARGET ipconfig DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,15 @@
add_definitions(-D__USE_W32_SOCKETS)
list(APPEND SOURCE
main.c
cmdstart.c
cmdStop.c
help.c
process.c)
add_executable(net ${SOURCE})
set_module_type(net win32cui)
add_importlibs(net ws2_32 msvcrt kernel32)
add_cd_file(TARGET net DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,5 @@
add_executable(netstat netstat.c netstat.rc)
set_module_type(netstat win32cui)
add_importlibs(netstat user32 ws2_32 snmpapi iphlpapi msvcrt kernel32)
add_cd_file(TARGET netstat DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,9 @@
add_executable(nslookup
nslookup.c
utility.c
nslookup.rc)
set_module_type(nslookup win32cui)
add_importlibs(nslookup user32 ws2_32 snmpapi iphlpapi msvcrt kernel32)
add_cd_file(TARGET nslookup DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,16 @@
set_unicode()
add_definitions(-D__USE_W32_SOCKETS)
set_unicode()
add_executable(ping ping.c ping.rc)
set_module_type(ping win32cui)
add_importlibs(ping ws2_32 msvcrt kernel32)
if(MSVC)
add_importlibs(ping ntdll)
endif()
add_cd_file(TARGET ping DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
add_executable(route route.c route.rc)
set_module_type(route win32cui)
add_importlibs(route ws2_32 iphlpapi msvcrt kernel32)
add_cd_file(TARGET route DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,32 @@
add_definitions(
-D_CRT_NONSTDC_NO_DEPRECATE
-D_DLL -D__USE_CRTIMP)
set_cpp()
add_executable(telnet
src/ansiprsr.cpp
src/keytrans.cpp
src/tcharmap.cpp
src/tconsole.cpp
src/tkeydef.cpp
src/tkeymap.cpp
src/tmapldr.cpp
src/tmouse.cpp
src/tnclass.cpp
src/tnclip.cpp
src/tncon.cpp
src/tnconfig.cpp
src/tnerror.cpp
src/tnetwork.cpp
src/tnmain.cpp
src/tnmisc.cpp
src/tscript.cpp
src/tscroll.cpp
src/ttelhndl.cpp
telnet.rc)
set_module_type(telnet win32cui)
add_importlibs(telnet ws2_32 user32 kernel32 msvcrt)
add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,13 @@
add_definitions(-D__USE_W32_SOCKETS)
add_executable(tracert tracert.c tracert.rc)
set_module_type(tracert win32cui)
add_importlibs(tracert ws2_32 msvcrt kernel32)
if(MSVC)
add_importlibs(tracert ntdll)
endif()
add_cd_file(TARGET tracert DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,8 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(whois whois.c whois.rc)
set_module_type(whois win32cui)
add_importlibs(whois ws2_32 msvcrt kernel32)
add_cd_file(TARGET whois DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,17 @@
list(APPEND SOURCE
dialog.c
main.c
settings.c
text.c
rsrc.rc)
set_rc_compiler()
add_pch(notepad ${CMAKE_CURRENT_SOURCE_DIR}/notepad.h ${SOURCE})
add_executable(notepad ${CMAKE_CURRENT_BINARY_DIR}/notepad_notepad.h.gch ${SOURCE})
set_module_type(notepad win32gui)
add_importlibs(notepad user32 gdi32 comctl32 comdlg32 advapi32 shell32 msvcrt kernel32)
add_cd_file(TARGET notepad DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,35 @@
set_unicode()
list(APPEND SOURCE
aboutdlg.c
available.c
installdlg.c
installed.c
listview.c
loaddlg.c
misc.c
parser.c
richedit.c
settingsdlg.c
splitter.c
statusbar.c
toolbar.c
treeview.c
winmain.c
rapps.rc)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${REACTOS_BINARY_DIR}/include/reactos)
set_rc_compiler()
add_executable(rapps ${SOURCE})
set_module_type(rapps win32gui)
target_link_libraries(rapps uuid)
add_importlibs(rapps advapi32 comctl32 gdi32 urlmon user32 shell32 shlwapi kernel32 msvcrt ntdll)
add_dependencies(rapps rappsmsg)
add_message_headers(rappsmsg.mc)
add_cd_file(TARGET rapps DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,37 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
set_rc_compiler()
include_directories(BEFORE .)
list(APPEND SOURCE
about.c
childwnd.c
edit.c
error.c
find.c
framewnd.c
hexedit.c
listview.c
main.c
regedit.c
regproc.c
security.c
treeview.c
regedit.rc)
add_pch(regedit ${CMAKE_CURRENT_SOURCE_DIR}/regedit.h ${SOURCE})
add_executable(regedit ${CMAKE_CURRENT_BINARY_DIR}/regedit_regedit.h.gch ${SOURCE})
set_module_type(regedit win32gui)
target_link_libraries(regedit uuid)
add_importlibs(regedit user32 gdi32 advapi32 ole32 shell32 comctl32 comdlg32 shlwapi msvcrt kernel32)
#add_subdirectory(clb)
add_cd_file(TARGET regedit DESTINATION reactos FOR all)

View file

@ -0,0 +1,14 @@
spec2def(clb.dll clb.spec)
set_unicode()
set_rc_compiler()
add_library(clb SHARED
clb.c
clb.rc
${CMAKE_CURRENT_BINARY_DIR}/clb.def)
set_module_type(clb win32dll)
add_importlibs(clb user32 gdi32 comctl32 kernel32 ntdll)

View file

@ -0,0 +1,9 @@
set_unicode()
set_rc_compiler()
add_executable(regedt32 regedt32.c resource.rc)
set_module_type(regedt32 win32gui)
add_importlibs(regedt32 shell32 shlwapi msvcrt kernel32)
add_cd_file(TARGET regedt32 DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,22 @@
set_unicode()
add_definitions(-DDEFINE_GUID)
list(APPEND SOURCE
control.c
create.c
delete.c
print.c
query.c
sc.c
start.c
usage.c
sc.rc)
add_executable(sc ${CMAKE_CURRENT_BINARY_DIR}/sc_sc.h.gch ${SOURCE})
add_pch(sc ${CMAKE_CURRENT_SOURCE_DIR}/sc.h ${SOURCE})
set_module_type(sc win32cui)
add_importlibs(sc advapi32 msvcrt kernel32)
add_cd_file(TARGET sc DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,16 @@
set_rc_compiler()
set_unicode()
add_executable(3dtext
3dtext.c
settings.c
rsrc.rc)
set_module_type(3dtext win32gui)
set_target_properties(3dtext PROPERTIES SUFFIX ".scr")
target_link_libraries(3dtext scrnsave)
add_importlibs(3dtext user32 gdi32 opengl32 glu32 advapi32 msvcrt kernel32)
add_cd_file(TARGET 3dtext DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,3 @@
add_subdirectory(3dtext)
add_subdirectory(logon)

View file

@ -0,0 +1,12 @@
set_rc_compiler()
set_unicode()
add_executable(logon logon.c logon.rc)
set_module_type(logon win32gui)
set_target_properties(logon PROPERTIES SUFFIX ".scr")
target_link_libraries(logon scrnsave)
add_importlibs(logon user32 gdi32 msvcrt kernel32)
add_cd_file(TARGET logon DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,15 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
list(APPEND SOURCE
misc.c
shutdown.c
shutdown.rc)
add_executable(shutdown ${CMAKE_CURRENT_BINARY_DIR}/shutdown_precomp.h.gch ${SOURCE})
add_pch(shutdown ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(shutdown win32cui)
add_importlibs(shutdown advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET shutdown DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,20 @@
set_unicode()
set_cpp()
set_rc_compiler()
add_executable(sndrec32
audio_format.cpp
audio_membuffer.cpp
audio_producer.cpp
audio_receiver.cpp
audio_resampler_acm.cpp
audio_wavein.cpp
audio_waveout.cpp
sndrec32.cpp
rsrc.rc)
target_link_libraries(sndrec32 stlport)
set_module_type(sndrec32 win32gui)
add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt kernel32)
add_cd_file(TARGET sndrec32 DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,19 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
list(APPEND SOURCE
dialog.c
misc.c
mixer.c
sndvol32.c
sndvol32.rc)
add_executable(sndvol32 ${CMAKE_CURRENT_BINARY_DIR}/sndvol32_sndvol32.h.gch ${SOURCE})
add_pch(sndvol32 ${CMAKE_CURRENT_SOURCE_DIR}/sndvol32.h ${SOURCE})
set_module_type(sndvol32 win32gui)
add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll)
add_cd_file(TARGET sndvol32 DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,32 @@
set_unicode()
set_rc_compiler()
list(APPEND SOURCE
about.c
affinity.c
applpage.c
column.c
dbgchnl.c
debug.c
endproc.c
graph.c
optnmenu.c
perfdata.c
perfpage.c
priority.c
procpage.c
proclist.c
run.c
trayicon.c
taskmgr.c
graphctl.c
taskmgr.rc)
add_executable(taskmgr ${CMAKE_CURRENT_BINARY_DIR}/taskmgr_precomp.h.gch ${SOURCE})
add_pch(taskmgr ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(taskmgr win32gui)
add_importlibs(taskmgr advapi32 user32 gdi32 shell32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET taskmgr DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,26 @@
set_rc_compiler()
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(
-D__ROS_LONG64__
-D_CRT_NONSTDC_NO_DEPRECATE
-Dfileno=_fileno
-Disatty=_isatty
-D_DLL -D__USE_CRTIMP)
add_executable(winhlp32
callback.c
hlpfile.c
macro.c
string.c
winhelp.c
lex.yy.c
rsrc.rc)
set_module_type(winhlp32 win32gui)
target_link_libraries(winhlp32 wine)
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)

View file

@ -0,0 +1,7 @@
set_unicode()
add_executable(winver winver.c)
set_module_type(winver win32gui)
add_importlibs(winver shell32 msvcrt kernel32)
add_cd_file(TARGET winver DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,23 @@
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(
-D__ROS_LONG64__
-D_DLL -D__USE_CRTIMP)
set_rc_compiler()
list(APPEND SOURCE
olecallback.c
print.c
registry.c
wordpad.c
rsrc.rc)
add_executable(wordpad ${SOURCE})
set_module_type(wordpad win32gui)
target_link_libraries(wordpad wine uuid)
add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,7 @@
set_unicode()
add_executable(write write.c rsrc.rc)
set_module_type(write win32gui)
add_importlibs(write user32 gdi32 msvcrt kernel32)
add_cd_file(TARGET write DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
add_subdirectory(audiosrv)
add_subdirectory(eventlog)
add_subdirectory(rpcss)
add_subdirectory(spoolsv)
add_subdirectory(svchost)
add_subdirectory(tcpsvcs)
add_subdirectory(telnetd)
#add_subdirectory(tftpd)
add_subdirectory(umpnpmgr)
add_subdirectory(wlansvc)

View file

@ -0,0 +1,15 @@
set_unicode(audiosrv yes)
add_executable(audiosrv
main.c
pnp_list_manager.c
pnp_list_lock.c
pnp.c
services.c
debug.c
audiosrv.rc)
set_module_type(audiosrv win32cui)
add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
add_cd_file(TARGET audiosrv DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,22 @@
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
set_unicode()
list(APPEND SOURCE
eventlog.c
eventsource.c
logport.c
eventlog.rc
rpc.c
file.c)
add_executable(eventlog ${CMAKE_CURRENT_BINARY_DIR}/eventlog_eventlog.h.gch ${SOURCE})
target_link_libraries(eventlog eventlogrpc ${PSEH_LIB})
add_pch(eventlog ${CMAKE_CURRENT_SOURCE_DIR}/eventlog.h ${SOURCE})
set_module_type(eventlog win32cui)
add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
add_cd_file(TARGET eventlog DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,21 @@
set_unicode()
list(APPEND SOURCE
epmp.c
irotp.c
rpcss_main.c
service_main.c
rpcss.rc)
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
add_executable(rpcss ${SOURCE})
target_link_libraries(rpcss epmrpc irotrpc ${PSEH_LIB} wine)
set_module_type(rpcss win32cui)
add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
add_dependencies(rpcss winesdk)

View file

@ -0,0 +1,10 @@
set_unicode()
add_executable(spoolsv spoolsv.c spoolsv.rc)
target_link_libraries(spoolsv wine)
set_module_type(spoolsv win32cui)
add_importlibs(spoolsv advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,6 @@
add_executable(svchost svchost.c svchost.rc)
set_module_type(svchost win32cui)
add_importlibs(svchost advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET svchost DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,23 @@
set_unicode()
list(APPEND SOURCE
tcpsvcs.c
skelserver.c
echo.c
discard.c
daytime.c
qotd.c
chargen.c
tcpsvcs.rc
log.c)
add_executable(tcpsvcs ${CMAKE_CURRENT_BINARY_DIR}/tcpsvcs_tcpsvcs.h.gch ${SOURCE})
add_pch(tcpsvcs ${CMAKE_CURRENT_SOURCE_DIR}/tcpsvcs.h ${SOURCE})
set_module_type(tcpsvcs win32cui)
add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET tcpsvcs DESTINATION reactos/system32 FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/quotes DESTINATION reactos/system32/drivers/etc FOR all)

View file

@ -0,0 +1,13 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
add_executable(telnetd
telnetd.c
serviceentry.c
telnetd.rc)
target_link_libraries(telnetd wine)
set_module_type(telnetd win32cui)
add_importlibs(telnetd advapi32 ws2_32 msvcrt kernel32 ntdll)
add_cd_file(TARGET telnetd DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,7 @@
add_executable(tftpd tftpd.cpp)
target_link_libraries(tftpd wine)
set_module_type(tftpd win32cui)
add_importlibs(tftpd advapi32 ws2_32 msvcrt kernel32 ntdll)

View file

@ -0,0 +1,14 @@
set_unicode()
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_executable(umpnpmgr umpnpmgr.c umpnpmgr.rc)
target_link_libraries(umpnpmgr pnprpc wdmguid ${PSEH_LIB})
set_module_type(umpnpmgr win32cui)
add_importlibs(umpnpmgr advapi32 rpcrt4 userenv msvcrt kernel32 ntdll)
add_cd_file(TARGET umpnpmgr DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
set_unicode()
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
add_executable(wlansvc wlansvc.c rpcserver.c)
target_link_libraries(wlansvc wlansvcrpc ${PSEH_LIB})
set_module_type(wlansvc win32cui)
add_importlibs(wlansvc advapi32 rpcrt4 iphlpapi msvcrt kernel32 ntdll)
add_cd_file(TARGET wlansvc DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,6 @@
add_subdirectory(reactos)
add_subdirectory(setup)
add_subdirectory(usetup)
add_subdirectory(vmwinst)
add_subdirectory(welcome)

View file

@ -0,0 +1,11 @@
set_unicode()
set_rc_compiler()
add_executable(reactos reactos.c reactos.rc)
target_link_libraries(reactos uuid)
set_module_type(reactos win32gui)
add_importlibs(reactos gdi32 user32 comctl32 setupapi msvcrt kernel32 ntdll)
add_cd_file(TARGET reactos DESTINATION reactos NO_CAB FOR bootcd)

View file

@ -0,0 +1,8 @@
set_unicode()
add_executable(setup setup.c setup.rc)
set_module_type(setup win32gui)
add_importlibs(setup userenv msvcrt kernel32 ntdll)
add_cd_file(TARGET setup DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,47 @@
include_directories(
${REACTOS_SOURCE_DIR}/lib/newinflib
${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib
${REACTOS_SOURCE_DIR}/include/reactos/drivers)
add_executable(usetup
interface/usetup.c
interface/devinst.c
interface/consup.c
native/utils/keytrans.c
native/utils/console.c
native/fslist.c
native/console.c
bootsup.c
cabinet.c
chkdsk.c
drivesup.c
filesup.c
filequeue.c
format.c
fslist.c
genlist.c
inffile.c
inicache.c
mui.c
partlist.c
progress.c
registry.c
settings.c
usetup.rc)
target_link_libraries(usetup
mingw_main
zlib
inflib
ext2lib
vfatlib
mingw_common)
if(MSVC)
target_link_libraries(usetup msvcsup)
endif()
set_module_type(usetup nativecui)
add_importlibs(usetup kernel32 ntdll)
add_cd_file(TARGET usetup DESTINATION reactos/system32 NO_CAB NAME_ON_CD smss.exe FOR bootcd)

View file

@ -0,0 +1,21 @@
set_unicode()
add_executable(vmwinst vmwinst.c vmwinst.rc)
target_link_libraries(vmwinst ${PSEH_LIB})
set_module_type(vmwinst win32gui)
add_importlibs(vmwinst
advapi32
comctl32
comdlg32
newdev
user32
setupapi
shell32
msvcrt
kernel32
ntdll)
add_cd_file(TARGET vmwinst DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,8 @@
set_unicode()
add_executable(welcome welcome.c welcome.rc)
set_module_type(welcome win32gui)
add_importlibs(welcome gdi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET welcome DESTINATION reactos NO_CAB FOR bootcd)

View file

@ -0,0 +1,7 @@
add_subdirectory(cmd)
if(NOT MSVC)
add_subdirectory(explorer)
endif()
add_subdirectory(explorer-new)

View file

@ -0,0 +1,82 @@
set_unicode()
add_definitions(
-DANONYMOUSUNIONS
-D_DEBUG_MEM)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
set_rc_compiler()
list(APPEND SOURCE main.c cmd.rc)
list(APPEND SOURCE
alias.c
assoc.c
attrib.c
batch.c
beep.c
call.c
chcp.c
choice.c
cls.c
cmd.c
cmddbg.c
cmdinput.c
cmdtable.c
color.c
console.c
copy.c
date.c
del.c
delay.c
dir.c
dirstack.c
echo.c
error.c
filecomp.c
for.c
free.c
goto.c
history.c
if.c
internal.c
label.c
locale.c
memory.c
misc.c
mklink.c
move.c
msgbox.c
parser.c
path.c
pause.c
prompt.c
redir.c
ren.c
replace.c
screen.c
set.c
setlocal.c
shift.c
start.c
strtoclr.c
time.c
timer.c
title.c
type.c
ver.c
verify.c
vol.c
where.c
window.c)
add_executable(cmd ${CMAKE_CURRENT_BINARY_DIR}/cmd_precomp.h.gch ${SOURCE})
target_link_libraries(cmd wine)
add_pch(cmd ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
set_module_type(cmd win32cui)
add_importlibs(cmd advapi32 user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET cmd DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,41 @@
set_unicode()
add_definitions(-DWIN32)
set_rc_compiler()
list(APPEND SOURCE
desktop.c
dragdrop.c
explorer.c
startmnu.c
taskband.c
taskswnd.c
tbsite.c
trayntfy.c
trayprop.c
traywnd.c
explorer.rc)
add_executable(explorer_new ${CMAKE_CURRENT_BINARY_DIR}/explorer_new_precomp.h.gch ${SOURCE})
target_link_libraries(explorer_new uuid)
add_pch(explorer_new ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
set_module_type(explorer_new win32gui)
add_importlibs(explorer_new
advapi32
gdi32
user32
comctl32
ole32
oleaut32
shell32
shlwapi
version
msvcrt
kernel32
ntdll)
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)

View file

@ -0,0 +1,77 @@
add_subdirectory(notifyhook)
set_unicode()
#NOTE : explorer doesn't follow standard c++, and so doesn't compile with stlport headers
#I'm not willing to do it if explorer_new is hanging around.
#jgardou
#set_cpp()
add_definitions(
-DWIN32
-D__WINDRES__
-D_DLL -D__USE_CRTIMP)
#add_pch(explorer ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND SOURCE
shell/mainframe.cpp
shell/unixfs.cpp
shell/ntobjfs.cpp
shell/filechild.cpp
shell/shellfs.cpp
shell/fatfs.cpp
shell/pane.cpp
shell/regfs.cpp
shell/webchild.cpp
shell/entries.cpp
shell/shellbrowser.cpp
shell/winfs.cpp
dialogs/searchprogram.cpp
dialogs/settings.cpp
i386-stub-win32.c
taskbar/taskbar.cpp
taskbar/favorites.cpp
taskbar/quicklaunch.cpp
taskbar/desktopbar.cpp
taskbar/startmenu.cpp
taskbar/traynotify.cpp
precomp.cpp
explorer.rc
services/startup.c
services/shellservices.cpp
desktop/desktop.cpp
explorer.cpp
utility/xs-native.cpp
utility/shellclasses.cpp
utility/dragdropimpl.cpp
utility/utility.cpp
utility/xmlstorage.cpp
# utility/splitpath.c msvcrt has _wsplitpath already
utility/window.cpp
utility/shellbrowserimpl.cpp) # utility/shelltests.cpp
add_executable(explorer ${SOURCE}) #${CMAKE_CURRENT_BINARY_DIR}/explorer_precomp.h.gch ${SOURCE})
set_subsystem(explorer windows)
set_entrypoint(explorer WinMainCRTStartup)
target_link_libraries(explorer
-lsupc++
-lstdc++
-lgcc
-lmingwex
wine
mingw_wmain
mingw_common
uuid)
add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 notifyhook msvcrt kernel32 ntdll)
set_image_base(explorer 0x00400000)
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)

View file

@ -0,0 +1,17 @@
add_definitions(-D_NOTIFYHOOK_IMPL)
spec2def(notifyhook.dll notifyhook.spec)
list(APPEND SOURCE
notifyhook.c
notifyhook.rc
${CMAKE_CURRENT_BINARY_DIR}/notifyhook.def)
add_library(notifyhook SHARED ${SOURCE})
set_module_type(notifyhook win32dll)
add_importlibs(notifyhook user32 msvcrt kernel32)
add_importlib_target(notifyhook.spec)
add_cd_file(TARGET notifyhook DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,4 @@
@ cdecl DeinstallNotifyHook()
@ cdecl GetWindowModulePath(ptr)
@ cdecl GetWindowModulePathCopyData(ptr ptr ptr long)
@ cdecl InstallNotifyHook()

View file

@ -0,0 +1,15 @@
add_subdirectory(autochk)
add_subdirectory(bootok)
add_subdirectory(expand)
add_subdirectory(format)
add_subdirectory(lsass)
add_subdirectory(msiexec)
add_subdirectory(regsvr32)
add_subdirectory(rundll32)
add_subdirectory(runonce)
add_subdirectory(services)
add_subdirectory(smss)
add_subdirectory(subst)
add_subdirectory(userinit)
add_subdirectory(winlogon)

View file

@ -0,0 +1,8 @@
add_executable(autochk WIN32 autochk.c autochk.rc)
set_module_type(autochk nativecui)
target_link_libraries(autochk mingw_common nt)
add_importlibs(autochk kernel32 ntdll)
add_cd_file(TARGET autochk DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
set_unicode()
add_executable(bootok bootok.c bootok.rc)
set_module_type(bootok win32cui)
add_importlibs(bootok advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET bootok DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,10 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_executable(expand expand.c expand.rc)
set_module_type(expand win32cui)
add_importlibs(expand lz32 setupapi user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET expand DESTINATION reactos/system32 FOR all)

View file

@ -0,0 +1,11 @@
add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(.)
set_rc_compiler()
add_executable(format format.c format.rc)
set_module_type(format win32cui)
add_importlibs(format user32 fmifs msvcrt kernel32 ntdll)
add_cd_file(TARGET format DESTINATION reactos/system32 FOR all)

Some files were not shown because too many files have changed in this diff Show more