[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 8 Oct 2010 23:06:11 +0000 (23:06 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 8 Oct 2010 23:06:11 +0000 (23:06 +0000)
- More work on the base modules.

svn path=/branches/cmake-bringup/; revision=49062

32 files changed:
base/applications/sndvol32/CMakeLists.txt
base/applications/winhlp32/CMakeLists.txt
base/services/CMakeLists.txt
base/services/audiosrv/CMakeLists.txt
base/services/eventlog/CMakeLists.txt
base/services/rpcss/CMakeLists.txt
base/services/spoolsv/CMakeLists.txt
base/services/svchost/CMakeLists.txt
base/services/tcpsvcs/CMakeLists.txt
base/services/telnetd/CMakeLists.txt
base/services/tftpd/CMakeLists.txt
base/services/umpnpmgr/CMakeLists.txt
base/services/wlansvc/CMakeLists.txt
base/setup/reactos/CMakeLists.txt
base/setup/setup/CMakeLists.txt
base/setup/usetup/CMakeLists.txt
base/setup/vmwinst/CMakeLists.txt
base/setup/welcome/CMakeLists.txt
base/shell/explorer-new/CMakeLists.txt
base/system/autochk/CMakeLists.txt
base/system/bootok/CMakeLists.txt
base/system/expand/CMakeLists.txt
base/system/format/CMakeLists.txt
base/system/lsass/CMakeLists.txt
base/system/msiexec/CMakeLists.txt
base/system/regsvr32/CMakeLists.txt
base/system/rundll32/CMakeLists.txt
base/system/runonce/CMakeLists.txt
base/system/services/CMakeLists.txt
base/system/smss/CMakeLists.txt
base/system/userinit/CMakeLists.txt
base/system/winlogon/CMakeLists.txt

index 4ac9f49..ee26494 100644 (file)
@@ -13,4 +13,4 @@ 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)
+add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll)
index b98e439..d46378a 100644 (file)
@@ -1,9 +1,11 @@
+
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_definitions(-D__ROS_LONG64__)
-add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
-add_definitions(-Dfileno=_fileno)
-add_definitions(-Disatty=_isatty)
+add_definitions(
+    -D__ROS_LONG64__
+    -D_CRT_NONSTDC_NO_DEPRECATE
+    -Dfileno=_fileno
+    -Disatty=_isatty)
 
 add_executable(winhlp32
     callback.c
@@ -17,5 +19,4 @@ add_executable(winhlp32
 set_module_type(winhlp32 win32gui)
 
 target_link_libraries(winhlp32 wine)
-
-add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32)
+add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
index 0672ef8..d017b50 100644 (file)
@@ -6,6 +6,6 @@ add_subdirectory(spoolsv)
 add_subdirectory(svchost)
 add_subdirectory(tcpsvcs)
 add_subdirectory(telnetd)
-add_subdirectory(tftpd)
+#add_subdirectory(tftpd)
 add_subdirectory(umpnpmgr)
 add_subdirectory(wlansvc)
index a48aff2..22d50cd 100644 (file)
@@ -11,5 +11,5 @@ add_executable(audiosrv
     audiosrv.rc)
 
 set_module_type(audiosrv win32cui)
-add_importlibs(audiosrv advapi32 user32 setupapi msvcrt)
+add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
 
index 092589d..05e2f3b 100644 (file)
@@ -18,4 +18,4 @@ add_pch(eventlog ${CMAKE_CURRENT_SOURCE_DIR}/eventlog.h ${SOURCE})
 
 set_module_type(eventlog win32cui)
 
-add_importlibs(eventlog advapi32 rpcrt4 msvcrt)
+add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
index a7f96c0..fdf3a00 100644 (file)
@@ -16,4 +16,4 @@ add_pch(rpcss ${CMAKE_CURRENT_SOURCE_DIR}/rpcss.h ${SOURCE})
 
 set_module_type(rpcss win32cui)
 
-add_importlibs(rpcss advapi32 rpcrt4 msvcrt)
+add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
index 30faf3d..f14e3f2 100644 (file)
@@ -6,4 +6,4 @@ add_executable(spoolsv spoolsv.c spoolsv.rc)
 target_link_libraries(spoolsv wine)
 
 set_module_type(spoolsv win32cui)
-add_importlibs(spoolsv advapi32 msvcrt)
+add_importlibs(spoolsv advapi32 msvcrt kernel32 ntdll)
index 9d2875a..454f0f9 100644 (file)
@@ -2,4 +2,4 @@
 add_executable(svchost svchost.c svchost.rc)
 
 set_module_type(svchost win32cui)
-add_importlibs(svchost advapi32 msvcrt)
+add_importlibs(svchost advapi32 msvcrt kernel32 ntdll)
index e5717b2..d1b3119 100644 (file)
@@ -16,5 +16,5 @@ add_executable(tcpsvcs ${CMAKE_CURRENT_BINARY_DIR}/tcpsvcs_tcpsvcs.h.gch ${SOURC
 
 add_pch(tcpsvcs ${CMAKE_CURRENT_SOURCE_DIR}/tcpsvcs.h ${SOURCE})
 set_module_type(tcpsvcs win32cui)
-add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt)
+add_importlibs(tcpsvcs ws2_32 advapi32 msvcrt kernel32 ntdll)
 
index c29a3ad..76ef9f2 100644 (file)
@@ -7,5 +7,5 @@ add_executable(telnetd
 target_link_libraries(telnetd wine)
 
 set_module_type(telnetd win32cui)
-add_importlibs(telnetd advapi32 ws2_32 msvcrt)
+add_importlibs(telnetd advapi32 ws2_32 msvcrt kernel32 ntdll)
 
index 3ed1214..967dd15 100644 (file)
@@ -4,4 +4,4 @@ add_executable(tftpd tftpd.cpp)
 target_link_libraries(tftpd wine)
 
 set_module_type(tftpd win32cui)
-add_importlibs(tftpd advapi32 ws2_32 msvcrt)
+add_importlibs(tftpd advapi32 ws2_32 msvcrt kernel32 ntdll)
index 01341d2..4d2eaad 100644 (file)
@@ -13,4 +13,6 @@ add_importlibs(umpnpmgr
     advapi32
     rpcrt4
     userenv
-    msvcrt)
+    msvcrt
+    kernel32
+    ntdll)
index d692fb8..1ecb38a 100644 (file)
@@ -11,4 +11,6 @@ add_importlibs(wlansvc
     advapi32
     rpcrt4
     iphlpapi
-    msvcrt)
+    msvcrt
+    kernel32
+    ntdll)
index ed1bfa8..89168fb 100644 (file)
@@ -1,9 +1,7 @@
 
 set_unicode()
 
-add_executable(reactos
-    reactos.c
-    reactos.rc)
+add_executable(reactos reactos.c reactos.rc)
 
 target_link_libraries(reactos uuid)
 
@@ -13,4 +11,6 @@ add_importlibs(reactos
     user32
     comctl32
     setupapi
-    msvcrt)
+    msvcrt
+    kernel32
+    ntdll)
index edf073e..d2779e4 100644 (file)
@@ -1,9 +1,7 @@
 
 set_unicode()
 
