mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 10:43:52 +00:00
[CMAKE]
- More work on the base modules. By Alexey Komarov. svn path=/branches/cmake-bringup/; revision=48984
This commit is contained in:
parent
a5f513fed5
commit
d686345e81
21 changed files with 229 additions and 13 deletions
|
@ -3,4 +3,4 @@ add_subdirectory(applications)
|
|||
#add_subdirectory(services)
|
||||
add_subdirectory(setup)
|
||||
add_subdirectory(shell)
|
||||
#add_subdirectory(system)
|
||||
add_subdirectory(system)
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
#add_subdirectory(autochk)
|
||||
#add_subdirectory(bootok)
|
||||
#add_subdirectory(expand)
|
||||
#add_subdirectory(format)
|
||||
#add_subdirectory(lsass)
|
||||
#add_subdirectory(msiexec)
|
||||
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(userinit)
|
||||
#add_subdirectory(winlogon)
|
||||
add_subdirectory(rundll32)
|
||||
add_subdirectory(runonce)
|
||||
add_subdirectory(services)
|
||||
add_subdirectory(smss)
|
||||
add_subdirectory(userinit)
|
||||
add_subdirectory(winlogon)
|
||||
|
|
6
base/system/autochk/CMakeLists.txt
Normal file
6
base/system/autochk/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
add_executable(autochk WIN32 autochk.c autochk.rc)
|
||||
|
||||
set_module_type(autochk nativecui)
|
||||
|
||||
target_link_libraries(autochk mingw_common nt)
|
8
base/system/bootok/CMakeLists.txt
Normal file
8
base/system/bootok/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(bootok bootok.c bootok.rc)
|
||||
|
||||
set_module_type(bootok win32cui)
|
||||
|
||||
add_importlibs(bootok advapi32 msvcrt)
|
8
base/system/expand/CMakeLists.txt
Normal file
8
base/system/expand/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
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)
|
9
base/system/format/CMakeLists.txt
Normal file
9
base/system/format/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
include_directories(.)
|
||||
set_rc_compiler()
|
||||
|
||||
add_executable(format format.c format.rc)
|
||||
|
||||
set_module_type(format win32cui)
|
||||
|
||||
add_importlibs(format ntdll user32 fmifs msvcrt)
|
10
base/system/lsass/CMakeLists.txt
Normal file
10
base/system/lsass/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||
|
||||
add_executable(lsass lsass.c lsass.rc)
|
||||
|
||||
set_module_type(lsass win32gui)
|
||||
|
||||
add_importlibs(lsass advapi32 lsasrv msvcrt)
|
13
base/system/msiexec/CMakeLists.txt
Normal file
13
base/system/msiexec/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
add_executable(msiexec
|
||||
msiexec.c
|
||||
service.c
|
||||
rsrc.rc)
|
||||
|
||||
set_module_type(msiexec win32gui)
|
||||
|
||||
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt)
|
||||
target_link_libraries(msiexec uuid wine)
|
10
base/system/regsvr32/CMakeLists.txt
Normal file
10
base/system/regsvr32/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
set_unicode()
|
||||
include_directories(.)
|
||||
set_rc_compiler()
|
||||
|
||||
add_executable(regsvr32 regsvr32.c regsvr32.rc)
|
||||
|
||||
set_module_type(regsvr32 win32gui)
|
||||
|
||||
add_importlibs(regsvr32 user32 shell32 ole32 msvcrt)
|
10
base/system/rundll32/CMakeLists.txt
Normal file
10
base/system/rundll32/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
set_unicode()
|
||||
include_directories(.)
|
||||
set_rc_compiler()
|
||||
|
||||
add_executable(rundll32 rundll32.c rundll32.rc)
|
||||
|
||||
set_module_type(rundll32 win32gui)
|
||||
|
||||
add_importlibs(rundll32 user32 msvcrt)
|
8
base/system/runonce/CMakeLists.txt
Normal file
8
base/system/runonce/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
set_unicode()
|
||||
|
||||
add_executable(runonce runonce.c runonce.rc)
|
||||
|
||||
set_module_type(runonce win32gui)
|
||||
|
||||
add_importlibs(runonce advapi32 user32 msvcrt)
|
26
base/system/services/CMakeLists.txt
Normal file
26
base/system/services/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
set_unicode()
|
||||
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||
|
||||
list(APPEND SOURCE
|
||||
config.c
|
||||
database.c
|
||||
driver.c
|
||||
groupdb.c
|
||||
rpcserver.c
|
||||
services.c
|
||||
services.rc)
|
||||
|
||||
add_executable(services ${CMAKE_CURRENT_BINARY_DIR}/services_services.h.gch ${SOURCE})
|
||||
|
||||
target_link_libraries(services
|
||||
svcctl_server
|
||||
pseh)
|
||||
|
||||
add_pch(services ${CMAKE_CURRENT_SOURCE_DIR}/services.h ${SOURCE})
|
||||
|
||||
set_module_type(services win32cui)
|
||||
|
||||
add_importlibs(services user32 advapi32 rpcrt4 msvcrt)
|
||||
|
31
base/system/smss/CMakeLists.txt
Normal file
31
base/system/smss/CMakeLists.txt
Normal file
|
@ -0,0 +1,31 @@
|
|||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
||||
|
||||
list(APPEND SOURCE
|
||||
client.c
|
||||
debug.c
|
||||
init.c
|
||||
initdosdev.c
|
||||
initenv.c
|
||||
initheap.c
|
||||
initmv.c
|
||||
initobdir.c
|
||||
initpage.c
|
||||
initreg.c
|
||||
initrun.c
|
||||
initss.c
|
||||
initwkdll.c
|
||||
print.c
|
||||
smapi.c
|
||||
smapicomp.c
|
||||
smapiexec.c
|
||||
smapiquery.c
|
||||
smss.c
|
||||
smss.rc)
|
||||
|
||||
add_executable(smss WIN32 ${CMAKE_CURRENT_BINARY_DIR}/smss_smss.h.gch ${SOURCE})
|
||||
|
||||
add_pch(smss ${CMAKE_CURRENT_SOURCE_DIR}/smss.h ${SOURCE})
|
||||
|
||||
set_module_type(smss nativecui)
|
||||
add_importlibs(smss ntdll)
|
||||
target_link_libraries(smss mingw_common nt smlib)
|
11
base/system/userinit/CMakeLists.txt
Normal file
11
base/system/userinit/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
set_unicode()
|
||||
include_directories(.)
|
||||
set_rc_compiler()
|
||||
|
||||
add_executable(userinit userinit.c userinit.rc)
|
||||
|
||||
set_module_type(userinit win32gui)
|
||||
|
||||
add_importlibs(userinit user32 gdi32 advapi32 shell32 shlwapi msvcrt)
|
||||
target_link_libraries(userinit wine)
|
18
base/system/winlogon/CMakeLists.txt
Normal file
18
base/system/winlogon/CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
environment.c
|
||||
sas.c
|
||||
screensaver.c
|
||||
setup.c
|
||||
winlogon.c
|
||||
wlx.c
|
||||
winlogon.rc)
|
||||
|
||||
add_executable(winlogon ${CMAKE_CURRENT_BINARY_DIR}/winlogon_winlogon.h.gch ${SOURCE})
|
||||
|
||||
add_pch(winlogon ${CMAKE_CURRENT_SOURCE_DIR}/winlogon.h ${SOURCE})
|
||||
|
||||
set_module_type(winlogon win32gui)
|
||||
|
||||
add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt)
|
||||
target_link_libraries(winlogon wine)
|
BIN
importlibs/libnotifyhook.a
Normal file
BIN
importlibs/libnotifyhook.a
Normal file
Binary file not shown.
BIN
importlibs/librpcrt4.a
Normal file
BIN
importlibs/librpcrt4.a
Normal file
Binary file not shown.
1
lib/3rdparty/CMakeLists.txt
vendored
1
lib/3rdparty/CMakeLists.txt
vendored
|
@ -6,6 +6,7 @@ add_subdirectory(expat)
|
|||
add_subdirectory(freetype)
|
||||
add_subdirectory(fullfat)
|
||||
add_subdirectory(icu4ros)
|
||||
#add_subdirectory(libmpg123)
|
||||
add_subdirectory(libsamplerate)
|
||||
add_subdirectory(libwine)
|
||||
add_subdirectory(libxml2)
|
||||
|
|
37
lib/3rdparty/libmpg123/CMakeLists.txt
vendored
Normal file
37
lib/3rdparty/libmpg123/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
add_definitions(-DOPT_I386)
|
||||
add_definitions(-DREAL_IS_FLOAT)
|
||||
add_definitions(-DNOXFERMEM)
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
add_definitions(-DEOVERFLOW=75)
|
||||
add_definitions(-Dlseek=_lseek)
|
||||
add_definitions(-Dread=_read)
|
||||
add_definitions(-Dstrdup=_strdup)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libmpg123)
|
||||
|
||||
add_library(libmpg123
|
||||
compat.c
|
||||
dct64.c
|
||||
dct64_i386.c
|
||||
equalizer.c
|
||||
feature.c
|
||||
format.c
|
||||
frame.c
|
||||
icy.c
|
||||
icy2utf8.c
|
||||
id3.c
|
||||
index.c
|
||||
layer1.c
|
||||
layer2.c
|
||||
layer3.c
|
||||
libmpg123.c
|
||||
ntom.c
|
||||
optimize.c
|
||||
parse.c
|
||||
readers.c
|
||||
stringbuf.c
|
||||
synth.c
|
||||
synth_8bit.c
|
||||
synth_real.c
|
||||
synth_s32.c
|
||||
tabinit.c)
|
|
@ -15,6 +15,7 @@ add_subdirectory(fslib)
|
|||
add_subdirectory(lsalib)
|
||||
add_subdirectory(nls)
|
||||
add_subdirectory(ntdllsys)
|
||||
add_subdirectory(ppcmmu)
|
||||
add_subdirectory(pseh)
|
||||
add_subdirectory(recyclebin)
|
||||
add_subdirectory(rossym)
|
||||
|
|
9
lib/ppcmmu/CMakeLists.txt
Normal file
9
lib/ppcmmu/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
list(APPEND SOURCE dummy.c)
|
||||
|
||||
if(ARCH MATCHES powerpc)
|
||||
list(APPEND SOURCE
|
||||
mmuutil.c)
|
||||
endif(ARCH MATCHES powerpc)
|
||||
|
||||
add_library(ppcmmu ${SOURCE})
|
Loading…
Add table
Add a link
Reference in a new issue