* Make the minimum required version 2.8.
* Remove redundant psdk dependencies.
* Tidy up CMake files.
svn path=/trunk/; revision=64795
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.8)
if(POLICY CMP0017)
# Shadow cmake provided modules
set_cpp()
-
add_definitions(-DUSER_MODE)
include_directories(${REACTOS_SOURCE_DIR}/drivers/storage/ide/uniata)
add_executable(atactl atactl.cpp atactl.rc)
set_module_type(atactl win32cui)
add_importlibs(atactl advapi32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET atactl DESTINATION reactos/system32 FOR all)
-add_executable(cmd_help
- help.c
- help.rc)
-
+add_executable(cmd_help help.c help.rc)
set_module_type(cmd_help win32cui UNICODE)
-add_importlibs(cmd_help msvcrt kernel32 user32)
-
+add_importlibs(cmd_help user32 msvcrt kernel32)
set_target_properties(cmd_help PROPERTIES OUTPUT_NAME "help")
add_cd_file(TARGET cmd_help DESTINATION reactos/system32 FOR all)
add_executable(hostname hostname.c hostname.rc)
-
set_module_type(hostname win32cui UNICODE)
add_importlibs(hostname user32 msvcrt kernel32)
add_cd_file(TARGET hostname DESTINATION reactos/system32 FOR all)
-
add_executable(lodctr lodctr_main.c)
-
set_module_type(lodctr win32cui UNICODE)
add_importlibs(lodctr loadperf msvcrt kernel32)
add_cd_file(TARGET lodctr DESTINATION reactos/system32 FOR all)
add_executable(mode mode.c mode.rc)
set_module_type(mode win32cui UNICODE)
set_target_properties(mode PROPERTIES SUFFIX ".com")
-
add_importlibs(mode user32 msvcrt kernel32)
add_cd_file(TARGET mode DESTINATION reactos/system32 FOR all)
add_executable(more more.c more.rc)
set_module_type(more win32cui)
set_target_properties(more PROPERTIES SUFFIX ".com")
-
add_importlibs(more user32 msvcrt kernel32)
add_cd_file(TARGET more DESTINATION reactos/system32 FOR all)
set_cpp(WITH_RUNTIME)
-
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib)
list(APPEND SOURCE
set_module_type(kbswitch win32gui UNICODE)
add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt kernel32)
add_cd_file(TARGET kbswitch DESTINATION reactos/system32 FOR all)
+
add_subdirectory(kbsdll)
-
spec2def(kbsdll.dll kbsdll.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/kbsdll.def)
add_library(kbsdll SHARED ${SOURCE})
-
set_module_type(kbsdll win32dll UNICODE)
add_importlibs(kbsdll user32 comctl32 msvcrt kernel32)
add_cd_file(TARGET kbsdll DESTINATION reactos/system32 FOR all)
add_executable(eventvwr eventvwr.c eventvwr.rc)
set_module_type(eventvwr win32gui UNICODE)
add_importlibs(eventvwr user32 comctl32 comdlg32 advapi32 msvcrt kernel32)
+
if(MSVC)
add_importlibs(eventvwr ntdll)
endif()
+
add_cd_file(TARGET eventvwr DESTINATION reactos/system32 FOR all)
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)
-
add_executable(dwnl dwnl.c)
-
set_module_type(dwnl win32cui UNICODE)
-
target_link_libraries(dwnl uuid)
-
add_importlibs(dwnl urlmon wininet msvcrt kernel32)
+
if(MSVC)
add_importlibs(dwnl ntdll)
endif()
add_definitions(-D__WINESRC__)
-
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
-
add_executable(netsh netsh.c)
target_link_libraries(netsh wine)
set_module_type(netsh win32cui UNICODE)
add_executable(ping ping.c ping.rc)
set_module_type(ping win32cui UNICODE)
add_importlibs(ping user32 ws2_32 msvcrt kernel32)
+
if(MSVC)
add_importlibs(ping ntdll)
endif()
+
add_cd_file(TARGET ping DESTINATION reactos/system32 FOR all)
-
add_executable(route route.c route.rc)
-
set_module_type(route win32cui UNICODE)
add_importlibs(route ws2_32 iphlpapi msvcrt kernel32)
add_cd_file(TARGET route DESTINATION reactos/system32 FOR all)
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)
+ add_importlibs(tracert ntdll)
endif()
add_cd_file(TARGET tracert DESTINATION reactos/system32 FOR all)
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)
include_directories(
BEFORE include
${REACTOS_SOURCE_DIR}/include/reactos/drivers/ndisuio)
-add_executable(wlanconf wlanconf.c wlanconf.rc)
+add_executable(wlanconf wlanconf.c wlanconf.rc)
set_module_type(wlanconf win32cui UNICODE)
add_importlibs(wlanconf msvcrt user32 iphlpapi kernel32)
add_cd_file(TARGET wlanconf DESTINATION reactos/system32 FOR all)
add_executable(setup16 main.c)
set_module_type(setup16 win32gui UNICODE)
-add_importlibs(setup16 user32 gdi32 advapi32 msvcrt kernel32 shell32 setupapi)
+add_importlibs(setup16 user32 gdi32 advapi32 shell32 setupapi msvcrt kernel32)
add_cd_file(TARGET setup16 DESTINATION reactos/system32 FOR all)
add_executable(shutdown ${SOURCE} shutdown.rc)
set_module_type(shutdown win32cui UNICODE)
-add_importlibs(shutdown advapi32 user32 msvcrt powrprof kernel32)
+add_importlibs(shutdown advapi32 user32 powrprof msvcrt kernel32)
add_pch(shutdown precomp.h SOURCE)
add_cd_file(TARGET shutdown DESTINATION reactos/system32 FOR all)
add_executable(sndrec32 ${SOURCE} rsrc.rc)
set_module_type(sndrec32 win32gui UNICODE)
-add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 msvcrt kernel32 shell32)
+add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 shell32 msvcrt kernel32)
add_pch(sndrec32 stdafx.h SOURCE)
add_cd_file(TARGET sndrec32 DESTINATION reactos/system32 FOR all)
remove_definitions(-D_WIN32_IE=0x600)
add_definitions(-D__ROS_LONG64__)
-
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
list(APPEND SOURCE
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)
${CMAKE_CURRENT_BINARY_DIR}/irot_s.c)
include_directories(${REACTOS_BINARY_DIR}/include/reactos/wine)
-
add_executable(rpcss ${SOURCE} rpcss.rc)
-
-target_link_libraries(rpcss
- ${PSEH_LIB}
- wine)
-
+target_link_libraries(rpcss ${PSEH_LIB} wine)
set_module_type(rpcss win32cui UNICODE)
-
add_importlibs(rpcss advapi32 rpcrt4 msvcrt kernel32 ntdll)
add_pch(rpcss rpcss.h SOURCE)
add_cd_file(TARGET rpcss DESTINATION reactos/system32 FOR all)
-
add_executable(spoolsv spoolsv.c spoolsv.rc)
-
target_link_libraries(spoolsv wine)
-
set_module_type(spoolsv win32cui UNICODE)
add_importlibs(spoolsv advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
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)
add_executable(thmsvc thmsvc.c thmsvc.rc)
-
target_link_libraries(thmsvc wine)
-
set_module_type(thmsvc win32cui UNICODE)
add_importlibs(thmsvc uxtheme advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET thmsvc DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl)
-
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/pnp.idl)
-
spec2def(umpnpmgr.dll umpnpmgr.spec ADD_IMPORTLIB)
add_library(umpnpmgr SHARED
${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/umpnpmgr.def)
-target_link_libraries(umpnpmgr
- wdmguid
- ${PSEH_LIB})
-
+target_link_libraries(umpnpmgr wdmguid ${PSEH_LIB})
set_module_type(umpnpmgr win32dll UNICODE)
add_importlibs(umpnpmgr advapi32 rpcrt4 userenv shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET umpnpmgr DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/idl)
-
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/wlansvc.idl)
list(APPEND SOURCE
-
add_executable(setup setup.c setup.rc)
-
set_module_type(setup win32gui UNICODE)
add_importlibs(setup userenv msvcrt kernel32 ntdll)
add_cd_file(TARGET setup DESTINATION reactos/system32 FOR all)
add_definitions(${I18N_DEFS})
+
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${REACTOS_SOURCE_DIR}/lib/inflib
add_executable(explorer_new ${SOURCE} explorer.rc)
target_link_libraries(explorer_new uuid)
set_module_type(explorer_new win32gui UNICODE)
-add_importlibs(explorer_new
- advapi32
- gdi32
- user32
- comctl32
- ole32
- oleaut32
- shell32
- shlwapi
- shdocvw
- version
- uxtheme
- msvcrt
- kernel32
- ntdll)
+add_importlibs(explorer_new advapi32 gdi32 user32 comctl32 ole32 oleaut32 shell32 shlwapi shdocvw version uxtheme msvcrt kernel32 ntdll)
add_pch(explorer_new precomp.h SOURCE)
add_cd_file(TARGET explorer_new DESTINATION reactos FOR all)
target_link_libraries(explorer comsupp wine uuid)
set_module_type(explorer win32gui UNICODE)
-
add_importlibs(explorer advapi32 gdi32 user32 ws2_32 msimg32 comctl32 ole32 oleaut32 shell32 shlwapi notifyhook msvcrt kernel32 ntdll)
add_pch(explorer precomp.h SOURCE)
add_dependencies(explorer psdk)
add_executable(autochk WIN32 autochk.c autochk.rc)
-
set_module_type(autochk nativecui)
-
target_link_libraries(autochk nt)
add_importlibs(autochk ntdll)
add_cd_file(TARGET autochk DESTINATION reactos/system32 FOR all)
-
add_executable(bootok bootok.c bootok.rc)
-
set_module_type(bootok win32cui UNICODE)
add_importlibs(bootok advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET bootok DESTINATION reactos/system32 FOR all)
add_executable(diskpart ${SOURCE} diskpart.rc)
set_module_type(diskpart win32cui UNICODE)
-add_importlibs(diskpart user32 msvcrt advapi32 kernel32)
+add_importlibs(diskpart user32 advapi32 msvcrt kernel32)
+
if(MSVC)
- add_importlibs(diskpart ntdll)
+ add_importlibs(diskpart ntdll)
endif()
+
add_pch(diskpart diskpart.h SOURCE)
add_cd_file(TARGET diskpart DESTINATION reactos/system32 FOR all)
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)
add_executable(format format.c format.rc)
set_module_type(format win32cui)
set_target_properties(format PROPERTIES SUFFIX ".com")
-
add_importlibs(format user32 fmifs msvcrt kernel32 ntdll)
add_cd_file(TARGET format DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-
add_executable(lsass lsass.c lsass.rc)
-
set_module_type(lsass win32gui UNICODE)
add_importlibs(lsass advapi32 lsasrv samsrv msvcrt kernel32 ntdll)
add_cd_file(TARGET lsass DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
-
include_directories(${REACTOS_SOURCE_DIR}/include/wine)
list(APPEND SOURCE
precomp.h)
add_executable(msiexec ${SOURCE} rsrc.rc)
-
set_module_type(msiexec win32gui)
target_link_libraries(msiexec uuid wine)
add_importlibs(msiexec user32 advapi32 ole32 msi msvcrt kernel32 ntdll)
+
add_executable(rundll32 rundll32.c rundll32.rc)
set_module_type(rundll32 win32gui UNICODE)
add_importlibs(rundll32 user32 msvcrt kernel32 ntdll)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/svcctl.idl)
-
list(APPEND SOURCE
config.c
controlset.c
${CMAKE_CURRENT_BINARY_DIR}/reactos.dff.maydiff
${CMAKE_CURRENT_BINARY_DIR}/reactos.dff
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/reactos.dff.in
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/reactos.dff.dyn
-)
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/reactos.dff.dyn)
add_custom_target(
reactos_cab_inf
FILE ${CMAKE_CURRENT_BINARY_DIR}/reactos.inf
DESTINATION reactos
NO_CAB FOR bootcd regtest)
-
if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
-CreateBootSectorTarget(dosmbr ${CMAKE_CURRENT_SOURCE_DIR}/dosmbr.S ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin 7c00)
-CreateBootSectorTarget(ext2 ${CMAKE_CURRENT_SOURCE_DIR}/ext2.S ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin 0)
-CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.S ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00)
-CreateBootSectorTarget(fat ${CMAKE_CURRENT_SOURCE_DIR}/fatx.S ${CMAKE_CURRENT_BINARY_DIR}/fat.bin 7c00)
-CreateBootSectorTarget(isoboot ${CMAKE_CURRENT_SOURCE_DIR}/isoboot.S ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin 7000)
-CreateBootSectorTarget(isobtrt ${CMAKE_CURRENT_SOURCE_DIR}/isobtrt.S ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin 7000)
+ CreateBootSectorTarget(dosmbr ${CMAKE_CURRENT_SOURCE_DIR}/dosmbr.S ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin 7c00)
+ CreateBootSectorTarget(ext2 ${CMAKE_CURRENT_SOURCE_DIR}/ext2.S ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin 0)
+ CreateBootSectorTarget(fat32 ${CMAKE_CURRENT_SOURCE_DIR}/fat32.S ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin 7c00)
+ CreateBootSectorTarget(fat ${CMAKE_CURRENT_SOURCE_DIR}/fatx.S ${CMAKE_CURRENT_BINARY_DIR}/fat.bin 7c00)
+ CreateBootSectorTarget(isoboot ${CMAKE_CURRENT_SOURCE_DIR}/isoboot.S ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin 7000)
+ CreateBootSectorTarget(isobtrt ${CMAKE_CURRENT_SOURCE_DIR}/isobtrt.S ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin 7000)
-add_cd_file(TARGET dosmbr DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin FOR all)
-add_cd_file(TARGET fat32 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin FOR all)
-add_cd_file(TARGET fat DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat.bin FOR all)
-add_cd_file(TARGET isoboot DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin FOR all)
-add_cd_file(TARGET isobtrt DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin FOR all)
-add_cd_file(TARGET ext2 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin FOR all)
+ add_cd_file(TARGET dosmbr DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/dosmbr.bin FOR all)
+ add_cd_file(TARGET fat32 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat32.bin FOR all)
+ add_cd_file(TARGET fat DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/fat.bin FOR all)
+ add_cd_file(TARGET isoboot DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isoboot.bin FOR all)
+ add_cd_file(TARGET isobtrt DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/isobtrt.bin FOR all)
+ add_cd_file(TARGET ext2 DESTINATION loader NO_CAB FILE ${CMAKE_CURRENT_BINARY_DIR}/ext2.bin FOR all)
endif()
-
target_link_libraries(freeldr_pe freeldr_common cportlib cmlib rtl libcntpr)
target_link_libraries(freeldr_pe_dbg freeldr_common cportlib cmlib rtl libcntpr)
-if (STACK_PROTECTOR)
+if(STACK_PROTECTOR)
target_link_libraries(freeldr_pe gcc_ssp)
target_link_libraries(freeldr_pe_dbg gcc_ssp)
endif()
add_cd_file(TARGET freeldr FILE ${CMAKE_CURRENT_BINARY_DIR}/freeldr.sys DESTINATION loader NO_CAB FOR bootcd regtest)
add_cd_file(TARGET freeldr FILE ${CMAKE_CURRENT_BINARY_DIR}/freeldr.sys DESTINATION loader NO_CAB FOR livecd NAME_ON_CD setupldr.sys)
-list(APPEND SETUPLDR_SOURCE
- inffile/inffile.c)
+list(APPEND SETUPLDR_SOURCE inffile/inffile.c)
if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
list(APPEND SETUPLDR_SOURCE windows/setupldr.c)
target_link_libraries(setupldr_pe freeldr_common cportlib cmlib rtl libcntpr)
target_link_libraries(setupldr_pe_dbg freeldr_common cportlib cmlib rtl libcntpr)
-if (STACK_PROTECTOR)
+if(STACK_PROTECTOR)
target_link_libraries(setupldr_pe gcc_ssp)
target_link_libraries(setupldr_pe_dbg gcc_ssp)
endif()
volume.c)
set_module_type(installfreeldr win32cui)
-
add_importlibs(installfreeldr msvcrt kernel32)
${CMAKE_CURRENT_BINARY_DIR}/dxtn.def)
set_entrypoint(dxtn 0)
-
add_importlibs(dxtn msvcrt)
-
-add_dependencies(dxtn psdk)
-
add_cd_file(TARGET dxtn DESTINATION reactos/system32 FOR all)
set_module_type(libjpeg win32dll)
add_importlibs(libjpeg msvcrt kernel32)
-add_dependencies(libjpeg psdk)
add_cd_file(TARGET libjpeg DESTINATION reactos/system32 FOR all)
set_module_type(libtiff win32dll)
target_link_libraries(libtiff zlib getopt)
add_importlibs(libtiff user32 msvcrt kernel32 ntdll)
-add_dependencies(libtiff psdk)
add_pch(libtiff precomp.h SOURCE)
add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
set_module_type(libxslt win32dll)
target_link_libraries(libxslt libxml2 iconv-static zlib)
add_importlibs(libxslt msvcrt ws2_32 kernel32)
+
if(MSVC)
add_importlibs(libxslt ntdll)
endif()
-add_dependencies(libxslt psdk)
add_pch(libxslt precomp.h SOURCE)
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
-include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(-D__WINESRC__)
-
+include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(appwiz.cpl appwiz.spec)
list(APPEND SOURCE
set_module_type(console cpl UNICODE)
set_target_properties(console PROPERTIES SUFFIX ".dll")
-
-add_importlibs(console
- msvcrt
- user32
- gdi32
- comctl32
- kernel32
- ntdll)
-
+add_importlibs(console user32 gdi32 comctl32 msvcrt kernel32 ntdll)
add_pch(console console.h SOURCE)
add_cd_file(TARGET console DESTINATION reactos/system32 FOR all)
set_module_type(desk cpl UNICODE)
target_link_libraries(desk uuid)
-
-add_importlibs(desk
- msvcrt
- user32
- advapi32
- gdi32
- comctl32
- comdlg32
- ole32
- setupapi
- shell32
- shlwapi
- uxtheme
- kernel32
- ntdll)
-
+add_importlibs(desk user32 advapi32 gdi32 comctl32 comdlg32 ole32 setupapi shell32 shlwapi uxtheme msvcrt kernel32 ntdll)
add_pch(desk desk.h SOURCE)
add_cd_file(TARGET desk DESTINATION reactos/system32 FOR all)
spec2def(hdwwiz.cpl hdwwiz.spec)
-add_library(hdwwiz SHARED hdwwiz.c hdwwiz.rc ${CMAKE_CURRENT_BINARY_DIR}/hdwwiz.def)
-set_module_type(hdwwiz cpl UNICODE)
-add_importlibs(hdwwiz
- msvcrt
- setupapi
- advapi32
- comctl32
- rpcrt4
- user32
- gdi32
- devmgr
- kernel32
- ntdll)
+add_library(hdwwiz SHARED
+ hdwwiz.c
+ hdwwiz.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/hdwwiz.def)
+set_module_type(hdwwiz cpl UNICODE)
+add_importlibs(hdwwiz setupapi advapi32 comctl32 rpcrt4 user32 gdi32 devmgr msvcrt kernel32 ntdll)
add_cd_file(TARGET hdwwiz DESTINATION reactos/system32 FOR all)
-
spec2def(hotplug.dll hotplug.spec)
list(APPEND SOURCE
hotplug.c
- enum.c
+ enum.c)
+
+add_library(hotplug SHARED
+ ${SOURCE}
hotplug.rc
${CMAKE_CURRENT_BINARY_DIR}/hotplug.def)
-add_library(hotplug SHARED ${SOURCE})
-
set_module_type(hotplug win32dll UNICODE)
-
-add_importlibs(hotplug
- msvcrt
- user32
- gdi32
- advapi32
- ntdll
- setupapi
- comctl32
- kernel32)
-
+add_importlibs(hotplug user32 gdi32 advapi32 setupapi comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET hotplug DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/input.def)
set_module_type(input win32dll UNICODE)
-
-add_importlibs(input
- msvcrt
- advapi32
- user32
- comctl32
- gdi32
- kernel32)
-
+add_importlibs(input advapi32 user32 comctl32 gdi32 msvcrt kernel32)
add_pch(input input.h SOURCE)
add_cd_file(TARGET input DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/intl.def)
set_module_type(intl cpl UNICODE)
-
-add_importlibs(intl
- msvcrt
- user32
- comctl32
- advapi32
- setupapi
- shell32
- kernel32
- ntdll)
-
+add_importlibs(intl user32 comctl32 advapi32 setupapi shell32 msvcrt kernel32 ntdll)
add_pch(intl intl.h SOURCE)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)
spec2def(joy.cpl joy.spec)
-add_library(joy SHARED joy.c joy.rc ${CMAKE_CURRENT_BINARY_DIR}/joy.def)
-set_module_type(joy cpl UNICODE)
-target_link_libraries(joy uuid)
-add_importlibs(joy
- user32
- comctl32
- ole32
- shell32
- msvcrt
- kernel32
- ntdll)
+add_library(joy SHARED
+ joy.c
+ joy.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/joy.def)
+set_module_type(joy cpl UNICODE)
+target_link_libraries(joy uuid)
+add_importlibs(joy user32 comctl32 ole32 shell32 msvcrt kernel32 ntdll)
add_cd_file(TARGET joy DESTINATION reactos/system32 FOR all)
set_module_type(main cpl UNICODE)
target_link_libraries(main uuid)
-
-add_importlibs(main
- msvcrt
- advapi32
- user32
- comctl32
- devmgr
- comdlg32
- shell32
- gdi32
- kernel32)
-
+add_importlibs(main advapi32 user32 comctl32 devmgr comdlg32 shell32 gdi32 msvcrt kernel32)
add_pch(main main.h SOURCE)
add_cd_file(TARGET main DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/mmsys.def)
set_module_type(mmsys cpl UNICODE)
-
-add_importlibs(mmsys
- msvcrt
- user32
- comctl32
- devmgr
- gdi32
- winmm
- advapi32
- shell32
- setupapi
- shlwapi
- ntdll
- kernel32
- comdlg32)
-
+add_importlibs(mmsys user32 comctl32 devmgr gdi32 winmm advapi32 shell32 setupapi shlwapi comdlg32 msvcrt kernel32 ntdll)
add_pch(mmsys mmsys.h SOURCE)
add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all)
-
spec2def(ncpa.cpl ncpa.spec)
-add_library(ncpa SHARED ncpa.c ${CMAKE_CURRENT_BINARY_DIR}/ncpa.def)
+add_library(ncpa SHARED
+ ncpa.c
+ ${CMAKE_CURRENT_BINARY_DIR}/ncpa.def)
set_module_type(ncpa cpl UNICODE)
-
-add_importlibs(ncpa
- msvcrt
- advapi32
- shell32
- kernel32)
-
+add_importlibs(ncpa advapi32 shell32 msvcrt kernel32)
add_cd_file(TARGET ncpa DESTINATION reactos/system32 FOR all)
-
spec2def(odbccp32i.cpl odbccp32.spec)
add_library(odbccp32i SHARED
${CMAKE_CURRENT_BINARY_DIR}/odbccp32i.def)
set_module_type(odbccp32i cpl UNICODE)
-
add_importlibs(odbccp32i user32 comctl32 msvcrt kernel32)
add_cd_file(TARGET odbccp32i DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/powercfg.def)
set_module_type(powercfg cpl UNICODE)
-
-add_importlibs(powercfg
- msvcrt
- user32
- powrprof
- comctl32
- shell32
- advapi32
- kernel32
- ntdll)
-
+add_importlibs(powercfg user32 powrprof comctl32 shell32 advapi32 msvcrt kernel32 ntdll)
add_pch(powercfg powercfg.h SOURCE)
add_cd_file(TARGET powercfg DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/sysdm.def)
set_module_type(sysdm cpl UNICODE)
-
-add_importlibs(sysdm
- msvcrt
- advapi32
- setupapi
- user32
- gdi32
- comctl32
- msimg32
- shell32
- shlwapi
- ole32
- powrprof
- kernel32
- ntdll)
-
+add_importlibs(sysdm advapi32 setupapi user32 gdi32 comctl32 msimg32 shell32 shlwapi ole32 powrprof msvcrt kernel32 ntdll)
add_pch(sysdm precomp.h SOURCE)
add_cd_file(TARGET sysdm DESTINATION reactos/system32 FOR all)
spec2def(telephon.cpl telephon.spec)
-add_library(telephon SHARED telephon.c telephon.rc ${CMAKE_CURRENT_BINARY_DIR}/telephon.def)
-set_module_type(telephon cpl UNICODE)
-target_link_libraries(telephon uuid)
-add_importlibs(telephon
- advapi32
- user32
- comctl32
- ole32
- shell32
- msvcrt
- kernel32)
+add_library(telephon SHARED
+ telephon.c
+ telephon.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/telephon.def)
+set_module_type(telephon cpl UNICODE)
+target_link_libraries(telephon uuid)
+add_importlibs(telephon advapi32 user32 comctl32 ole32 shell32 msvcrt kernel32)
add_cd_file(TARGET telephon DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/timedate.def)
set_module_type(timedate cpl UNICODE)
-
-add_importlibs(timedate
- advapi32
- user32
- gdi32
- comctl32
- ws2_32
- iphlpapi
- msvcrt
- kernel32)
-
+add_importlibs(timedate advapi32 user32 gdi32 comctl32 ws2_32 iphlpapi msvcrt kernel32)
add_pch(timedate timedate.h SOURCE)
add_cd_file(TARGET timedate DESTINATION reactos/system32 FOR all)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(usrmgr.cpl usrmgr.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/usrmgr.def)
set_module_type(usrmgr cpl UNICODE)
-
-add_importlibs(usrmgr
- advapi32
- user32
- gdi32
- comctl32
- netapi32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(usrmgr advapi32 user32 gdi32 comctl32 netapi32 msvcrt kernel32 ntdll)
add_pch(usrmgr usrmgr.h SOURCE)
add_cd_file(TARGET usrmgr DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/wined3dcfg.def)
set_module_type(wined3dcfg cpl UNICODE)
-
-add_importlibs(wined3dcfg
- msvcrt
- user32
- comctl32
- advapi32
- kernel32)
-
+add_importlibs(wined3dcfg user32 comctl32 advapi32 msvcrt kernel32)
add_pch(wined3dcfg wined3dcfg.h SOURCE)
add_cd_file(TARGET wined3dcfg DESTINATION reactos/system32 FOR all)
spec2def(d3d8thk.dll d3d8thk.spec)
-add_library(d3d8thk SHARED d3d8thk.rc ${CMAKE_CURRENT_BINARY_DIR}/d3d8thk.def)
+
+add_library(d3d8thk SHARED
+ d3d8thk.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/d3d8thk.def)
+
set_entrypoint(d3d8thk 0)
add_importlibs(d3d8thk gdi32)
add_dependencies(d3d8thk psdk)
spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
list(APPEND SOURCE
- cleanup.c
- main.c
- startup.c
- Clipper/clipper_main.c
- Clipper/clipper_stubs.c
- Color/color_stubs.c
- d3d/DirectD3D_main.c
- Ddraw/callbacks_dd_hel.c
- Ddraw/ddraw_displaymode.c
- Ddraw/ddraw_main.c
- Ddraw/ddraw_setcooperativelevel.c
- Ddraw/ddraw_stubs.c
- Ddraw/GetCaps.c
- Ddraw/GetDeviceIdentifier.c
- Gamma/gamma_stubs.c
- Kernel/kernel_stubs.c
- Palette/createpalette.c
- Palette/palette.c
- Surface/callbacks_surf_hel.c
- Surface/createsurface.c
- Surface/surface_main.c
- Surface/surface_stubs.c
- Videoport/videoport_stubs.c
- Vtable/DirectD3D_Vtable.c
- Vtable/DirectD3D2_Vtable.c
- Vtable/DirectD3D3_Vtable.c
- Vtable/DirectD3D7_Vtable.c
- Vtable/DirectDraw_Vtable.c
- Vtable/DirectDraw2_Vtable.c
- Vtable/DirectDraw4_Vtable.c
- Vtable/DirectDraw7_Vtable.c
- Vtable/DirectDrawSurface_Vtable.c
- Vtable/DirectDrawSurface2_Vtable.c
- Vtable/DirectDrawSurface3_Vtable.c
- Vtable/DirectDrawSurface4_Vtable.c
- Vtable/DirectDrawSurface7_Vtable.c
-)
+ cleanup.c
+ main.c
+ startup.c
+ Clipper/clipper_main.c
+ Clipper/clipper_stubs.c
+ Color/color_stubs.c
+ d3d/DirectD3D_main.c
+ Ddraw/callbacks_dd_hel.c
+ Ddraw/ddraw_displaymode.c
+ Ddraw/ddraw_main.c
+ Ddraw/ddraw_setcooperativelevel.c
+ Ddraw/ddraw_stubs.c
+ Ddraw/GetCaps.c
+ Ddraw/GetDeviceIdentifier.c
+ Gamma/gamma_stubs.c
+ Kernel/kernel_stubs.c
+ Palette/createpalette.c
+ Palette/palette.c
+ Surface/callbacks_surf_hel.c
+ Surface/createsurface.c
+ Surface/surface_main.c
+ Surface/surface_stubs.c
+ Videoport/videoport_stubs.c
+ Vtable/DirectD3D_Vtable.c
+ Vtable/DirectD3D2_Vtable.c
+ Vtable/DirectD3D3_Vtable.c
+ Vtable/DirectD3D7_Vtable.c
+ Vtable/DirectDraw_Vtable.c
+ Vtable/DirectDraw2_Vtable.c
+ Vtable/DirectDraw4_Vtable.c
+ Vtable/DirectDraw7_Vtable.c
+ Vtable/DirectDrawSurface_Vtable.c
+ Vtable/DirectDrawSurface2_Vtable.c
+ Vtable/DirectDrawSurface3_Vtable.c
+ Vtable/DirectDrawSurface4_Vtable.c
+ Vtable/DirectDrawSurface7_Vtable.c)
add_library(ddraw SHARED ${SOURCE})
-
set_module_type(ddraw win32dll)
-
-target_link_libraries(ddraw
- uuid
- dxguid
- ${PSEH_LIB}
-)
-
-add_importlibs(ddraw
- advapi32
- gdi32
- user32
- msvcrt
- kernel32
- ntdll)
-
-add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
\ No newline at end of file
+target_link_libraries(ddraw uuid dxguid ${PSEH_LIB})
+add_importlibs(ddraw advapi32 gdi32 user32 msvcrt kernel32 ntdll)
+add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)
set_cpp(WITH_STL)
-
spec2def(ksproxy.ax ksproxy.spec)
list(APPEND SOURCE
add_library(ksproxy SHARED ${SOURCE} ksproxy.rc)
set_module_type(ksproxy win32dll)
set_target_properties(ksproxy PROPERTIES SUFFIX ".ax")
-
target_link_libraries(ksproxy strmiids)
add_importlibs(ksproxy advapi32 ole32 setupapi ksuser msvcrt kernel32 ntdll)
add_dependencies(ksproxy dxsdk)
spec2def(ksuser.dll ksuser.spec ADD_IMPORTLIB)
-add_library(ksuser SHARED ksuser.c ksuser.rc ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def)
+add_library(ksuser SHARED
+ ksuser.c
+ ksuser.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def)
set_module_type(ksuser win32dll)
-
add_importlibs(ksuser advapi32 msvcrt kernel32 ntdll)
-add_dependencies(ksuser psdk bugcodes)
+add_dependencies(ksuser bugcodes)
add_cd_file(TARGET ksuser DESTINATION reactos/system32 FOR all)
-
-DUSE_WIN32_OPENGL)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3d8.dll d3d8.spec)
list(APPEND SOURCE
-DUSE_WIN32_OPENGL)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3d9.dll d3d9.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-DDIRECT3D_VERSION=0x0900)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dcompiler_43.dll d3dcompiler_43.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_24.dll d3dx9_24.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_25.dll d3dx9_25.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_26.dll d3dx9_26.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_27.dll d3dx9_27.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_28.dll d3dx9_28.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_29.dll d3dx9_29.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_30.dll d3dx9_30.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_31.dll d3dx9_31.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_32.dll d3dx9_32.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_33.dll d3dx9_33.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_34.dll d3dx9_34.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_35.dll d3dx9_35.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_36.dll d3dx9_36.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_37.dll d3dx9_37.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_38.dll d3dx9_38.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_39.dll d3dx9_39.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_40.dll d3dx9_40.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_41.dll d3dx9_41.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_42.dll d3dx9_42.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dx9_43.dll d3dx9_43.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(d3dxof.dll d3dxof.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(dplayx.dll dplayx.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(dsound.dll dsound.spec ADD_IMPORTLIB)
add_library(dsound SHARED
add_definitions(-D__WINESRC__)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(dxgi.dll dxgi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
version.rc)
add_idl_headers(quartz_idlheader fil_data.idl)
-
add_typelib(control_tlb.idl)
list(APPEND quartz_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/quartz_strmif.rgs)
set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${quartz_rc_deps}")
-
set_module_type(quartz win32dll)
target_link_libraries(quartz strmbase strmiids uuid dxguid wine ${PSEH_LIB})
add_importlibs(quartz dsound msacm32 msvfw32 ole32 oleaut32 shlwapi rpcrt4 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
endif()
add_importlibs(idndl kernel32)
-
add_dependencies(idndl psdk)
-
add_cd_file(TARGET idndl DESTINATION reactos FOR all)
spec2def(normaliz.dll normaliz.spec)
-
add_library(normaliz SHARED dummy.c ${CMAKE_CURRENT_BINARY_DIR}/normaliz.def)
-
set_entrypoint(normaliz 0)
-
add_importlibs(normaliz kernel32)
-
add_dependencies(normaliz psdk)
add_target_link_flags(ntdll "/RELEASE")
endif()
-target_link_libraries(ntdll
- rtl
- ntdllsys
- libcntpr
- uuid
- ${PSEH_LIB})
-
+target_link_libraries(ntdll rtl ntdllsys libcntpr uuid ${PSEH_LIB})
add_pch(ntdll include/ntdll.h SOURCE)
add_dependencies(ntdll ntstatus asm)
-
add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
-
-DUSE_X86_ASM
-DUSE_MMX_ASM
-DUSE_3DNOW_ASM
- -DUSE_SSE_ASM
- )
+ -DUSE_SSE_ASM)
add_subdirectory(x86)
endif()
list(APPEND SOURCE
driverfuncs.c
- meta.c
-)
+ meta.c)
-add_library(mesa_drv_common STATIC ${SOURCE})
\ No newline at end of file
+add_library(mesa_drv_common STATIC ${SOURCE})
add_library(mesa_main STATIC ${SOURCE})
add_pch(mesa_main precomp.h SOURCE)
+
if(NOT MSVC)
allow_warnings(mesa_main)
add_target_compile_flags(mesa_main "-Wno-type-limits")
add_library(mesa_swrast STATIC ${SOURCE})
add_pch(mesa_swrast precomp.h SOURCE)
-if(NOT MSVC)
- allow_warnings(mesa_swrast)
-endif()
if(NOT MSVC)
add_target_compile_flags(mesa_swrast "-Wno-unused-variable")
+ allow_warnings(mesa_swrast)
endif()
list(APPEND SOURCE
ss_context.c
- ss_triangle.c
-)
+ ss_triangle.c)
-add_library(mesa_swrast_setup STATIC ${SOURCE})
\ No newline at end of file
+add_library(mesa_swrast_setup STATIC ${SOURCE})
x86_xform.c
3dnow.c
sse.c
- rtasm/x86sse.c
-)
+ rtasm/x86sse.c)
list(APPEND ASM_SOURCE
common_x86_asm.S
sse_xform3.S
sse_xform4.S
sse_normal.S
- read_rgba_span_x86.S
-)
+ read_rgba_span_x86.S)
add_asm_files(mesa_x86_asm ${ASM_SOURCE})
add_library(mesa_x86 STATIC ${SOURCE} ${mesa_x86_asm})
set_module_type(deskadp win32dll UNICODE)
target_link_libraries(deskadp uuid)
-
-add_importlibs(deskadp
- user32
- gdi32
- comctl32
- ole32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(deskadp user32 gdi32 comctl32 ole32 msvcrt kernel32 ntdll)
add_pch(deskadp precomp.h SOURCE)
add_cd_file(TARGET deskadp DESTINATION reactos/system32 FOR all)
set_module_type(deskmon win32dll UNICODE)
target_link_libraries(deskmon uuid)
-
-add_importlibs(deskmon
- user32
- gdi32
- comctl32
- ole32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(deskmon user32 gdi32 comctl32 ole32 msvcrt kernel32 ntdll)
add_pch(deskmon precomp.h SOURCE)
add_cd_file(TARGET deskmon DESTINATION reactos/system32 FOR all)
spec2def(devcpux.dll devcpux.spec)
add_library(devcpux SHARED processor.c processor.rc ${CMAKE_CURRENT_BINARY_DIR}/devcpux.def)
set_module_type(devcpux win32dll UNICODE)
-
-add_importlibs(devcpux
- user32
- powrprof
- comctl32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(devcpux user32 powrprof comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET devcpux DESTINATION reactos/system32 FOR all)
set_module_type(fontext win32dll UNICODE)
target_link_libraries(fontext uuid)
-
-add_importlibs(fontext
- user32
- gdi32
- ole32
- shlwapi
- lz32
- advapi32
- setupapi
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(fontext user32 gdi32 ole32 shlwapi lz32 advapi32 setupapi msvcrt kernel32 ntdll)
add_pch(fontext fontext.h SOURCE)
add_cd_file(TARGET fontext DESTINATION reactos/system32 FOR all)
add_library(slayer SHARED ${SOURCE})
set_module_type(slayer win32dll UNICODE)
target_link_libraries(slayer uuid)
-
-add_importlibs(slayer
- user32
- comctl32
- advapi32
- ole32
- shell32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(slayer user32 comctl32 advapi32 ole32 shell32 msvcrt kernel32 ntdll)
add_cd_file(TARGET slayer DESTINATION reactos/system32 FOR all)
spec2def(aclui.dll aclui.spec)
-
add_definitions(-DSUPPORT_UXTHEME)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
add_definitions(-DWINE_REGISTER_DLL -DPROXY_DELEGATION)
-
spec2def(actxprxy.dll actxprxy.spec)
add_rpcproxy_files(
spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
-
add_definitions(-D_ADVAPI32_)
remove_definitions(-D_WIN32_WINNT=0x502)
target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
add_delay_importlibs(advapi32 secur32)
add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
-
add_pch(advapi32 advapi32.h SOURCE)
-
add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
-
add_definitions(-D__WINESRC__)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(advpack.dll advpack.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-D_ATL_VER=_ATL_VER_30)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(atl.dll atl.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/atl_lib.tlb)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}")
-
add_library(atl SHARED ${SOURCE} rsrc.rc)
add_typelib(atl_lib.idl)
add_dependencies(atl stdole2)
-D_ATL_VER=_ATL_VER_100)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(atl100.dll atl100.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-
spec2def(authz.dll authz.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/authz.def)
set_module_type(authz win32dll UNICODE)
-
add_importlibs(authz advapi32 msvcrt kernel32 ntdll)
add_pch(authz precomp.h SOURCE)
-
add_cd_file(TARGET authz DESTINATION reactos/system32 FOR all)
spec2def(avicap32.dll avicap32.spec ADD_IMPORTLIB)
-
add_library(avicap32 SHARED
avicap32.c
avicap32.rc
${CMAKE_CURRENT_BINARY_DIR}/avicap32.def)
set_module_type(avicap32 win32dll UNICODE)
-
target_link_libraries(avicap32 wine)
-
add_importlibs(avicap32 advapi32 user32 version msvcrt kernel32 ntdll)
-
add_cd_file(TARGET avicap32 DESTINATION reactos/system32 FOR all)
-
endif()
set_module_type(beepmidi win32dll UNICODE)
-
add_importlibs(beepmidi winmm msvcrt kernel32 ntdll)
-
-
-add_dependencies(beepmidi psdk)
add_cd_file(TARGET beepmidi DESTINATION reactos/system32 FOR all)
add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/lib/atl)
-
spec2def(browseui.dll browseui.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/browseui.def)
set_module_type(browseui win32dll UNICODE)
-
-target_link_libraries(browseui
- atlnew
- uuid
- wine)
-
-add_importlibs(browseui
- shlwapi
- shell32
- comctl32
- gdi32
- ole32
- oleaut32
- user32
- advapi32
- msvcrt
- kernel32
- ntdll)
-
+target_link_libraries(browseui atlnew uuid wine)
+add_importlibs(browseui shlwapi shell32 comctl32 gdi32 ole32 oleaut32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(browseui precomp.h SOURCE)
add_cd_file(TARGET browseui DESTINATION reactos/system32 FOR all)
add_library(cfgmgr32 SHARED ${SOURCE})
set_module_type(cfgmgr32 win32dll)
-add_importlibs(cfgmgr32 msvcrt setupapi kernel32 ntdll)
-add_dependencies(cfgmgr32 psdk)
+add_importlibs(cfgmgr32 setupapi msvcrt kernel32 ntdll)
add_cd_file(TARGET cfgmgr32 DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(comcat.dll comcat.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(compstui.dll compstui.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/compstui.def)
add_library(compstui SHARED ${SOURCE})
-
set_module_type(compstui win32dll)
-
target_link_libraries(compstui wine)
-
add_importlibs(compstui msvcrt kernel32 ntdll)
add_cd_file(TARGET compstui DESTINATION reactos/system32 FOR all)
-
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(credui.dll credui.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
add_library(crtdll SHARED ${SOURCE})
-
set_module_type(crtdll win32dll ENTRYPOINT DllMain 12)
-
target_link_libraries(crtdll crt wine)
if(MSVC)
endif()
add_importlibs(crtdll kernel32 ntdll)
-
add_cd_file(TARGET crtdll DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(cryptdlg.dll cryptdlg.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(cryptdll.dll cryptdll.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(cryptnet.dll cryptnet.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(cryptui.dll cryptui.spec ADD_IMPORTLIB)
list(APPEND SOURCE
set_module_type(devmgr win32dll UNICODE)
target_link_libraries(devmgr uuid wine)
-
-add_importlibs(devmgr
- setupapi
- advapi32
- newdev
- user32
- version
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(devmgr setupapi advapi32 newdev user32 version msvcrt kernel32 ntdll)
add_pch(devmgr precomp.h SOURCE)
add_cd_file(TARGET devmgr DESTINATION reactos/system32 FOR all)
add_definitions(-Dtzset=_tzset)
-
include_directories(include)
-
spec2def(dhcpcsvc.dll dhcpcsvc.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${REACTOS_SOURCE_DIR}/lib/3rdparty/adns/adns_win32)
add_definitions(-DADNS_JGAA_WIN32)
-
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
target_link_libraries(dnsapi adns)
add_importlibs(dnsapi user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi dnsapi/precomp.h SOURCE)
-add_dependencies(dnsapi psdk)
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)
-
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(dwmapi.dll dwmapi.spec)
list(APPEND SOURCE
add_pch(fmifs precomp.h SOURCE)
add_dependencies(fmifs psdk)
add_cd_file(TARGET fmifs DESTINATION reactos/system32 FOR all)
-
set_cpp(WITH_RUNTIME WITH_EXCEPTIONS)
-
spec2def(framedyn.dll framedyn.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_library(framedyn SHARED ${SOURCE})
set_module_type(framedyn win32dll UNICODE)
add_importlibs(framedyn oleaut32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET framedyn DESTINATION reactos/system32/wbem FOR all)
if(NOT MSVC)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(fusion.dll fusion.spec)
list(APPEND SOURCE
-D_USE_MATH_DEFINES)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(gdiplus.dll gdiplus.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(getuname.dll getuname.spec)
add_library(getuname SHARED
getuname.rc
${CMAKE_CURRENT_BINARY_DIR}/getuname.def)
-
set_module_type(getuname win32dll UNICODE)
add_importlibs(getuname user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET getuname DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/hhctrl_tlb.tlb)
set_source_files_properties(hhctrl.rc PROPERTIES OBJECT_DEPENDS "${hhctrl_rc_deps}")
-
-# hhctrl_tlb.tlb needs stdole2.tlb
-add_dependencies(hhctrl stdole2)
-
set_module_type(hhctrl win32ocx)
target_link_libraries(hhctrl uuid wine)
add_importlibs(hhctrl advapi32 comctl32 shlwapi ole32 oleaut32 user32 gdi32 msvcrt kernel32 ntdll)
-add_dependencies(hhctrl wineheaders)
+add_dependencies(hhctrl stdole2 wineheaders)
add_pch(hhctrl hhctrl.h SOURCE)
add_cd_file(TARGET hhctrl DESTINATION reactos/system32 FOR all)
-
list(APPEND SOURCE
hid.c
stubs.c
${CMAKE_CURRENT_BINARY_DIR}/hid.def)
set_module_type(hid win32dll UNICODE)
-
add_importlibs(hid msvcrt kernel32 ntdll)
add_pch(hid precomp.h SOURCE)
add_cd_file(TARGET hid DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(hlink.dll hlink.spec ADD_IMPORTLIB)
list(APPEND SOURCE
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(ieframe.dll ieframe.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/ieframe_v1.tlb)
set_source_files_properties(ieframe.rc PROPERTIES OBJECT_DEPENDS "${ieframe_rc_deps}")
-
-# ieframe_v1.tlb needs stdole2.tlb
add_dependencies(ieframe stdole2)
-
set_module_type(ieframe win32dll)
target_link_libraries(ieframe uuid wine)
add_importlibs(ieframe urlmon shell32 comctl32 shlwapi oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(imaadp32.acm imaadp32.acm.spec)
list(APPEND SOURCE
add_definitions(-D_IMAGEHLP_SOURCE_)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(imagehlp.dll imagehlp.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(inetmib1.dll inetmib1.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(initpki.dll initpki.spec)
list(APPEND SOURCE
+
include_directories(${REACTOS_BINARY_DIR}/include/reactos)
add_library(iologmsg SHARED iologmsg.rc)
set_module_type(iologmsg win32dll ENTRYPOINT 0 UNICODE)
-
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_SOURCE_DIR}/dll/win32/dhcpcsvc/include
add_importlibs(iphlpapi icmp dhcpcsvc advapi32 ws2_32 msvcrt kernel32 ntdll)
add_pch(iphlpapi iphlpapi_private.h SOURCE)
add_cd_file(TARGET iphlpapi DESTINATION reactos/system32 FOR all)
-
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(itircl.dll itircl.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(itss.dll itss.spec)
list(APPEND SOURCE
add_idl_headers(jscript_idlheader jscript_classes.idl)
add_typelib(jsglobal.idl)
-add_dependencies(jscript jscript_idlheader stdole2) # jsglobal.tlb needs stdole2.tlb
+add_dependencies(jscript jscript_idlheader stdole2)
set_module_type(jscript win32dll)
target_link_libraries(jscript uuid wine)
add_importlibs(jscript user32 ole32 oleaut32 advapi32 msvcrt kernel32 ntdll)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(jsproxy.dll jsproxy.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-add_definitions(-D_KERNEL32_)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+add_definitions(-D_KERNEL32_)
spec2def(kernel32_vista.dll kernel32_vista.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-
add_definitions(-DLANGPACK)
include_directories(include)
-
spec2def(lpk.dll lpk.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/lpk.def)
set_module_type(lpk win32dll UNICODE)
-
-
add_importlibs(lpk user32 usp10 msvcrt kernel32 ntdll)
add_pch(lpk ros_lpk.h SOURCE)
add_cd_file(TARGET lpk DESTINATION reactos/system32 FOR all)
target_link_libraries(lsasrv wine ${PSEH_LIB})
add_importlibs(lsasrv samsrv rpcrt4 msvcrt kernel32 advapi32 ntdll)
add_pch(lsasrv lsasrv.h SOURCE)
-add_dependencies(lsasrv psdk)
add_cd_file(TARGET lsasrv DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(lz32.dll lz32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/lz32.def)
add_library(lz32 SHARED ${SOURCE})
-
set_module_type(lz32 win32dll ENTRYPOINT 0 )
target_link_libraries(lz32 wine)
-
add_importlibs(lz32 kernel32 ntdll)
add_dependencies(lz32 psdk)
add_cd_file(TARGET lz32 DESTINATION reactos/system32 FOR all)
-
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mciavi32.dll mciavi32.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mcicda.dll mcicda.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mcicda.def)
add_library(mcicda SHARED ${SOURCE})
-
set_module_type(mcicda win32dll)
target_link_libraries(mcicda wine)
-add_importlibs(mcicda msvcrt winmm user32 kernel32 ntdll)
-add_dependencies(mcicda psdk)
+add_importlibs(mcicda winmm user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET mcicda DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mciqtz32.dll mciqtz32.spec)
list(APPEND SOURCE
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mciseq.dll mciseq.spec)
list(APPEND SOURCE
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mciwave.dll mciwave.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mciwave.def)
add_library(mciwave SHARED ${SOURCE})
-
set_module_type(mciwave win32dll)
-
target_link_libraries(mciwave wine)
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
-add_dependencies(mciwave psdk)
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
if(NOT MSVC)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mgmtapi.dll mgmtapi.spec)
list(APPEND SOURCE
-
-
spec2def(mmdrv.dll mmdrv.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mmdrv.def)
set_module_type(mmdrv win32dll UNICODE)
-
-add_importlibs(mmdrv msvcrt winmm user32 kernel32 ntdll)
-add_dependencies(mmdrv psdk)
+add_importlibs(mmdrv winmm user32 msvcrt kernel32 ntdll)
add_pch(mmdrv mmdrv.h SOURCE)
add_cd_file(TARGET mmdrv DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mprapi.dll mprapi.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/mprapi.def)
add_library(mprapi SHARED ${SOURCE})
-
set_module_type(mprapi win32dll)
target_link_libraries(mprapi wine)
add_importlibs(mprapi msvcrt kernel32 ntdll)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(msadp32.acm msadp32.acm.spec)
list(APPEND SOURCE
-
include_directories(
BEFORE include
${REACTOS_SOURCE_DIR}/include/reactos/drivers)
${CMAKE_CURRENT_BINARY_DIR}/msafd.def)
set_module_type(msafd win32dll UNICODE)
-
add_importlibs(msafd advapi32 msvcrt kernel32 ntdll)
add_pch(msafd msafd.h SOURCE)
add_cd_file(TARGET msafd DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mscms.dll mscms.spec)
list(APPEND SOURCE
-add_definitions(-D__WINESRC__)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+add_definitions(-D__WINESRC__)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(mscoree.dll mscoree.spec)
list(APPEND SOURCE
add_typelib(mshtml_tlb.idl)
-
add_definitions(-D__WINESRC__)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
add_library(mshtml.tlb SHARED rsrc.rc)
list(APPEND mshtml_tlb_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/mshtml_tlb.rgs)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_tlb_rc_deps}")
-
set_module_type(mshtml.tlb module)
set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
add_dependencies(mshtml.tlb stdole2)
${CMAKE_CURRENT_SOURCE_DIR}/mshtml_classes.rgs)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_rc_deps}")
-
set_module_type(mshtml win32dll)
target_link_libraries(mshtml uuid wine strmiids oldnames)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
+add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
spec2def(msi.dll msi.spec ADD_IMPORTLIB)
-
generate_idl_iids(msiserver.idl)
list(APPEND SOURCE
target_link_libraries(msi uuid ${PSEH_LIB} wine)
add_dependencies(msi msi_idlheader)
add_delay_importlibs(msi odbccp32 crypt32 wintrust)
-add_importlibs(msi
- advapi32
- cabinet
- comctl32
- gdi32
- ole32
- oleaut32
- shell32
- shlwapi
- urlmon
- user32
- version
- wininet
-#fixme : should be in delayed imports
+add_importlibs(msi advapi32 cabinet comctl32 gdi32 ole32 oleaut32 shell32 shlwapi urlmon user32 version wininet
+ #FIXME : should be in delayed imports
imagehlp
msvcrt
kernel32_vista
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(msimg32.dll msimg32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/msimg32.def)
add_library(msimg32 SHARED ${SOURCE})
-
set_module_type(msimg32 win32dll)
target_link_libraries(msimg32 wine)
add_importlibs(msimg32 gdi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msimg32 DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(msnet32.dll msnet32.spec)
-
add_library(msnet32 SHARED msnet_main.c ${CMAKE_CURRENT_BINARY_DIR}/msnet32.def)
-
set_module_type(msnet32 win32dll)
-
target_link_libraries(msnet32 wine)
-
add_importlibs(msnet32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET msnet32 DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(mspatcha.dll mspatcha.spec)
list(APPEND SOURCE
-
spec2def(msports.dll msports.spec)
list(APPEND SOURCE
add_importlibs(msports setupapi comctl32 user32 advapi32 msvcrt kernel32 ntdll)
add_pch(msports precomp.h SOURCE)
add_cd_file(TARGET msports DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(mssign32.dll mssign32.spec)
list(APPEND SOURCE
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(mssip32.dll mssip32.spec)
list(APPEND SOURCE
+include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
spec2def(msvcrt20.dll msvcrt20.spec)
add_definitions(
-DCRTDLL
-D__MINGW_IMPORT="")
-include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
-
list(APPEND SOURCE
msvcrt20.c
stubs.c
add_library(msvcrt20 SHARED ${SOURCE})
set_module_type(msvcrt20 win32dll ENTRYPOINT DllMain 12)
-
add_dependencies(msvcrt20 psdk)
-
target_link_libraries(msvcrt20 crt wine ${PSEH_LIB})
if(MSVC)
endif()
add_importlibs(msvcrt20 kernel32 ntdll)
-
add_cd_file(TARGET msvcrt20 DESTINATION reactos/system32 FOR all)
+include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
spec2def(msvcrt40.dll msvcrt40.spec)
add_definitions(
-DCRTDLL
-D__MINGW_IMPORT="")
-include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
-
list(APPEND SOURCE
msvcrt40.c
stubs.c
${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def)
add_library(msvcrt40 SHARED ${SOURCE})
-
set_module_type(msvcrt40 win32dll ENTRYPOINT DllMain 12)
-
add_dependencies(msvcrt40 psdk)
-
target_link_libraries(msvcrt40 crt wine ${PSEH_LIB})
if(MSVC)
endif()
add_importlibs(msvcrt40 kernel32 ntdll)
-
add_cd_file(TARGET msvcrt40 DESTINATION reactos/system32 FOR all)
-
add_definitions(-DLE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(mswsock.dll mswsock.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_importlibs(mswsock ws2_32 msvcrt kernel32)
add_pch(mswsock precomp.h SOURCE)
add_cd_file(TARGET mswsock DESTINATION reactos/system32 FOR all)
-
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(msxml.dll msxml.spec)
-
add_typelib(msxml_tlb.idl)
list(APPEND SOURCE
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml_tlb.tlb)
target_link_libraries(msxml wine)
add_importlibs(msxml msxml3 msvcrt kernel32)
-
-# msxml_tlb.tlb needs stdole2.tlb
add_dependencies(msxml stdole2)
-
add_cd_file(TARGET msxml DESTINATION reactos/system32 FOR all)
-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(msxml2.dll msxml2.spec)
-
add_typelib(msxml2_tlb.idl)
list(APPEND SOURCE
set_source_files_properties(msxml2.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml2_tlb.tlb)
target_link_libraries(msxml2 wine)
add_importlibs(msxml2 msxml3 msvcrt kernel32)
-
-# msxml2_tlb.tlb needs stdole2.tlb
add_dependencies(msxml2 stdole2)
-
add_cd_file(TARGET msxml2 DESTINATION reactos/system32 FOR all)
-DCOM_NO_WINDOWS_H)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(msxml4.dll msxml4.spec)
-
add_typelib(msxml4_tlb.idl)
list(APPEND SOURCE
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml4_tlb.tlb)
target_link_libraries(msxml4 wine)
add_importlibs(msxml4 msxml3 msvcrt kernel32)
-
-# msxml4_tlb.tlb needs stdole2.tlb
add_dependencies(msxml4 stdole2)
-
add_cd_file(TARGET msxml4 DESTINATION reactos/system32 FOR all)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml6_tlb.tlb)
target_link_libraries(msxml6 wine)
add_importlibs(msxml6 msxml3 msvcrt kernel32)
-
-# msxml6_tlb.tlb needs stdole2.tlb
add_dependencies(msxml6 stdole2)
-
add_cd_file(TARGET msxml6 DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(nddeapi.dll nddeapi.spec)
list(APPEND SOURCE
add_library(nddeapi SHARED ${SOURCE})
set_module_type(nddeapi win32dll)
-
target_link_libraries(nddeapi wine)
-
add_importlibs(nddeapi msvcrt kernel32 ntdll)
-add_dependencies(nddeapi psdk)
add_cd_file(TARGET nddeapi DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/netapi32.def)
set_module_type(netapi32 win32dll)
-
target_link_libraries(netapi32 wine)
-
add_importlibs(netapi32 iphlpapi ws2_32 advapi32 msvcrt kernel32 ntdll)
-
add_delay_importlibs(netapi32 samlib secur32)
add_pch(netapi32 netapi32.h SOURCE)
add_cd_file(TARGET netapi32 DESTINATION reactos/system32 FOR all)
-
+
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(-D_NETSHELL_)
-
spec2def(netshell.dll netshell.spec)
list(APPEND SOURCE
set_module_type(netshell win32dll)
target_link_libraries(netshell uuid wine)
-
-add_importlibs(netshell
- msvcrt
- shlwapi
- shell32
- version
- iphlpapi
- ole32
- user32
- advapi32
- setupapi
- ws2_32
- comctl32
- kernel32
- ntdll)
-
+add_importlibs(netshell shlwapi shell32 version iphlpapi ole32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
add_pch(netshell precomp.h SOURCE)
add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)
-
spec2def(newdev.dll newdev.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 msvcrt kernel32 ntdll)
add_pch(newdev newdev_private.h SOURCE)
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(ntdsapi.dll ntdsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_library(ntdsapi SHARED ${SOURCE})
set_module_type(ntdsapi win32dll)
-
target_link_libraries(ntdsapi wine)
-
add_importlibs(ntdsapi user32 msvcrt kernel32 ntdll)
-
-add_dependencies(ntdsapi psdk)
add_cd_file(TARGET ntdsapi DESTINATION reactos/system32 FOR all)
-
spec2def(ntlanman.dll ntlanman.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/ntlanman.def)
add_library(ntlanman SHARED ${SOURCE})
-
set_module_type(ntlanman win32dll UNICODE)
-
target_link_libraries(ntlanman wine)
-
add_importlibs(ntlanman netapi32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET ntlanman DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
-
spec2def(ntmarta.dll ntmarta.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/ntmarta.def)
add_library(ntmarta SHARED ${SOURCE})
-
set_module_type(ntmarta win32dll UNICODE)
-
-add_importlibs(ntmarta
- user32
- advapi32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(ntmarta user32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET ntmarta DESTINATION reactos/system32 FOR all)
+
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(ntprint.dll ntprint.spec)
set_module_type(ntprint win32dll)
target_link_libraries(ntprint wine)
add_importlibs(ntprint winspool msvcrt kernel32 ntdll)
-add_dependencies(ntprint psdk)
add_cd_file(TARGET ntprint DESTINATION reactos/system32 FOR all)
-add_definitions(-D__WINESRC__)
-
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
+add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(objsel.dll objsel.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/objsel.def)
set_module_type(objsel win32dll)
-
target_link_libraries(objsel uuid wine)
-
-add_importlibs(objsel
- ole32
- advapi32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(objsel ole32 advapi32 msvcrt kernel32 ntdll)
add_pch(objsel objsel_private.h SOURCE)
add_cd_file(TARGET objsel DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(odbccp32.dll odbccp32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/odbccp32.def)
add_library(odbccp32 SHARED ${SOURCE})
-
set_module_type(odbccp32 win32dll)
target_link_libraries(odbccp32 uuid wine)
-
-add_importlibs(odbccp32
- msvcrt
- advapi32
- kernel32
- ntdll)
-
-
+add_importlibs(odbccp32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET odbccp32 DESTINATION reactos/system32 FOR all)
-DWINE_REGISTER_DLL)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(ole32.dll ole32.spec ADD_IMPORTLIB)
generate_idl_iids(dcom.idl)
add_idl_headers(ole32idl dcom.idl irot.idl)
-DPROXY_CLSID=CLSID_PSFactoryBuffer)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(oleaut32.dll oleaut32.spec ADD_IMPORTLIB)
-
add_rpcproxy_files(oleaut32_oaidl.idl oleaut32_ocidl.idl)
list(APPEND SOURCE
add_library(olecli32 SHARED ${SOURCE})
set_module_type(olecli32 win32dll)
target_link_libraries(olecli32 wine)
-add_importlibs(olecli32 msvcrt ole32 gdi32 kernel32 ntdll)
-add_dependencies(olecli32 psdk)
+add_importlibs(olecli32 ole32 gdi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET olecli32 DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(olesvr32.dll olesvr32.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/olesvr32.def)
add_library(olesvr32 SHARED ${SOURCE})
-
set_module_type(olesvr32 win32dll)
-
target_link_libraries(olesvr32 wine)
-
add_importlibs(olesvr32 msvcrt kernel32 ntdll)
-add_dependencies(olesvr32 psdk)
add_cd_file(TARGET olesvr32 DESTINATION reactos/system32 FOR all)
set_module_type(olethk32 win32dll)
target_link_libraries(olethk32 wine)
add_importlibs(olethk32 msvcrt kernel32 ntdll)
-add_dependencies(olethk32 psdk)
add_cd_file(TARGET olethk32 DESTINATION reactos/system32 FOR all)
spec2def(powrprof.dll powrprof.spec ADD_IMPORTLIB)
-
add_library(powrprof SHARED
powrprof.c
powrprof.rc
${CMAKE_CURRENT_BINARY_DIR}/powrprof.def)
set_module_type(powrprof win32dll UNICODE)
-
target_link_libraries(powrprof wine)
-
add_importlibs(powrprof advapi32 user32 comctl32 msvcrt kernel32 ntdll)
-
add_cd_file(TARGET powrprof DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/psapi.def)
add_library(psapi SHARED ${SOURCE})
-
set_module_type(psapi win32dll)
target_link_libraries(psapi ${PSEH_LIB})
add_importlibs(psapi msvcrt kernel32 ntdll)
-
add_cd_file(TARGET psapi DESTINATION reactos/system32 FOR all)
set_module_type(pstorec win32dll)
target_link_libraries(pstorec uuid wine)
add_importlibs(pstorec msvcrt kernel32 ntdll)
-# pstorec_tlb.tlb needs stdole2.tlb
add_dependencies(pstorec stdole2)
add_cd_file(TARGET pstorec DESTINATION reactos/system32 FOR all)
-DWINE_REGISTER_DLL)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
generate_idl_iids(qmgrprxy.idl)
-
spec2def(qmgrprxy.dll qmgrprxy.spec)
-
add_rpcproxy_files(qmgrprxy.idl)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/qmgrprxy.def)
add_library(qmgrprxy SHARED ${SOURCE})
-
set_module_type(qmgrprxy win32dll)
target_link_libraries(qmgrprxy ${PSEH_LIB} wine)
add_importlibs(qmgrprxy rpcrt4 msvcrt kernel32 ntdll)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock)
-
spec2def(rasadhlp.dll rasadhlp.spec)
list(APPEND SOURCE
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(rasapi32.dll rasapi32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
set_module_type(rasapi32 win32dll)
target_link_libraries(rasapi32 wine)
add_importlibs(rasapi32 msvcrt kernel32 ntdll)
-add_dependencies(rasapi32 psdk)
add_cd_file(TARGET rasapi32 DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(resutils.dll resutils.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/resutils.def)
add_library(resutils SHARED ${SOURCE})
-
set_module_type(resutils win32dll)
-
target_link_libraries(resutils wine)
-
add_importlibs(resutils msvcrt kernel32 ntdll)
-
add_cd_file(TARGET resutils DESTINATION reactos/system32 FOR all)
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
spec2def(rpcrt4.dll rpcrt4.spec ADD_IMPORTLIB)
-
add_rpc_files(client epm.idl)
list(APPEND SOURCE
-DCOM_NO_WINDOWS_H
-DMSWMSG)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
if(MSVC)
add_asm_files(rpcrt4_asm msvc.S)
endif()
set_module_type(rpcrt4 win32dll)
target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
-
add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
add_importlibs(rpcrt4 advapi32 ws2_32 shlwapi msvcrt kernel32 ntdll)
add_pch(rpcrt4 precomp.h SOURCE)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(rsabase.dll rsabase.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/rsabase.def)
add_library(rsabase SHARED ${SOURCE})
-
set_module_type(rsabase win32dll ENTRYPOINT 0 )
target_link_libraries(rsabase wine)
add_importlibs(rsabase rsaenh ntdll)
${REACTOS_SOURCE_DIR}/include/reactos/idl)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
-
spec2def(samsrv.dll samsrv.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/samsrv.def)
set_module_type(samsrv win32dll UNICODE)
-
target_link_libraries(samsrv wine ${PSEH_LIB})
-add_importlibs(samsrv msvcrt rpcrt4 advapi32 kernel32 ntdll)
-add_dependencies(samsrv psdk)
+add_importlibs(samsrv rpcrt4 advapi32 msvcrt kernel32 ntdll)
add_pch(samsrv samsrv.h SOURCE)
add_cd_file(TARGET samsrv DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
spec2def(scrrun.dll scrrun.spec)
-
add_idl_headers(scrrun_idlheader scrrun.idl)
add_typelib(scrrun.idl)
add_definitions(-D__SECUR32__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-
spec2def(secur32.dll secur32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/secur32.def)
set_module_type(secur32 win32dll UNICODE)
-
target_link_libraries(secur32 lsalib wine)
-
add_importlibs(secur32 advapi32 msvcrt kernel32 ntdll)
add_pch(secur32 precomp.h SOURCE)
-
add_cd_file(TARGET secur32 DESTINATION reactos/system32 FOR all)
-
set_module_type(setupapi win32dll UNICODE)
target_link_libraries(setupapi uuid wine ${PSEH_LIB})
add_delay_importlibs(setupapi shell32 winspool wintrust)
-
-add_importlibs(setupapi
- msvcrt
- gdi32
- comctl32
- advapi32
- user32
- rpcrt4
- version
- kernel32
- ntdll)
-
+add_importlibs(setupapi gdi32 comctl32 advapi32 user32 rpcrt4 version msvcrt kernel32 ntdll)
add_pch(setupapi setupapi_private.h SOURCE)
add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/sfc.def)
add_library(sfc SHARED ${SOURCE})
-
set_module_type(sfc win32dll)
-
add_importlibs(sfc sfc_os msvcrt kernel32 ntdll)
-
add_cd_file(TARGET sfc DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/sfc_os.def)
add_library(sfc_os SHARED ${SOURCE})
-
set_module_type(sfc_os win32dll)
add_importlibs(sfc_os msvcrt kernel32 ntdll)
-
add_cd_file(TARGET sfc_os DESTINATION reactos/system32 FOR all)
target_link_libraries(shdocvw uuid wine)
add_delay_importlibs(shdocvw ole32 oleaut32 ieframe)
add_importlibs(shdocvw shlwapi advapi32 msvcrt kernel32 ntdll)
-# shdocvw_v1.tlb needs stdole2.tlb
add_dependencies(shdocvw stdole2)
add_pch(shdocvw shdocvw.h SOURCE)
add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
set_cpp(WITH_RUNTIME)
+spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
${REACTOS_SOURCE_DIR}/lib/atl
${REACTOS_SOURCE_DIR})
-spec2def(shell32.dll shell32.spec ADD_IMPORTLIB)
-
list(APPEND SOURCE
#authors.cpp
autocomplete.cpp
${CMAKE_CURRENT_BINARY_DIR}/shell32.def)
set_module_type(shell32 win32dll UNICODE HOTPATCHABLE)
-
-target_link_libraries(shell32
- atlnew
- wine
- uuid
- recyclebin)
-
+target_link_libraries(shell32 atlnew wine uuid recyclebin)
add_delay_importlibs(shell32 ole32 version fmifs)
-
-add_importlibs(shell32
- advapi32
- browseui
- gdi32
- user32
- comctl32
- comdlg32
- shdocvw
- shlwapi
- devmgr
- winspool
- winmm
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(shell32 advapi32 browseui gdi32 user32 comctl32 comdlg32 shdocvw shlwapi devmgr winspool winmm msvcrt kernel32 ntdll)
add_pch(shell32 precomp.h SOURCE)
add_cd_file(TARGET shell32 DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(shfolder.dll shfolder.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/shfolder.def)
add_library(shfolder SHARED ${SOURCE})
-
set_module_type(shfolder win32dll ENTRYPOINT 0 )
-
target_link_libraries(shfolder wine)
add_importlibs(shfolder shell32 kernel32 ntdll)
add_dependencies(shfolder psdk)
add_library(shimgvw SHARED ${SOURCE})
set_module_type(shimgvw win32dll)
target_link_libraries(shimgvw wine)
-
-add_importlibs(shimgvw
- advapi32
- comctl32
- user32
- gdi32
- gdiplus
- comdlg32
- msvcrt
- kernel32
- ntdll)
-
+add_importlibs(shimgvw advapi32 comctl32 user32 gdi32 gdiplus comdlg32 msvcrt kernel32 ntdll)
add_cd_file(TARGET shimgvw DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-
spec2def(smdll.dll smdll.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_pch(smdll precomp.h SOURCE)
add_dependencies(smdll psdk)
add_cd_file(TARGET smdll DESTINATION reactos/system32 FOR all)
-
-
add_definitions(-DDEBUG_NT4)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/sound)
-
spec2def(sndblst.dll sndblst.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/sndblst.def)
add_library(sndblst SHARED ${SOURCE})
-
set_module_type(sndblst win32dll UNICODE)
target_link_libraries(sndblst mment4 mmebuddy)
add_importlibs(sndblst user32 winmm advapi32 msvcrt kernel32 ntdll)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(softpub.dll softpub.spec)
-add_library(softpub SHARED softpub.rc
+add_library(softpub SHARED
+ softpub.rc
${CMAKE_CURRENT_BINARY_DIR}/softpub.def)
set_module_type(softpub win32dll ENTRYPOINT 0 )
-
target_link_libraries(softpub wine)
-
add_importlibs(softpub wintrust)
-
add_cd_file(TARGET softpub DESTINATION reactos/system32 FOR all)
add_library(srclient SHARED ${SOURCE})
set_module_type(srclient win32dll)
-
add_importlibs(srclient msvcrt kernel32 ntdll)
-add_dependencies(srclient psdk)
-
add_cd_file(TARGET srclient DESTINATION reactos/system32 FOR all)
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
add_typelib(std_ole_v1.idl)
-
spec2def(stdole32.tlb stdole32.tlb.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/stdole32.def)
set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/std_ole_v1.tlb)
-
add_library(stdole32.tlb SHARED ${SOURCE})
set_module_type(stdole32.tlb module)
set_target_properties(stdole32.tlb PROPERTIES SUFFIX "")
add_pch(syssetup precomp.h SOURCE)
set_module_type(syssetup win32dll UNICODE)
target_link_libraries(syssetup uuid wine ${PSEH_LIB})
-
-add_importlibs(syssetup
- msvcrt
- advapi32
- gdi32
- user32
- samlib
- userenv
- comctl32
- setupapi
- ole32
- shell32
- shlwapi
- kernel32
- ntdll)
-
+add_importlibs(syssetup advapi32 gdi32 user32 samlib userenv comctl32 setupapi ole32 shell32 shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET syssetup DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(t2embed.dll t2embed.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/t2embed.def)
add_library(t2embed SHARED ${SOURCE})
-
set_module_type(t2embed win32dll UNICODE)
-
target_link_libraries(t2embed wine)
-
add_importlibs(t2embed gdi32 user32 advapi32 version msvcrt kernel32 ntdll)
-
add_cd_file(TARGET t2embed DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(traffic.dll traffic.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/traffic.def)
add_library(traffic SHARED ${SOURCE})
-
set_module_type(traffic win32dll)
-
target_link_libraries(traffic wine)
-
add_importlibs(traffic msvcrt kernel32 ntdll)
-add_dependencies(traffic psdk)
add_cd_file(TARGET traffic DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/uext2.def)
add_library(uext2 SHARED ${SOURCE})
-
set_module_type(uext2 nativedll)
target_link_libraries(uext2 ext2lib)
add_importlibs(uext2 ntdll)
${CMAKE_CURRENT_BINARY_DIR}/ufat.def)
add_library(ufat SHARED ${SOURCE})
-
set_module_type(ufat nativedll)
target_link_libraries(ufat vfatlib)
add_importlibs(ufat ntdll)
${CMAKE_CURRENT_BINARY_DIR}/ufatx.def)
add_library(ufatx SHARED ${SOURCE})
-
target_link_libraries(ufatx vfatxlib)
set_module_type(ufatx nativedll ENTRYPOINT 0 )
-
add_importlibs(ufatx ntdll)
-
add_dependencies(ufatx psdk)
add_cd_file(TARGET ufatx DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/unicows.def)
add_library(unicows SHARED ${SOURCE})
-
set_module_type(unicows win32dll)
-
-add_importlibs(unicows
- avicap32
- msvfw32
- oledlg
- comdlg32
- shell32
- winmm
- winspool
- rasapi32
- secur32
- sensapi
- version
- user32
- mpr
- gdi32
- advapi32
- msvcrt
- kernel32
- ntdll)
+add_importlibs(unicows avicap32 msvfw32 oledlg comdlg32 shell32 winmm winspool rasapi32 secur32 sensapi version user32 mpr gdi32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET unicows DESTINATION reactos FOR all)
${CMAKE_CURRENT_BINARY_DIR}/untfs.def)
add_library(untfs SHARED ${SOURCE})
-
set_module_type(untfs nativedll)
target_link_libraries(untfs ntfslib)
add_importlibs(untfs ntdll)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(updspapi.dll updspapi.spec)
list(APPEND SOURCE
add_library(updspapi SHARED ${SOURCE})
set_module_type(updspapi win32dll)
-
target_link_libraries(updspapi wine)
-
-add_importlibs(updspapi msvcrt setupapi kernel32 ntdll)
-add_dependencies(updspapi psdk)
-
+add_importlibs(updspapi setupapi msvcrt kernel32 ntdll)
add_cd_file(TARGET updspapi DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
-
spec2def(url.dll url.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/vdmdbg.def)
add_library(vdmdbg SHARED ${SOURCE})
-
set_module_type(vdmdbg win32dll UNICODE)
add_importlibs(vdmdbg msvcrt kernel32 ntdll)
add_cd_file(TARGET vdmdbg DESTINATION reactos/system32 FOR all)
-
-
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/libs/sound
${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud
${CMAKE_CURRENT_BINARY_DIR}/wdmaud.def)
set_module_type(wdmaud.drv win32dll UNICODE)
-
set_target_properties(wdmaud.drv PROPERTIES SUFFIX "")
-
-target_link_libraries(wdmaud.drv
- mmebuddy
- libsamplerate
- mmixer)
+target_link_libraries(wdmaud.drv mmebuddy libsamplerate mmixer)
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_link_libraries(wdmaud.drv mingwex)
endif()
spec2def(windowscodecs.dll windowscodecs.spec ADD_IMPORTLIB)
-
add_rpcproxy_files(windowscodecs_wincodec.idl)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/winfax.def)
add_library(winfax SHARED ${SOURCE})
-
set_module_type(winfax win32dll)
-
add_importlibs(winfax msvcrt kernel32 ntdll)
-add_dependencies(winfax psdk)
add_cd_file(TARGET winfax DESTINATION reactos/system32 FOR all)
-
spec2def(wing32.dll wing32.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/wing32.def)
add_library(wing32 SHARED ${SOURCE})
-
set_module_type(wing32 win32dll UNICODE)
-
add_importlibs(wing32 user32 gdi32 msvcrt kernel32)
-add_dependencies(wing32 psdk)
add_cd_file(TARGET wing32 DESTINATION reactos/system32 FOR all)
target_link_libraries(winhttp uuid wine)
add_delay_importlibs(winhttp oleaut32 ole32 crypt32 secur32)
add_importlibs(winhttp user32 advapi32 ws2_32 jsproxy msvcrt kernel32 ntdll)
-add_dependencies(winhttp stdole2) # wininet_tlb.tlb needs stdole2.tlb
+add_dependencies(winhttp stdole2)
add_pch(winhttp winhttp_private.h SOURCE)
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
add_definitions(-D_WINE)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(winmm.dll winmm.spec ADD_IMPORTLIB)
list(APPEND SOURCE
target_link_libraries(winmm wine ${PSEH_LIB})
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll)
add_pch(winmm winemm.h SOURCE)
-add_subdirectory(midimap)
add_cd_file(TARGET winmm DESTINATION reactos/system32 FOR all)
if((NOT MSVC) AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
add_target_compile_flags(winmm "-Wno-unused-but-set-variable")
endif()
+
+add_subdirectory(midimap)
${CMAKE_CURRENT_BINARY_DIR}/midimap.def)
set_module_type(midimap win32dll UNICODE)
-
target_link_libraries(midimap uuid wine)
-
add_importlibs(midimap advapi32 user32 winmm msvcrt kernel32 ntdll)
-add_dependencies(midimap psdk)
add_cd_file(TARGET midimap DESTINATION reactos/system32 FOR all)
-
include_directories( ${REACTOS_SOURCE_DIR}/include/reactos/idl)
-
add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/wlansvc.idl)
-
spec2def(wlanapi.dll wlanapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/wlansvc_c.c)
add_library(wlanapi SHARED ${SOURCE})
-
set_module_type(wlanapi win32dll)
-
-target_link_libraries(wlanapi
- wine
- ${PSEH_LIB})
-
+target_link_libraries(wlanapi wine ${PSEH_LIB})
add_importlibs(wlanapi rpcrt4 msvcrt kernel32 ntdll)
-
-
-add_dependencies(wlanapi psdk)
add_cd_file(TARGET wlanapi DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/wmi.def)
add_library(wmi SHARED ${SOURCE})
-
set_module_type(wmi win32dll ENTRYPOINT 0 )
-
add_importlibs(wmi advapi32)
add_dependencies(wmi psdk)
add_cd_file(TARGET wmi DESTINATION reactos/system32 FOR all)
add_definitions(-DLE)
add_definitions(-DWINSOCK_API_LINKAGE=DECLSPEC_EXPORT)
-
include_directories(BEFORE include)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-
spec2def(ws2_32.dll ws2_32.spec ADD_IMPORTLIB)
list(APPEND SOURCE
add_importlibs(ws2_32 advapi32 dnsapi ws2help msvcrt kernel32 ntdll)
add_pch(ws2_32 include/ws2_32.h SOURCE)
add_cd_file(TARGET ws2_32 DESTINATION reactos/system32 FOR all)
-
add_definitions(-DLE)
+spec2def(ws2_32_new.dll ws2_32.spec)
include_directories(
inc
${REACTOS_SOURCE_DIR}/include/reactos/winsock)
-spec2def(ws2_32_new.dll ws2_32.spec)
-
list(APPEND SOURCE
src/addrconv.c
src/addrinfo.c
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/winsock)
-
spec2def(ws2help.dll ws2help.spec ADD_IMPORTLIB)
list(APPEND SOURCE
-
spec2def(wshirda.dll wshirda.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/wshirda.def)
add_library(wshirda SHARED ${SOURCE})
-
set_module_type(wshirda win32dll UNICODE)
add_importlibs(wshirda ws2_32 msvcrt kernel32 ntdll)
add_cd_file(TARGET wshirda DESTINATION reactos/system32 FOR all)
-
include_directories(${REACTOS_SOURCE_DIR}/lib/tdilib)
-
spec2def(wshtcpip.dll wshtcpip.spec)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def)
add_library(wshtcpip SHARED ${SOURCE})
-
set_module_type(wshtcpip win32dll UNICODE)
-
target_link_libraries(wshtcpip tdilib)
add_importlibs(wshtcpip ws2_32 msvcrt kernel32 ntdll)
-add_dependencies(wshtcpip psdk)
add_cd_file(TARGET wshtcpip DESTINATION reactos/system32 FOR all)
-
spec2def(wsock32.dll wsock32.spec)
add_library(wsock32 SHARED stubs.c wsock32.rc ${CMAKE_CURRENT_BINARY_DIR}/wsock32.def)
-
set_module_type(wsock32 win32dll UNICODE)
-
add_importlibs(wsock32 mswsock ws2_32 msvcrt kernel32 ntdll)
add_cd_file(TARGET wsock32 DESTINATION reactos/system32 FOR all)
${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
set_module_type(bootvid kerneldll ENTRYPOINT 0)
-
add_importlibs(bootvid ntoskrnl hal)
add_pch(bootvid precomp.h SOURCE)
add_dependencies(bootvid psdk)
add_cd_file(TARGET bootvid DESTINATION reactos/system32 NO_CAB FOR all)
-
condrv.rc)
# ${CMAKE_CURRENT_BINARY_DIR}/condrv.def)
-add_pch(condrv condrv.h SOURCE)
-
set_module_type(condrv kernelmodedriver)
target_link_libraries(condrv ${PSEH_LIB})
add_importlibs(condrv ntoskrnl hal)
-
+add_pch(condrv condrv.h SOURCE)
add_cd_file(TARGET condrv DESTINATION reactos/system32/drivers NO_CAB FOR all)
spec2def(kdcom.dll kdgdb.spec ADD_IMPORTLIB)
list(APPEND SOURCE
- gdb_input.c
- gdb_receive.c
- gdb_send.c
+ gdb_input.c
+ gdb_receive.c
+ gdb_send.c
kdcom.c
kdpacket.c
utils.c
# TODO: AMD64, ARM...
if(ARCH STREQUAL "i386")
- list(APPEND SOURCE i386_sup.c)
+ list(APPEND SOURCE i386_sup.c)
endif()
add_library(kdcom SHARED
set_entrypoint(kdcom 0)
set_subsystem(kdcom native)
set_image_base(kdcom 0x00010000)
-
add_importlibs(kdcom ntoskrnl hal)
target_link_libraries(kdcom cportlib)
add_pch(kdcom kdgdb.h SOURCE)
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
add_library(kdcom SHARED ${SOURCE})
-
set_module_type(kdcom kerneldll ENTRYPOINT 0)
-
add_importlibs(kdcom ntoskrnl hal)
target_link_libraries(kdcom cportlib)
add_dependencies(kdcom psdk)
-
add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)
add_library(nmidebug SHARED nmidebug.c nmidebug.rc)
-
set_module_type(nmidebug kernelmodedriver)
add_importlibs(nmidebug ntoskrnl hal)
-
add_cd_file(TARGET nmidebug DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_library(null SHARED null.c null.rc)
-
target_link_libraries(null ${PSEH_LIB})
-
set_module_type(null kernelmodedriver)
add_importlibs(null ntoskrnl hal)
-
add_cd_file(TARGET null DESTINATION reactos/system32/drivers FOR all)
add_definitions(-D_BATTERYCLASS_)
-
spec2def(battc.sys battc.spec ADD_IMPORTLIB)
add_library(battc SHARED
set_module_type(battc kernelmodedriver)
add_importlibs(battc ntoskrnl hal)
-
add_cd_file(TARGET battc DESTINATION reactos/system32/drivers FOR all)
-
set_module_type(cmbatt kernelmodedriver)
add_importlibs(cmbatt ntoskrnl hal battc wmilib)
-
add_pch(cmbatt cmbatt.h SOURCE)
-
-
add_cd_file(TARGET cmbatt DESTINATION reactos/system32/drivers FOR all)
set_module_type(compbatt kernelmodedriver)
add_importlibs(compbatt ntoskrnl hal battc)
-
add_pch(compbatt compbatt.h SOURCE)
-
add_cd_file(TARGET compbatt DESTINATION reactos/system32/drivers FOR all)
set_module_type(pcix kernelmodedriver)
add_importlibs(pcix ntoskrnl hal)
-
add_pch(pcix pci.h SOURCE)
add_dependencies(pcix pciclass)
-
add_cd_file(TARGET pcix DESTINATION reactos/system32/drivers NO_CAB FOR all)
${REACTOS_SOURCE_DIR}/lib/cryptlib)
list(APPEND SOURCE
- ksecdd.c
- dispatch.c
- crypt.c
- random.c
- stubs.c
- ksecdd.rc
- ${CMAKE_CURRENT_BINARY_DIR}/ksecdd.def)
+ ksecdd.c
+ dispatch.c
+ crypt.c
+ random.c
+ stubs.c
+ ksecdd.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/ksecdd.def)
add_library(ksecdd SHARED ${SOURCE})
target_link_libraries(ksecdd cryptlib pseh)
cdfs.h)
add_library(cdfs SHARED ${SOURCE} cdfs.rc)
-
set_module_type(cdfs kernelmodedriver)
add_importlibs(cdfs ntoskrnl hal)
-
add_pch(cdfs cdfs.h SOURCE)
-
add_cd_file(TARGET cdfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
vfat.h)
add_library(fastfat SHARED ${SOURCE} vfatfs.rc)
-
set_module_type(fastfat kernelmodedriver)
target_link_libraries(fastfat ${PSEH_LIB})
add_importlibs(fastfat ntoskrnl hal)
-
add_pch(fastfat vfat.h SOURCE)
-
add_cd_file(TARGET fastfat DESTINATION reactos/system32/drivers NO_CAB FOR all)
fastfat.rc)
add_library(fastfat_new SHARED ${SOURCE})
-
set_module_type(fastfat_new kernelmodedriver)
-
-target_link_libraries(fastfat_new
- ${PSEH_LIB}
- fullfat)
-
+target_link_libraries(fastfat_new ${PSEH_LIB} fullfat)
add_importlibs(fastfat_new ntoskrnl hal)
-
add_pch(fastfat_new fastfat.h)
msfs.h)
add_library(msfs SHARED ${SOURCE} msfs.rc)
-
set_module_type(msfs kernelmodedriver)
add_importlibs(msfs ntoskrnl hal)
-
add_pch(msfs msfs.h SOURCE)
-
add_cd_file(TARGET msfs DESTINATION reactos/system32/drivers FOR all)
ntfs.h)
add_library(ntfs SHARED ${SOURCE} ntfs.rc)
-
set_module_type(ntfs kernelmodedriver)
add_importlibs(ntfs ntoskrnl hal)
-
add_pch(ntfs ntfs.h SOURCE)
-
add_cd_file(TARGET ntfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_importlibs(mountmgr ntoskrnl hal)
add_pch(mountmgr mntmgr.h SOURCE)
add_cd_file(TARGET mountmgr DESTINATION reactos/system32/drivers NO_CAB FOR all)
-
${CMAKE_CURRENT_BINARY_DIR}/hidclass.def)
set_module_type(hidclass kernelmodedriver ENTRYPOINT 0)
-
add_importlibs(hidclass ntoskrnl hidparse hal)
add_pch(hidclass precomp.h SOURCE)
add_cd_file(TARGET hidclass DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_library(hidparse SHARED hidparse.c hidparse.rc ${CMAKE_CURRENT_BINARY_DIR}/hidparse.def)
-
set_module_type(hidparse kernelmodedriver)
add_importlibs(hidparse ntoskrnl)
-
target_link_libraries(hidparse hidparser)
-
add_cd_file(TARGET hidparse DESTINATION reactos/system32/drivers NO_CAB FOR all)
hidusb.rc)
add_library(hidusb SHARED ${SOURCE})
-
set_module_type(hidusb kernelmodedriver)
add_importlibs(hidusb hidclass ntoskrnl usbd hal)
-
add_cd_file(TARGET hidusb DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_definitions(-DDEBUG_MODE)
-
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
-
add_library(kbdhid SHARED kbdhid.c kbdhid.rc)
-
set_module_type(kbdhid kernelmodedriver)
add_importlibs(kbdhid ntoskrnl hal hidparse)
-
add_cd_file(TARGET kbdhid DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_definitions(-DDEBUG_MODE)
-
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
-
add_library(mouhid SHARED mouhid.c mouhid.rc)
-
set_module_type(mouhid kernelmodedriver)
add_importlibs(mouhid ntoskrnl hal hidparse)
-
add_cd_file(TARGET mouhid DESTINATION reactos/system32/drivers FOR all)
add_importlibs(ks ntoskrnl hal)
add_dependencies(ks psdk)
add_cd_file(TARGET ks DESTINATION reactos/system32/drivers FOR all)
-
-list(APPEND SOURCE
- swenum.c)
-
-add_library(swenum SHARED ${SOURCE})
-
+add_library(swenum SHARED swenum.c)
set_module_type(swenum kernelmodedriver)
add_importlibs(swenum ks ntoskrnl hal)
-
add_cd_file(TARGET swenum DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_library(afd SHARED ${SOURCE} afd.rc)
target_link_libraries(afd ${PSEH_LIB})
-
set_module_type(afd kernelmodedriver)
add_importlibs(afd ntoskrnl hal)
add_pch(afd include/afd.h SOURCE)
include_directories(BEFORE include)
+spec2def(ndis.sys ndis.spec ADD_IMPORTLIB)
add_definitions(
-DNDIS_WRAPPER
-DNDIS_LEGACY_PROTOCOL
-DNDIS_MINIPORT_DRIVER)
-spec2def(ndis.sys ndis.spec ADD_IMPORTLIB)
-
list(APPEND SOURCE
ndis/30stubs.c
ndis/40stubs.c
set_module_type(ndis kernelmodedriver)
add_importlibs(ndis ntoskrnl hal)
-
add_pch(ndis include/ndissys.h SOURCE)
-
add_cd_file(TARGET ndis DESTINATION reactos/system32/drivers FOR all)
-
+
add_definitions(
-DNDIS50
-D_NTDRIVER_)
tcpip.rc
${CMAKE_CURRENT_BINARY_DIR}/tcpip.def)
-target_link_libraries(tcpip
- ip
- lwip
- ${PSEH_LIB}
- chew)
-
+target_link_libraries(tcpip ip lwip ${PSEH_LIB} chew)
set_module_type(tcpip kernelmodedriver)
add_importlibs(tcpip ndis ntoskrnl hal)
-
add_pch(tcpip include/precomp.h SOURCE)
-
add_cd_file(TARGET tcpip DESTINATION reactos/system32/drivers FOR all)
add_library(parallel SHARED parallel.c parallel.rc)
-
set_module_type(parallel kernelmodedriver)
add_importlibs(parallel ntoskrnl hal)
precomp.h)
add_library(cdrom SHARED ${SOURCE} cdrom.rc)
-
set_module_type(cdrom kernelmodedriver)
-add_importlibs(cdrom
- class2
- scsiport
- ntoskrnl
- hal)
-
+add_importlibs(cdrom class2 scsiport ntoskrnl hal)
add_pch(cdrom precomp.h SOURCE)
add_cd_file(TARGET cdrom DESTINATION reactos/system32/drivers NO_CAB FOR all)
cdrom.h)
add_library(cdrom_new SHARED ${SOURCE})
-
target_link_libraries(cdrom_new libcntpr wdmguid)
-if(ARCH STREQUAL "i386")
+if((ARCH STREQUAL "i386") AND (NOT MSVC))
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
- if(NOT MSVC)
- #add_target_compile_flags(cdrom_new "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
- endif()
+ #add_target_compile_flags(cdrom_new "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-unused-variable -Wno-pointer-sign")
endif()
set_module_type(cdrom_new kernelmodedriver)
include_directories(..)
-
spec2def(class2.sys class2.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/class2.def)
add_library(class2 SHARED ${SOURCE})
-
set_module_type(class2 kernelmodedriver)
-
add_importlibs(class2 scsiport ntoskrnl hal)
-
-
add_cd_file(TARGET class2 DESTINATION reactos/system32/drivers NO_CAB FOR all)
include_directories(..)
-
add_library(disk SHARED disk.c disk.rc)
-
set_module_type(disk kernelmodedriver)
-add_importlibs(disk
- class2
- scsiport
- ntoskrnl
- hal)
-
+add_importlibs(disk class2 scsiport ntoskrnl hal)
add_cd_file(TARGET disk DESTINATION reactos/system32/drivers NO_CAB FOR all)
+
include_directories(..)
list(APPEND SOURCE
disk.h)
add_library(disk_new SHARED ${SOURCE} disk.rc)
-
target_link_libraries(disk_new libcntpr wdmguid)
-if(ARCH STREQUAL "i386")
+
+if((ARCH STREQUAL "i386") AND (NOT MSVC))
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
- if(NOT MSVC)
- #add_target_compile_flags(disk_new "-Wno-error -Wno-format -Wno-pointer-sign")
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign")
- endif()
+ #add_target_compile_flags(disk_new "-Wno-error -Wno-format -Wno-pointer-sign")
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign")
endif()
set_module_type(disk_new kernelmodedriver)
include_directories(..)
-
add_library(ramdisk SHARED ramdisk.c ramdisk.rc)
-
set_module_type(ramdisk kernelmodedriver)
-add_importlibs(ramdisk
- ntoskrnl
- hal)
-
+add_importlibs(ramdisk ntoskrnl hal)
add_cd_file(TARGET ramdisk DESTINATION reactos/system32/drivers NO_CAB FOR all)
include_directories(../inc)
+spec2def(classpnp.sys classpnp.spec ADD_IMPORTLIB)
add_definitions(
-DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0
-DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512
-DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512)
-spec2def(classpnp.sys classpnp.spec ADD_IMPORTLIB)
-
list(APPEND SOURCE
autorun.c
class.c
class.rc
${CMAKE_CURRENT_BINARY_DIR}/classpnp.def)
-if(ARCH STREQUAL "i386")
+if((ARCH STREQUAL "i386") AND (NOT MSVC))
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
- if(NOT MSVC)
- set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=switch")
- endif()
+ set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=switch")
endif()
add_pch(classpnp classp.h SOURCE)
target_link_libraries(classpnp ${PSEH_LIB} libcntpr)
set_module_type(classpnp kernelmodedriver)
add_importlibs(classpnp hal ntoskrnl)
-
add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_library(atapi SHARED atapi.c atapi.rc)
-
target_link_libraries(atapi libcntpr)
-
set_module_type(atapi kernelmodedriver)
add_importlibs(atapi scsiport)
-
add_cd_file(TARGET atapi DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_library(pciide SHARED pciide.c pciide.rc)
-
set_module_type(pciide kernelmodedriver)
add_importlibs(pciide pciidex ntoskrnl)
-
add_cd_file(TARGET pciide DESTINATION reactos/system32/drivers NO_CAB FOR all)
set_module_type(pciidex kernelmodedriver)
add_importlibs(pciidex ntoskrnl)
add_cd_file(TARGET pciidex DESTINATION reactos/system32/drivers NO_CAB FOR all)
-
add_library(uniata SHARED ${SOURCE} idedma.rc)
-
if(NOT MSVC)
add_target_compile_flags(uniata "-Wno-narrowing")
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_pch(scsiport precomp.h SOURCE)
set_module_type(scsiport kernelmodedriver)
add_importlibs(scsiport ntoskrnl hal)
-
add_cd_file(TARGET scsiport DESTINATION reactos/system32/drivers NO_CAB FOR all)
+
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-
add_definitions(-DDEBUG_MODE)
-
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
list(APPEND SOURCE
usbccgp.rc)
target_link_libraries(usbccgp ${PSEH_LIB})
-
set_module_type(usbccgp kernelmodedriver)
add_importlibs(usbccgp ntoskrnl hal usbd)
add_pch(usbccgp usbccgp.h SOURCE)
set_module_type(usbd kernelmodedriver)
add_importlibs(usbd ntoskrnl hal)
-
-
add_cd_file(TARGET usbd DESTINATION reactos/system32/drivers NO_CAB FOR all)
guid.cpp
usbehci.rc)
-target_link_libraries(usbehci
- uuid
- libusb
- libcntpr
- ${PSEH_LIB})
-
+target_link_libraries(usbehci uuid libusb libcntpr ${PSEH_LIB})
set_module_type(usbehci kernelmodedriver)
add_importlibs(usbehci ntoskrnl hal usbd)
add_pch(usbehci usbehci.h SOURCE)
add_definitions(-DDEBUG_MODE)
-
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
list(APPEND SOURCE
usbhub.rc)
target_link_libraries(usbhub ${PSEH_LIB})
-
set_module_type(usbhub kernelmodedriver)
add_importlibs(usbhub ntoskrnl hal usbd)
add_pch(usbhub usbhub.h SOURCE)
guid.cpp
usbohci.rc)
-target_link_libraries(usbohci
- uuid
- libusb
- libcntpr
- ${PSEH_LIB})
-
+target_link_libraries(usbohci uuid libusb libcntpr ${PSEH_LIB})
set_module_type(usbohci kernelmodedriver)
add_importlibs(usbohci ntoskrnl hal usbd)
add_pch(usbohci usbohci.h SOURCE)
add_definitions(-DDEBUG_MODE)
-
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
list(APPEND SOURCE
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-include_directories(
- ${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
+include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
list(APPEND SOURCE
usbuhci.cpp
guid.cpp
usbuhci.rc)
-target_link_libraries(usbuhci
- uuid
- libusb
- libcntpr
- ${PSEH_LIB})
-
+target_link_libraries(usbuhci uuid libusb libcntpr ${PSEH_LIB})
set_module_type(usbuhci kernelmodedriver)
add_importlibs(usbuhci ntoskrnl hal usbd)
add_pch(usbuhci usbuhci.h SOURCE)
${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
add_executable(audio_test audio_test.c)
-
set_module_type(audio_test win32cui)
-
target_link_libraries(audio_test libsamplerate)
-
add_importlibs(audio_test setupapi ksuser msvcrt kernel32)
add_dependencies(audio_test bugcodes)
portcls.rc
${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
-target_link_libraries(portcls
- libcntpr
- ${PSEH_LIB})
-
+target_link_libraries(portcls libcntpr ${PSEH_LIB})
set_module_type(portcls kernelmodedriver ENTRYPOINT 0 )
add_pch(portcls private.hpp SOURCE)
add_importlibs(portcls ntoskrnl ks drmk hal)
cmipci.rc)
target_link_libraries(cmipci stdunk libcntpr uuid)
-
set_module_type(cmipci wdmdriver UNICODE)
-
add_importlibs(cmipci portcls hal ntoskrnl)
if(NOT MSVC)
add_pch(cmipci precomp.h SOURCE)
add_cd_file(TARGET cmipci DESTINATION reactos/system32/drivers FOR all)
+
if(ARCH STREQUAL "i386")
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/CM8738-x32.inf" DESTINATION reactos/inf FOR all)
else()
set_cpp()
-
include_directories(..)
-add_executable(cmicontrol
- main.cpp
- window.rc)
+add_executable(cmicontrol main.cpp window.rc)
if(NOT MSVC)
set_source_files_properties(main.cpp PROPERTIES COMPILE_FLAGS "-Wno-write-strings")
endif()
-add_importlibs(cmicontrol
- user32
- gdi32
- ole32
- advapi32
- comctl32
- shell32
- dsound
- setupapi
- winmm
- msvcrt
- kernel32)
-
+add_importlibs(cmicontrol user32 gdi32 ole32 advapi32 comctl32 shell32 dsound setupapi winmm msvcrt kernel32)
set_module_type(cmicontrol win32gui)
-
add_cd_file(TARGET cmicontrol DESTINATION reactos/system32/drivers FOR all)
add_definitions(-DBUILDING_DRMK)
-
spec2def(drmk.sys drmk.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/drmk.def)
add_library(drmk SHARED ${SOURCE})
-
set_module_type(drmk kernelmodedriver ENTRYPOINT 0)
-
add_importlibs(drmk ntoskrnl)
-
add_cd_file(TARGET drmk DESTINATION reactos/system32/drivers FOR all)
add_library(kmixer SHARED ${SOURCE})
set_module_type(kmixer kernelmodedriver)
-
-target_link_libraries(kmixer
- libcntpr
- libsamplerate)
-
+target_link_libraries(kmixer libcntpr libsamplerate)
add_pch(kmixer kmixer.h SOURCE)
add_importlibs(kmixer ntoskrnl ks hal)
add_cd_file(TARGET kmixer DESTINATION reactos/system32/drivers FOR all)
add_library(wdmaud SHARED ${SOURCE} wdmaud.rc)
set_module_type(wdmaud kernelmodedriver)
-
-target_link_libraries(wdmaud
- mmixer
- libcntpr)
-
+target_link_libraries(wdmaud mmixer libcntpr)
add_pch(wdmaud wdmaud.h SOURCE)
add_importlibs(wdmaud ntoskrnl ks hal)
add_cd_file(TARGET wdmaud DESTINATION reactos/system32/drivers FOR all)
${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
add_library(wmilib SHARED ${SOURCE})
-
set_module_type(wmilib kernelmodedriver ENTRYPOINT 0)
-
add_importlibs(wmilib ntoskrnl)
-
add_cd_file(TARGET wmilib DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_definitions(-DBZ_NO_STDIO -DBZ_DECOMPRESS_ONLY)
-
spec2def(unbzip2.sys unbzip2.spec)
list(APPEND SOURCE
add_definitions(-DNO_VIZ)
-
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
list(APPEND SOURCE
add_library(atlnew atlbase.cpp atlcore.cpp)
add_dependencies(atlnew psdk)
-
mvAesAlg.c
rc4.c
sha1.c
- util.c
-)
+ util.c)
include_directories(inc)
-
add_definitions(-DUNICODE -D_UNICODE)
list(APPEND SOURCE
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
-
-add_definitions(
- -DUNICODE -D_UNICODE)
+add_definitions(-DUNICODE -D_UNICODE)
list(APPEND SOURCE
hcd_controller.cpp
+
include_directories(
BEFORE include
${REACTOS_SOURCE_DIR}/drivers/network/tcpip/include
add_library(lwip ${SOURCE})
add_dependencies(lwip bugcodes)
add_pch(lwip precomp.h SOURCE)
+
if(NOT MSVC)
if(LTCG)
add_compile_flags("-fno-builtin-malloc -fno-builtin-free")
add_library(libusbaudio ${SOURCE})
add_dependencies(libusbaudio bugcodes)
-
add_library(mmixer ${SOURCE})
add_pch(mmixer precomp.h SOURCE)
add_dependencies(mmixer bugcodes)
-
set_cpp()
-
-add_library(stdunk STATIC cunknown.cpp)
+add_library(stdunk cunknown.cpp)
add_library(ntfslib ntfslib.c)
add_dependencies(ntfslib psdk)
-
-add_library(gcc_ssp STATIC gcc_ssp.c)
\ No newline at end of file
+add_library(gcc_ssp gcc_ssp.c)
add_library(recyclebin ${SOURCE} guid.c)
add_pch(recyclebin recyclebin_private.h SOURCE)
add_dependencies(recyclebin psdk)
-
-list(APPEND SOURCE
- rtcapi.c
-)
+list(APPEND SOURCE rtcapi.c)
if(ARCH STREQUAL "i386")
- list(APPEND ASM_SOURCE
- i386/_RTC_CheckEsp.S
-)
+ list(APPEND ASM_SOURCE i386/_RTC_CheckEsp.S)
endif()
add_asm_files(RunTmChk_asm ${ASM_SOURCE})
add_library(RunTmChk ${SOURCE} ${RunTmChk_asm})
-
add_dependencies(RunTmChk asm)
set_cpp(WITH_EXCEPTIONS WITH_STL)
-
add_library(comsupp comsupp.cpp)
add_dependencies(comsupp psdk)
elseif(ARCH STREQUAL "amd64")
add_asm_files(cpprt_asm amd64/cpprt.s)
endif()
+
add_library(cpprt ${SOURCE} ${cpprt_asm})
+
if(NOT MSVC)
_add_library(oldnames STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def PROPERTIES EXTERNAL_OBJECT TRUE)
+
add_subdirectory(fonts)
add_subdirectory(inf)
add_subdirectory(nls)
+
list(APPEND FONT_FILES
DejaVuSans-Bold.ttf
DejaVuSans-BoldOblique.ttf
UbuntuMono-RI.ttf
Ubuntu-R.ttf
Ubuntu-RI.ttf
- UniVGA16.ttf
-)
+ UniVGA16.ttf)
foreach(item ${FONT_FILES})
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/Fonts FOR all)
+
list(APPEND INF_FILES
acpi.inf
audio.inf
usb.inf
usbport.inf
usbstor.inf
- xboxdisp.inf
-)
+ xboxdisp.inf)
foreach(item ${INF_FILES})
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/inf FOR all)
+
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/l_intl.nls DESTINATION reactos/system32 NO_CAB FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/c_437.nls DESTINATION reactos/system32 NO_CAB FOR all)
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/c_1252.nls DESTINATION reactos/system32 NO_CAB FOR all)
locale.nls
sortkey.nls
ctype.nls
- l_except.nls
-)
-
-
+ l_except.nls)
+
foreach(item ${NLS_FILES})
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}" DESTINATION reactos/system32 FOR all)
endforeach(item)
+
add_subdirectory(lautus.msstyles)
-list(APPEND SOURCE
- lautus.rc)
-
-add_library(lautus.msstyles SHARED ${SOURCE})
+add_library(lautus.msstyles SHARED lautus.rc)
set_module_type(lautus.msstyles module)
set_target_properties(lautus.msstyles PROPERTIES SUFFIX "")
-
add_cd_file(TARGET lautus.msstyles DESTINATION reactos/Resources/Themes/Lautus FOR all)
${CMAKE_CURRENT_SOURCE_DIR}/862-8x8.bin
${CMAKE_CURRENT_SOURCE_DIR}/865-8x8.bin
${CMAKE_CURRENT_SOURCE_DIR}/866-8x8.bin
- ${CMAKE_CURRENT_SOURCE_DIR}/932-8x8.bin
-)
+ ${CMAKE_CURRENT_SOURCE_DIR}/932-8x8.bin)
+
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vgafonts.cab
COMMAND native-cabman -M raw -S ${CMAKE_CURRENT_BINARY_DIR}/vgafonts.cab ${SOURCE}
DEPENDS ${SOURCE} native-cabman)
add_custom_target(vgafonts DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vgafonts.cab)
-
add_cd_file(TARGET vgafonts FILE ${CMAKE_CURRENT_BINARY_DIR}/vgafonts.cab DESTINATION reactos NO_CAB FOR all)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rostests/)
-add_subdirectory(rostests)
+ add_subdirectory(rostests)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/rosapps/)
-add_subdirectory(rosapps)
+ add_subdirectory(rosapps)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper/)
-add_subdirectory(wallpaper)
+ add_subdirectory(wallpaper)
endif()
${CMAKE_CURRENT_BINARY_DIR}/ntvdm.def)
add_executable(ntvdm ${SOURCE})
-set_module_type(ntvdm win32cui UNICODE)
-set_image_base(ntvdm 0x0F000000)
+set_module_type(ntvdm win32cui UNICODE IMAGEBASE 0x0F000000)
target_link_libraries(ntvdm fast486)
add_importlibs(ntvdm user32 gdi32 advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET ntvdm DESTINATION reactos/system32 FOR all)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-
spec2def(basesrv.dll basesrv.spec)
list(APPEND SOURCE
################# END HACK #################
target_link_libraries(basesrv ${PSEH_LIB})
-
add_importlibs(basesrv csrsrv ntdll)
add_pch(basesrv basesrv.h SOURCE)
add_dependencies(basesrv bugcodes)
include_directories(${REACTOS_SOURCE_DIR}/subsystems/win32/csrss/include)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-
spec2def(csrsrv.dll csrsrv.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/csrsrv.def)
set_module_type(csrsrv nativedll)
-
target_link_libraries(csrsrv ${PSEH_LIB} smlib)
-
add_importlibs(csrsrv ntdll smdll)
-
add_pch(csrsrv srv.h SOURCE)
-
add_dependencies(csrsrv psdk bugcodes)
add_cd_file(TARGET csrsrv DESTINATION reactos/system32 FOR all)
-
add_executable(csrss csrss.c csrss.rc)
set_module_type(csrss nativecui)
-
target_link_libraries(csrss nt)
-
add_importlibs(csrss csrsrv ntdll)
-
add_dependencies(csrss psdk bugcodes)
add_cd_file(TARGET csrss DESTINATION reactos/system32 FOR all)
add_subdirectory(gendib)
add_subdirectory(geninc)
if(NOT MSVC)
-add_subdirectory(log2lines)
+ add_subdirectory(log2lines)
endif()
add_subdirectory(mkhive)
add_subdirectory(obj2bin)
+
list(APPEND SOURCE
cabinet.cxx
dfp.cxx
raw.cxx)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
-
add_executable(cabman ${SOURCE})
-
target_link_libraries(cabman zlibhost)
-add_executable(cdmake cdmake.c dirhash.c llmosrt.c)
+add_executable(cdmake cdmake.c dirhash.c llmosrt.c)
+
add_executable(hpp hpp.c)
+
list(APPEND SOURCE
cache.c
cmd.c
util.c)
include_directories(${REACTOS_SOURCE_DIR}/tools/rsym)
-
add_executable(log2lines ${SOURCE})
target_link_libraries(log2lines rsym_common)
+
add_executable(obj2bin obj2bin.c)
+
include_directories(${REACTOS_SOURCE_DIR}/tools)
add_library(rsym_common rsym_common.c)
elseif(ARCH STREQUAL "amd64")
add_executable(rsym rsym64.c)
endif()
+
target_link_libraries(rsym rsym_common dbghelphost zlibhost unicode)
add_executable(raddr2line rsym_common.c raddr2line.c)
+
add_executable(spec2def spec2def.c)
list(APPEND SOURCE
-
c_037.c
c_10000.c
c_10001.c
+
add_executable(utf16le utf16le.cpp)
if(MSVC)
- add_definitions(
- -Dsnprintf=_snprintf)
+ add_definitions(-Dsnprintf=_snprintf)
# Add this definition for WDK only, VS 9 doesn't like that
- if (DEFINED ENV{DDKBUILDENV})
- add_definitions(
- -Dvsnprintf=_vsnprintf)
+ if(DEFINED ENV{DDKBUILDENV})
+ add_definitions(-Dvsnprintf=_vsnprintf)
endif()
list(APPEND SOURCE getopt.c)
# Taken from widl.rbuild
add_definitions(-DINT16=SHORT)
-
add_executable(widl ${SOURCE})
-
target_link_libraries(widl wpphost)
-Dstrtoll=_strtoi64)
# Add this definition for WDK only, VS 9 doesn't like that
- if (DEFINED ENV{DDKBUILDENV})
- add_definitions(
- -Dvsnprintf=_vsnprintf)
+ if(DEFINED ENV{DDKBUILDENV})
+ add_definitions(-Dvsnprintf=_vsnprintf)
endif()
endif()
endif()
if(KDBG)
- list(APPEND SOURCE
- gdi/ntgdi/gdikdbgext.c)
+ list(APPEND SOURCE gdi/ntgdi/gdikdbgext.c)
endif()
add_asm_files(win32k_asm ${ASM_SOURCE})
${CMAKE_CURRENT_BINARY_DIR}/win32k.def)
set_module_type(win32k kernelmodedriver)
-
-target_link_libraries(win32k
- ${PSEH_LIB}
- dxguid
- libcntpr)
+target_link_libraries(win32k ${PSEH_LIB} dxguid libcntpr)
if(USE_DIBLIB)
target_link_libraries(win32k diblib)
${CMAKE_CURRENT_BINARY_DIR}/framebuf.def)
set_module_type(framebuf kerneldll ENTRYPOINT DrvEnableDriver 12)
-
add_pch(framebuf framebuf.h SOURCE)
target_link_libraries(framebuf libcntpr)
add_importlibs(framebuf win32k)
${CMAKE_CURRENT_BINARY_DIR}/vgaddi.def)
set_module_type(vgaddi kerneldll ENTRYPOINT DrvEnableDriver 12)
-
add_pch(vgaddi vgaddi.h SOURCE)
add_importlibs(vgaddi win32k)
target_link_libraries(vgaddi libcntpr)
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include)
-
spec2def(ftfd.dll ftfd.spec ADD_IMPORTLIB)
list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/ftfd.def)
set_module_type(ftfd kerneldll ENTRYPOINT FtfdEnableDriver 12)
-
-target_link_libraries(ftfd
- freetype
- libcntpr)
-
+target_link_libraries(ftfd freetype libcntpr)
add_pch(ftfd ftfd.h SOURCE)
add_importlibs(ftfd win32k)
add_dependencies(ftfd psdk)
add_cd_file(TARGET ftfd DESTINATION reactos/system32 FOR all)
-
vgamp.h)
add_library(vgamp SHARED ${SOURCE} vgamp.rc)
-
set_module_type(vgamp kernelmodedriver)
add_importlibs(vgamp videoprt)
-
add_pch(vgamp vgamp.h SOURCE)
add_cd_file(TARGET vgamp DESTINATION reactos/system32/drivers FOR all)
vga.rc)
target_link_libraries(vga libcntpr)
-
set_module_type(vga kernelmodedriver)
add_importlibs(vga videoprt)
-
add_pch(vga vga.h SOURCE)
-
add_cd_file(TARGET vga DESTINATION reactos/system32/drivers FOR all)
-list(APPEND SOURCE vmx_svga.c vmx_svga.rc)
-
-add_library(vmx_svga SHARED ${SOURCE})
-
+add_library(vmx_svga SHARED vmx_svga.c vmx_svga.rc)
set_module_type(vmx_svga kernelmodedriver)
add_importlibs(vmx_svga ntoskrnl videoprt)
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
-
add_definitions(-D_VIDEOPORT_)
-
spec2def(videoprt.sys videoprt.spec ADD_IMPORTLIB)
list(APPEND SOURCE
set_module_type(videoprt kernelmodedriver)
add_importlibs(videoprt ntoskrnl hal)
-
add_pch(videoprt videoprt.h SOURCE)
add_cd_file(TARGET videoprt DESTINATION reactos/system32/drivers FOR all)
-
set_module_type(watchdog kernelmodedriver)
add_importlibs(watchdog ntoskrnl)
-
add_cd_file(TARGET watchdog DESTINATION reactos/system32/drivers FOR all)
-
-add_definitions(-DLANGPACK)
-
include_directories(
include
${REACTOS_SOURCE_DIR}/win32ss/include)
+add_definitions(-DLANGPACK)
spec2def(gdi32.dll gdi32.spec ADD_IMPORTLIB)
if(ARCH STREQUAL "i386")
- list(APPEND SOURCE
- objects/efloat.c)
+ list(APPEND SOURCE objects/efloat.c)
endif()
list(APPEND SOURCE
gdi32.rc
${CMAKE_CURRENT_BINARY_DIR}/gdi32.def)
-set_module_type(gdi32
- win32dll
- ENTRYPOINT DllMain 12
- UNICODE)
-
-target_link_libraries(gdi32
- win32ksys
- dxguid
- msvcrtex
- ${PSEH_LIB})
-
+set_module_type(gdi32 win32dll ENTRYPOINT DllMain 12 UNICODE)
+target_link_libraries(gdi32 win32ksys dxguid msvcrtex ${PSEH_LIB})
add_importlibs(gdi32 user32 advapi32 kernel32 ntdll)
add_pch(gdi32 include/precomp.h SOURCE)
add_cd_file(TARGET gdi32 DESTINATION reactos/system32 FOR all)
-
add_definitions(-D_DXAPI_)
-
spec2def(dxapi.sys dxapi.spec)
add_library(dxapi SHARED
set_module_type(dxapi kernelmodedriver)
add_importlibs(dxapi ntoskrnl hal videoprt)
-
add_cd_file(TARGET dxapi DESTINATION reactos/system32/drivers FOR all)
${CMAKE_CURRENT_BINARY_DIR}/dxgthk.def)
add_library(dxgthk SHARED ${SOURCE})
-
set_module_type(dxgthk kernelmodedriver)
-
add_importlibs(dxgthk win32k)
-
-
add_cd_file(TARGET dxgthk DESTINATION reactos/system32/drivers FOR all)
add_delay_importlibs(winsrv advapi32 ${CONSRV_DELAY_IMPORT_LIBS})
add_importlibs(winsrv csrsrv gdi32 user32 kernel32 ntdll ${CONSRV_IMPORT_LIBS})
-
add_dependencies(winsrv bugcodes)
add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)
consrv/frontends/gui/text.c
consrv/frontends/tui/tuiterm.c
# consrv/consrv.rc
- consrv/consrv.h
- )
+ consrv/consrv.h)
#
# Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
add_dependencies(consrv psdk)
add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
#add_object_library(consrv ${CONSRV_SOURCE})
-
list(APPEND CONSRV_IMPORT_LIBS psapi)
list(APPEND CONSRV_DELAY_IMPORT_LIBS ole32)
list(APPEND CONSRV_TARGET_LINK_LIBS uuid)
-
set_module_type(consrv module UNICODE)
add_library(consrv_new ${CONSRV_SOURCE})
#add_object_library(consrv_new ${CONSRV_SOURCE})
-
add_importlibs(consrv_new psapi) # And the default ones from winsrv
add_delay_importlibs(consrv_new ole32) # And the default ones from winsrv
target_link_libraries(consrv_new uuid) # And the default ones from winsrv
-
set_module_type(consrv_new module UNICODE)
usersrv/register.c
usersrv/shutdown.c
# usersrv/usersrv.rc
- usersrv/usersrv.h
- )
+ usersrv/usersrv.h)
add_library(usersrv ${USERSRV_SOURCE})
add_pch(usersrv usersrv/usersrv.h USERSRV_SOURCE)
#add_object_library(usersrv ${USERSRV_SOURCE})
-
set_module_type(usersrv module UNICODE)