-add_executable(setup
-    setup.c
-    setup.rc)
+add_executable(setup setup.c setup.rc)
 
 set_module_type(setup win32gui)
-add_importlibs(setup userenv msvcrt)
+add_importlibs(setup userenv msvcrt kernel32 ntdll)
index fe9d126..d7d203d 100644 (file)
@@ -3,7 +3,7 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/newinflib)
 include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
-add_executable(usetup WIN32
+add_executable(usetup
     interface/usetup.c
     interface/devinst.c
     interface/consup.c
@@ -38,5 +38,4 @@ target_link_libraries(usetup
     mingw_common)
 
 set_module_type(usetup nativecui)
-
-add_dependencies(usetup psdk buildno_header)
+add_importlibs(usetup kernel32 ntdll)
index 3c6033b..3eda461 100644 (file)
@@ -1,9 +1,7 @@
 
 set_unicode()
 
-add_executable(vmwinst
-    vmwinst.c
-    vmwinst.rc)
+add_executable(vmwinst vmwinst.c vmwinst.rc)
 
 target_link_libraries(vmwinst pseh)
 
@@ -16,4 +14,6 @@ add_importlibs(vmwinst
     user32
     setupapi
     shell32
-    msvcrt)
+    msvcrt
+    kernel32
+    ntdll)
index 40f43e9..970b28e 100644 (file)
@@ -1,9 +1,7 @@
 
 set_unicode()
 
-add_executable(welcome
-    welcome.c
-    welcome.rc)
+add_executable(welcome welcome.c welcome.rc)
 
 set_module_type(welcome win32gui)
-add_importlibs(welcome gdi32 user32 msvcrt)
+add_importlibs(welcome gdi32 user32 msvcrt kernel32 ntdll)
index 601bc5f..c9ec23a 100644 (file)
@@ -20,9 +20,9 @@ add_executable(explorer_new ${CMAKE_CURRENT_BINARY_DIR}/explorer_new_precomp.h.g
 
 target_link_libraries(explorer_new uuid)
 
-add_pch(explorer_new ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
+add_pch(explorer_new ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
 set_module_type(explorer_new win32gui)
-add_importlibs(explorer_new 
+add_importlibs(explorer_new
     advapi32
     gdi32
     user32
@@ -31,4 +31,6 @@ add_importlibs(explorer_new
     oleaut32
     shell32
     shlwapi
-    msvcrt)
+    msvcrt
+    kernel32
+    ntdll)
index 74e2f72..39a0dc0 100644 (file)
@@ -4,3 +4,4 @@ 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)
\ No newline at end of file
index ec95471..27d1a5c 100644 (file)
@@ -5,4 +5,4 @@ add_executable(bootok bootok.c bootok.rc)
 
 set_module_type(bootok win32cui)
 
-add_importlibs(bootok advapi32 msvcrt)
+add_importlibs(bootok advapi32 msvcrt kernel32 ntdll)
index 67dad66..d3b0208 100644 (file)
@@ -5,4 +5,4 @@ add_executable(expand expand.c expand.rc)
 
 set_module_type(expand win32cui)
 
-add_importlibs(expand lz32 setupapi user32 msvcrt)
+add_importlibs(expand lz32 setupapi user32 msvcrt kernel32 ntdll)
index 67d6997..2cce46c 100644 (file)
@@ -6,4 +6,4 @@ add_executable(format format.c format.rc)
 
 set_module_type(format win32cui)
 
-add_importlibs(format ntdll user32 fmifs msvcrt)
+add_importlibs(format ntdll user32 fmifs msvcrt kernel32 ntdll)
index 8ffd022..af69a95 100644 (file)
@@ -7,4 +7,4 @@ add_executable(lsass lsass.c lsass.rc)
 
 set_module_type(lsass win32gui)
 
-add_importlibs(lsass advapi32 lsasrv msvcrt)
+add_importlibs(lsass advapi32 lsasrv msvcrt kernel32 ntdll)
index cde608b..80d1b27 100644 (file)
@@ -9,5 +9,7 @@ add_executable(msiexec
 
 set_module_type(msiexec win32gui)
 
-add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt)
 target_link_libraries(msiexec uuid wine)
+
+add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
+
index 452bdd6..1a7dae4 100644 (file)
@@ -7,4 +7,4 @@ add_executable(regsvr32 regsvr32.c regsvr32.rc)
 
 set_module_type(regsvr32 win32gui)
 
-add_importlibs(regsvr32 user32 shell32 ole32 msvcrt)
+add_importlibs(regsvr32 user32 shell32 ole32 msvcrt kernel32 ntdll)
index 6d5723e..7179647 100644 (file)
@@ -7,4 +7,4 @@ add_executable(rundll32 rundll32.c rundll32.rc)
 
 set_module_type(rundll32 win32gui)
 
-add_importlibs(rundll32 user32 msvcrt)
+add_importlibs(rundll32 user32 msvcrt kernel32 ntdll)
index 27a6cc1..25209c3 100644 (file)
@@ -5,4 +5,4 @@ add_executable(runonce runonce.c runonce.rc)
 
 set_module_type(runonce win32gui)
 
-add_importlibs(runonce advapi32 user32 msvcrt)
+add_importlibs(runonce advapi32 user32 msvcrt kernel32 ntdll)
index fa91364..903ce7e 100644 (file)
@@ -22,5 +22,5 @@ add_pch(services ${CMAKE_CURRENT_SOURCE_DIR}/services.h ${SOURCE})
 
 set_module_type(services win32cui)
 
-add_importlibs(services user32 advapi32 rpcrt4 msvcrt)
+add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
 
index 61dff08..b1a5c0b 100644 (file)
@@ -24,8 +24,9 @@ list(APPEND SOURCE
 
 add_executable(smss WIN32 ${CMAKE_CURRENT_BINARY_DIR}/smss_smss.h.gch ${SOURCE})
 
+target_link_libraries(smss mingw_common nt smlib)
+
 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)
index 000d7b6..79fb7c2 100644 (file)
@@ -5,7 +5,8 @@ set_rc_compiler()
 
 add_executable(userinit userinit.c userinit.rc)
 
+target_link_libraries(userinit wine)
+
 set_module_type(userinit win32gui)
 
-add_importlibs(userinit user32 gdi32 advapi32 shell32 shlwapi msvcrt)
-target_link_libraries(userinit wine)
+add_importlibs(userinit user32 gdi32 advapi32 shell32 shlwapi msvcrt kernel32 ntdll)
index 5d6f934..e97ce9d 100644 (file)
@@ -10,9 +10,10 @@ list(APPEND SOURCE
 
 add_executable(winlogon ${CMAKE_CURRENT_BINARY_DIR}/winlogon_winlogon.h.gch ${SOURCE})
 
+target_link_libraries(winlogon wine)
+
 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)
+add_importlibs(winlogon user32 advapi32 userenv secur32 msvcrt kernel32 ntdll)