- More work on the base modules.
svn path=/branches/cmake-bringup/; revision=49062
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)
+
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
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)
add_subdirectory(svchost)
add_subdirectory(tcpsvcs)
add_subdirectory(telnetd)
-add_subdirectory(tftpd)
+#add_subdirectory(tftpd)
add_subdirectory(umpnpmgr)
add_subdirectory(wlansvc)
audiosrv.rc)
set_module_type(audiosrv win32cui)
-add_importlibs(audiosrv advapi32 user32 setupapi msvcrt)
+add_importlibs(audiosrv advapi32 user32 setupapi msvcrt kernel32)
set_module_type(eventlog win32cui)
-add_importlibs(eventlog advapi32 rpcrt4 msvcrt)
+add_importlibs(eventlog advapi32 rpcrt4 msvcrt kernel32 ntdll)
set_module_type(rpcss win32cui)
-add_importlibs(rpcss advapi32 rpcrt4 msvcrt)
+add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
target_link_libraries(spoolsv wine)
set_module_type(spoolsv win32cui)
-add_importlibs(spoolsv advapi32 msvcrt)
+add_importlibs(spoolsv advapi32 msvcrt kernel32 ntdll)
add_executable(svchost svchost.c svchost.rc)
set_module_type(svchost win32cui)
-add_importlibs(svchost advapi32 msvcrt)
+add_importlibs(svchost advapi32 msvcrt kernel32 ntdll)
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)
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)
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)
advapi32
rpcrt4
userenv
- msvcrt)
+ msvcrt
+ kernel32
+ ntdll)
advapi32
rpcrt4
iphlpapi
- msvcrt)
+ msvcrt
+ kernel32
+ ntdll)
set_unicode()
-add_executable(reactos
- reactos.c
- reactos.rc)
+add_executable(reactos reactos.c reactos.rc)
target_link_libraries(reactos uuid)
user32
comctl32
setupapi
- msvcrt)
+ msvcrt
+ kernel32
+ ntdll)
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)
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
mingw_common)
set_module_type(usetup nativecui)
-
-add_dependencies(usetup psdk buildno_header)
+add_importlibs(usetup kernel32 ntdll)
set_unicode()
-add_executable(vmwinst
- vmwinst.c
- vmwinst.rc)
+add_executable(vmwinst vmwinst.c vmwinst.rc)
target_link_libraries(vmwinst pseh)
user32
setupapi
shell32
- msvcrt)
+ msvcrt
+ kernel32
+ ntdll)
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)
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
oleaut32
shell32
shlwapi
- msvcrt)
+ msvcrt
+ kernel32
+ ntdll)
set_module_type(autochk nativecui)
target_link_libraries(autochk mingw_common nt)
+add_importlibs(autochk kernel32 ntdll)
\ No newline at end of file
set_module_type(bootok win32cui)
-add_importlibs(bootok advapi32 msvcrt)
+add_importlibs(bootok advapi32 msvcrt kernel32 ntdll)
set_module_type(expand win32cui)
-add_importlibs(expand lz32 setupapi user32 msvcrt)
+add_importlibs(expand lz32 setupapi user32 msvcrt kernel32 ntdll)
set_module_type(format win32cui)
-add_importlibs(format ntdll user32 fmifs msvcrt)
+add_importlibs(format ntdll user32 fmifs msvcrt kernel32 ntdll)
set_module_type(lsass win32gui)
-add_importlibs(lsass advapi32 lsasrv msvcrt)
+add_importlibs(lsass advapi32 lsasrv msvcrt kernel32 ntdll)
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)
+
set_module_type(regsvr32 win32gui)
-add_importlibs(regsvr32 user32 shell32 ole32 msvcrt)
+add_importlibs(regsvr32 user32 shell32 ole32 msvcrt kernel32 ntdll)
set_module_type(rundll32 win32gui)
-add_importlibs(rundll32 user32 msvcrt)
+add_importlibs(rundll32 user32 msvcrt kernel32 ntdll)
set_module_type(runonce win32gui)
-add_importlibs(runonce advapi32 user32 msvcrt)
+add_importlibs(runonce advapi32 user32 msvcrt kernel32 ntdll)
set_module_type(services win32cui)
-add_importlibs(services user32 advapi32 rpcrt4 msvcrt)
+add_importlibs(services user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)
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)
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)
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)