mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
[CMAKE]
Alexey Komarov: - More work on base modules. - Add some dlls to build. svn path=/branches/cmake-bringup/; revision=48996
This commit is contained in:
parent
fa0db12e2a
commit
08265cb095
|
@ -1,6 +1,6 @@
|
|||
|
||||
add_subdirectory(applications)
|
||||
#add_subdirectory(services)
|
||||
add_subdirectory(services)
|
||||
add_subdirectory(setup)
|
||||
add_subdirectory(shell)
|
||||
add_subdirectory(system)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
|
||||
#add_subdirectory(audiosrv)
|
||||
#add_subdirectory(eventlog)
|
||||
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)
|
||||
add_subdirectory(spoolsv)
|
||||
add_subdirectory(svchost)
|
||||
add_subdirectory(tcpsvcs)
|
||||
add_subdirectory(telnetd)
|
||||
add_subdirectory(tftpd)
|
||||
add_subdirectory(umpnpmgr)
|
||||
add_subdirectory(wlansvc)
|
||||
|
|
15
base/services/audiosrv/CMakeLists.txt
Normal file
15
base/services/audiosrv/CMakeLists.txt
Normal 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)
|
||||
|
21
base/services/eventlog/CMakeLists.txt
Normal file
21
base/services/eventlog/CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
|
||||
|
||||
set_unicode()
|
||||
|
||||
list(APPEND SOURCE
|
||||
eventlog.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_server pseh)
|
||||
|
||||
add_pch(eventlog ${CMAKE_CURRENT_SOURCE_DIR}/eventlog.h ${SOURCE})
|
||||
|
||||
set_module_type(eventlog win32cui)
|
||||
|
||||
add_importlibs(eventlog advapi32 rpcrt4 msvcrt)
|
19
base/services/rpcss/CMakeLists.txt
Normal file
19
base/services/rpcss/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(rpcss
|
||||
epmp.c
|
||||
irotp.c
|
||||
rpcss_main.c
|
||||
service_main.c
|
||||
epm.idl
|
||||
irot.idl
|
||||
rpcss.rc)
|
||||
|
||||
target_link_libraries(rpcss rpcss_epm_server rpcss_irot_server pseh)
|
||||
|
||||
add_pch(rpcss ${CMAKE_CURRENT_SOURCE_DIR}/rpcss.h ${SOURCE})
|
||||
|
||||
set_module_type(rpcss win32cui)
|
||||
|
||||
add_importlibs(rpcss advapi32 rpcrt4 msvcrt)
|
9
base/services/spoolsv/CMakeLists.txt
Normal file
9
base/services/spoolsv/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(spoolsv spoolsv.c spoolsv.rc)
|
||||
|
||||
target_link_libraries(spoolsv wine)
|
||||
|
||||
set_module_type(spoolsv win32cui)
|
||||
add_importlibs(spoolsv advapi32 msvcrt)
|
5
base/services/svchost/CMakeLists.txt
Normal file
5
base/services/svchost/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
add_executable(svchost svchost.c svchost.rc)
|
||||
|
||||
set_module_type(svchost win32cui)
|
||||
add_importlibs(svchost advapi32 msvcrt)
|
20
base/services/tcpsvcs/CMakeLists.txt
Normal file
20
base/services/tcpsvcs/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
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)
|
||||
|
11
base/services/telnetd/CMakeLists.txt
Normal file
11
base/services/telnetd/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
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)
|
||||
|
7
base/services/tftpd/CMakeLists.txt
Normal file
7
base/services/tftpd/CMakeLists.txt
Normal 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)
|
16
base/services/umpnpmgr/CMakeLists.txt
Normal file
16
base/services/umpnpmgr/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
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 pnp_server wdmguid pseh)
|
||||
|
||||
set_module_type(umpnpmgr win32cui)
|
||||
add_importlibs(umpnpmgr
|
||||
advapi32
|
||||
rpcrt4
|
||||
userenv
|
||||
msvcrt)
|
14
base/services/wlansvc/CMakeLists.txt
Normal file
14
base/services/wlansvc/CMakeLists.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
set_unicode()
|
||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
|
||||
|
||||
add_executable(wlansvc wlansvc.c rpcserver.c)
|
||||
|
||||
target_link_libraries(wlansvc wlansvc_server pseh)
|
||||
|
||||
set_module_type(wlansvc win32cui)
|
||||
add_importlibs(wlansvc
|
||||
advapi32
|
||||
rpcrt4
|
||||
iphlpapi
|
||||
msvcrt)
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
#add_subdirectory(reactos)
|
||||
#add_subdirectory(setup)
|
||||
add_subdirectory(reactos)
|
||||
add_subdirectory(setup)
|
||||
add_subdirectory(usetup)
|
||||
#add_subdirectory(vmwinst)
|
||||
#add_subdirectory(welcome)
|
||||
add_subdirectory(vmwinst)
|
||||
add_subdirectory(welcome)
|
||||
|
|
16
base/setup/reactos/CMakeLists.txt
Normal file
16
base/setup/reactos/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
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)
|
9
base/setup/setup/CMakeLists.txt
Normal file
9
base/setup/setup/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(setup
|
||||
setup.c
|
||||
setup.rc)
|
||||
|
||||
set_module_type(setup win32gui)
|
||||
add_importlibs(setup userenv msvcrt)
|
19
base/setup/vmwinst/CMakeLists.txt
Normal file
19
base/setup/vmwinst/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(vmwinst
|
||||
vmwinst.c
|
||||
vmwinst.rc)
|
||||
|
||||
target_link_libraries(vmwinst pseh)
|
||||
|
||||
set_module_type(vmwinst win32gui)
|
||||
add_importlibs(vmwinst
|
||||
advapi32
|
||||
comctl32
|
||||
comdlg32
|
||||
newdev
|
||||
user32
|
||||
setupapi
|
||||
shell32
|
||||
msvcrt)
|
9
base/setup/welcome/CMakeLists.txt
Normal file
9
base/setup/welcome/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(welcome
|
||||
welcome.c
|
||||
welcome.rc)
|
||||
|
||||
set_module_type(welcome win32gui)
|
||||
add_importlibs(welcome gdi32 user32 msvcrt)
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
add_subdirectory(cmd)
|
||||
add_subdirectory(explorer)
|
||||
#add_subdirectory(explorer_new)
|
||||
add_subdirectory(explorer-new)
|
||||
|
|
34
base/shell/explorer-new/CMakeLists.txt
Normal file
34
base/shell/explorer-new/CMakeLists.txt
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_definitions(-DWIN32)
|
||||
|
||||
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
|
||||
msvcrt)
|
|
@ -192,11 +192,11 @@ add_subdirectory(updspapi)
|
|||
add_subdirectory(url)
|
||||
#add_subdirectory(urlmon)
|
||||
add_subdirectory(user32)
|
||||
#add_subdirectory(userenv)
|
||||
add_subdirectory(userenv)
|
||||
add_subdirectory(usp10)
|
||||
add_subdirectory(uxtheme)
|
||||
#add_subdirectory(vdmdbg)
|
||||
#add_subdirectory(version)
|
||||
add_subdirectory(vdmdbg)
|
||||
add_subdirectory(version)
|
||||
add_subdirectory(wdmaud.drv)
|
||||
add_subdirectory(windowscodecs)
|
||||
#add_subdirectory(winemp3.acm)
|
||||
|
|
28
dll/win32/userenv/CMakeLists.txt
Normal file
28
dll/win32/userenv/CMakeLists.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
|
||||
spec2def(userenv ${CMAKE_CURRENT_SOURCE_DIR}/userenv.spec ${CMAKE_CURRENT_BINARY_DIR}/userenv.def)
|
||||
|
||||
list(APPEND SOURCE
|
||||
desktop.c
|
||||
directory.c
|
||||
environment.c
|
||||
gpolicy.c
|
||||
misc.c
|
||||
profile.c
|
||||
registry.c
|
||||
setup.c
|
||||
userenv.c
|
||||
userenv.rc)
|
||||
|
||||
add_library(userenv SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/userenv_precomp.h.gch
|
||||
${SOURCE})
|
||||
|
||||
set_module_type(userenv win32dll)
|
||||
|
||||
target_link_libraries(userenv
|
||||
${CMAKE_CURRENT_BINARY_DIR}/userenv.def
|
||||
uuid)
|
||||
|
||||
add_importlibs(userenv advapi32 user32 kernel32 ntdll)
|
||||
add_pch(userenv ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
add_dependencies(userenv userenv_def)
|
18
dll/win32/vdmdbg/CMakeLists.txt
Normal file
18
dll/win32/vdmdbg/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
spec2def(vdmdbg ${CMAKE_CURRENT_SOURCE_DIR}/vdmdbg.spec ${CMAKE_CURRENT_BINARY_DIR}/vdmdbg.def)
|
||||
|
||||
list(APPEND SOURCE vdmdbg.c)
|
||||
|
||||
add_library(vdmdbg SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/vdmdbg_vdmdbg.h.gch
|
||||
${SOURCE})
|
||||
|
||||
set_module_type(vdmdbg win32dll)
|
||||
|
||||
target_link_libraries(vdmdbg ${CMAKE_CURRENT_BINARY_DIR}/vdmdbg.def)
|
||||
|
||||
add_importlibs(vdmdbg kernel32 ntdll)
|
||||
add_pch(vdmdbg ${CMAKE_CURRENT_SOURCE_DIR}/vdmdbg.h ${SOURCE})
|
||||
add_dependencies(vdmdbg vdmdbg_def)
|
20
dll/win32/version/CMakeLists.txt
Normal file
20
dll/win32/version/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
add_definitions(-D__WINESRC__)
|
||||
spec2def(version ${CMAKE_CURRENT_SOURCE_DIR}/version.spec ${CMAKE_CURRENT_BINARY_DIR}/version.def)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
add_library(version SHARED
|
||||
info.c
|
||||
install.c
|
||||
resource.c
|
||||
version.rc)
|
||||
|
||||
set_entrypoint(version 0)
|
||||
|
||||
target_link_libraries(version
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.def
|
||||
wine)
|
||||
|
||||
add_importlibs(version lz32 kernel32 ntdll)
|
||||
add_dependencies(version version_def psdk buildno_header)
|
|
@ -33,4 +33,4 @@ target_link_libraries(wdmaud.drv
|
|||
mmixer)
|
||||
|
||||
add_importlibs(wdmaud.drv user32 winmm advapi32 msvcrt setupapi ksuser kernel32 ntdll)
|
||||
add_dependencies(wdmaud.drv wdmaud.drv_def psdk)
|
||||
add_dependencies(wdmaud.drv wdmaud.drv_def)
|
||||
|
|
|
@ -24,4 +24,4 @@ target_link_libraries(wuapi
|
|||
wine)
|
||||
|
||||
add_importlibs(wuapi uuid ole32 advapi32 kernel32 ntdll)
|
||||
add_dependencies(wuapi wuapi_def psdk buildno_header)
|
||||
add_dependencies(wuapi wuapi_def)
|
||||
|
|
Loading…
Reference in a new issue