mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:45:50 +00:00
[CMAKE]
- Improve the unicode situation. - Apply a consistent formatting. - Improve the unicode modules we have so far. - Get rid of some rbuildism. - Overall improvements. svn path=/branches/cmake-bringup/; revision=48964
This commit is contained in:
parent
83719eaee5
commit
0281bf63e6
53 changed files with 250 additions and 256 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
list(APPEND SOURCE
|
set_unicode()
|
||||||
cacls.c
|
|
||||||
cacls.rc)
|
list(APPEND SOURCE cacls.c cacls.rc)
|
||||||
|
|
||||||
add_executable(cacls
|
add_executable(cacls
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/cacls_precomp.h.gch
|
${CMAKE_CURRENT_BINARY_DIR}/cacls_precomp.h.gch
|
||||||
|
@ -9,8 +9,5 @@ add_executable(cacls
|
||||||
|
|
||||||
add_pch(cacls ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
add_pch(cacls ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||||
|
|
||||||
set_unicode(cacls yes)
|
|
||||||
|
|
||||||
set_module_type(cacls win32cui)
|
set_module_type(cacls win32cui)
|
||||||
|
add_importlibs(cacls advapi32 user32 shell32 msvcrt)
|
||||||
add_importlibs(cacls advapi32 ntdll user32 shell32 msvcrt)
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
|
add_definitions(-DDISABLE_HTMLHELP_SUPPORT=1)
|
||||||
|
|
||||||
add_executable(calc
|
add_executable(calc
|
||||||
|
@ -12,7 +13,4 @@ add_executable(calc
|
||||||
resource.rc)
|
resource.rc)
|
||||||
|
|
||||||
set_module_type(calc win32gui)
|
set_module_type(calc win32gui)
|
||||||
set_unicode(calc yes)
|
|
||||||
add_importlibs(calc advapi32 user32 gdi32 msvcrt)
|
add_importlibs(calc advapi32 user32 gdi32 msvcrt)
|
||||||
|
|
||||||
add_dependencies(calc psdk)
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
about.c
|
about.c
|
||||||
charmap.c
|
charmap.c
|
||||||
|
@ -12,8 +14,5 @@ add_executable(charmap
|
||||||
|
|
||||||
add_pch(charmap ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
add_pch(charmap ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||||
|
|
||||||
set_unicode(charmap yes)
|
|
||||||
|
|
||||||
set_module_type(charmap win32gui)
|
set_module_type(charmap win32gui)
|
||||||
|
add_importlibs(charmap user32 gdi32 comctl32 msvcrt)
|
||||||
add_importlibs(charmap user32 gdi32 comctl32 msvcrt)
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
add_executable(dbgprint dbgprint.c)
|
add_executable(dbgprint dbgprint.c)
|
||||||
|
|
||||||
set_module_type(dbgprint win32cui)
|
set_module_type(dbgprint win32cui)
|
||||||
|
add_importlibs(dbgprint msvcrt)
|
||||||
set_unicode(dbgprint no)
|
|
||||||
|
|
||||||
add_importlibs(dbgprint msvcrt)
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
add_executable(doskey
|
|
||||||
doskey.c
|
set_unicode()
|
||||||
doskey.rc)
|
|
||||||
|
add_executable(doskey doskey.c doskey.rc)
|
||||||
|
|
||||||
set_module_type(doskey win32cui)
|
set_module_type(doskey win32cui)
|
||||||
|
add_importlibs(doskey user32 msvcrt)
|
||||||
set_unicode(doskey yes)
|
|
||||||
|
|
||||||
add_importlibs(doskey user32 msvcrt)
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
add_executable(find
|
|
||||||
find.c
|
add_executable(find find.c find.rc)
|
||||||
find.rc)
|
|
||||||
|
|
||||||
set_module_type(find win32cui)
|
set_module_type(find win32cui)
|
||||||
|
add_importlibs(find user32 msvcrt)
|
||||||
set_unicode(find no)
|
|
||||||
|
|
||||||
add_importlibs(find user32 msvcrt)
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
add_executable(hostname
|
|
||||||
hostname.c
|
add_executable(hostname hostname.c hostname.rc)
|
||||||
hostname.rc)
|
|
||||||
|
|
||||||
set_module_type(hostname win32cui)
|
set_module_type(hostname win32cui)
|
||||||
|
add_importlibs(hostname msvcrt)
|
||||||
set_unicode(hostname no)
|
|
||||||
|
|
||||||
add_importlibs(hostname msvcrt)
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
add_executable(lodctr lodctr_main.c)
|
add_executable(lodctr lodctr_main.c)
|
||||||
|
|
||||||
set_module_type(lodctr win32cui)
|
set_module_type(lodctr win32cui)
|
||||||
|
add_importlibs(lodctr loadperf msvcrt)
|
||||||
set_unicode(lodctr yes)
|
|
||||||
|
|
||||||
add_importlibs(lodctr loadperf msvcrt)
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
add_executable(more
|
|
||||||
more.c
|
add_executable(more more.c more.rc)
|
||||||
more.rc)
|
|
||||||
|
|
||||||
set_module_type(more win32cui)
|
set_module_type(more win32cui)
|
||||||
|
add_importlibs(more user32 msvcrt)
|
||||||
set_unicode(more no)
|
|
||||||
|
|
||||||
add_importlibs(more ntdll user32 msvcrt)
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x600)
|
add_definitions(-D_WIN32_WINNT=0x600)
|
||||||
|
|
||||||
add_executable(reg
|
add_executable(reg reg.c rsrc.rc)
|
||||||
reg.c
|
|
||||||
rsrc.rc)
|
|
||||||
|
|
||||||
set_module_type(reg win32cui)
|
set_module_type(reg win32cui)
|
||||||
|
add_importlibs(reg advapi32 user32 msvcrt)
|
||||||
set_unicode(reg yes)
|
|
||||||
|
|
||||||
add_importlibs(reg advapi32 user32 msvcrt)
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
add_executable(xcopy
|
|
||||||
xcopy.c
|
set_unicode()
|
||||||
rsrc.rc)
|
|
||||||
|
add_executable(xcopy xcopy.c rsrc.rc)
|
||||||
|
|
||||||
|
target_link_libraries(xcopy wine)
|
||||||
|
|
||||||
set_module_type(xcopy win32cui)
|
set_module_type(xcopy win32cui)
|
||||||
|
add_importlibs(xcopy shell32 user32 msvcrt)
|
||||||
set_unicode(xcopy yes)
|
|
||||||
|
|
||||||
add_importlibs(xcopy shell32 user32 msvcrt ntdll)
|
|
||||||
|
|
||||||
target_link_libraries(xcopy wine)
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
|
|
||||||
add_executable(control
|
set_unicode()
|
||||||
control.c
|
|
||||||
control.rc)
|
|
||||||
|
|
||||||
set_unicode(control yes)
|
add_executable(control control.c control.rc)
|
||||||
|
|
||||||
set_module_type(control win32gui)
|
set_module_type(control win32gui)
|
||||||
|
add_importlibs(control advapi32 shell32 msvcrt)
|
||||||
add_importlibs(control advapi32 shell32 kernel32 msvcrt)
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
add_executable(extrac32 extrac32.c)
|
add_executable(extrac32 extrac32.c)
|
||||||
|
|
||||||
set_unicode(extrac32 yes)
|
|
||||||
|
|
||||||
set_module_type(extrac32 win32gui)
|
|
||||||
|
|
||||||
target_link_libraries(extrac32 wine)
|
target_link_libraries(extrac32 wine)
|
||||||
|
|
||||||
add_importlibs(extrac32 ntdll shell32 setupapi shlwapi user32 msvcrt)
|
set_module_type(extrac32 win32gui)
|
||||||
|
add_importlibs(extrac32 shell32 setupapi shlwapi user32 msvcrt)
|
||||||
|
|
|
@ -4,8 +4,5 @@ add_executable(fontview
|
||||||
fontview.c
|
fontview.c
|
||||||
fontview.rc)
|
fontview.rc)
|
||||||
|
|
||||||
set_unicode(fontview no)
|
|
||||||
|
|
||||||
set_module_type(fontview win32gui)
|
set_module_type(fontview win32gui)
|
||||||
|
add_importlibs(fontview gdi32 shell32 user32 msvcrt)
|
||||||
add_importlibs(fontview gdi32 shell32 user32 msvcrt)
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib)
|
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/cardlib)
|
||||||
|
|
||||||
add_executable(sol
|
add_executable(sol
|
||||||
|
@ -7,10 +9,7 @@ add_executable(sol
|
||||||
solitaire.cpp
|
solitaire.cpp
|
||||||
rsrc.rc)
|
rsrc.rc)
|
||||||
|
|
||||||
set_unicode(sol yes)
|
|
||||||
|
|
||||||
set_module_type(sol win32gui)
|
|
||||||
|
|
||||||
target_link_libraries(sol cardlib)
|
target_link_libraries(sol cardlib)
|
||||||
|
|
||||||
add_importlibs(sol advapi32 comctl32 user32 gdi32 stdc++ gcc mingw32 msvcrt)
|
set_module_type(sol win32gui)
|
||||||
|
add_importlibs(sol advapi32 comctl32 user32 gdi32 stdc++ gcc mingw32 msvcrt)
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
set_rc_compiler()
|
||||||
|
|
||||||
add_executable(winemine
|
add_executable(winemine
|
||||||
main.c
|
main.c
|
||||||
dialog.c
|
dialog.c
|
||||||
rsrc.rc)
|
rsrc.rc)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
set_unicode(winemine yes)
|
|
||||||
|
|
||||||
set_module_type(winemine win32gui)
|
set_module_type(winemine win32gui)
|
||||||
set_rc_compiler()
|
add_importlibs(winemine user32 gdi32 advapi32 shell32 msvcrt)
|
||||||
|
|
||||||
add_importlibs(winemine user32 gdi32 advapi32 shell32 msvcrt)
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
add_executable(hh
|
add_executable(hh main.c hh.rc)
|
||||||
main.c
|
|
||||||
hh.rc)
|
|
||||||
|
|
||||||
set_unicode(hh no)
|
|
||||||
|
|
||||||
set_module_type(hh win32gui)
|
set_module_type(hh win32gui)
|
||||||
|
add_importlibs(hh gdi32 user32 msvcrt)
|
||||||
add_importlibs(hh gdi32 user32 msvcrt)
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
add_executable(iexplore
|
add_executable(iexplore main.c iexplore.rc)
|
||||||
main.c
|
|
||||||
iexplore.rc)
|
|
||||||
|
|
||||||
set_unicode(iexplore no)
|
|
||||||
|
|
||||||
set_module_type(iexplore win32gui)
|
set_module_type(iexplore win32gui)
|
||||||
|
add_importlibs(iexplore shdocvw msvcrt)
|
||||||
add_importlibs(iexplore shdocvw msvcrt)
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
add_definitions(-DANONYMOUSUNIONS)
|
add_definitions(-DANONYMOUSUNIONS)
|
||||||
add_definitions(-D_DEBUG_MEM)
|
add_definitions(-D_DEBUG_MEM)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||||
cmd.rc
|
|
||||||
main.c)
|
|
||||||
|
|
||||||
add_pch(cmd ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
|
list(APPEND SOURCE main.c cmd.rc)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
alias.c
|
alias.c
|
||||||
|
@ -71,7 +70,9 @@ list(APPEND SOURCE
|
||||||
window.c)
|
window.c)
|
||||||
|
|
||||||
add_executable(cmd ${CMAKE_CURRENT_BINARY_DIR}/cmd_precomp.h.gch ${SOURCE})
|
add_executable(cmd ${CMAKE_CURRENT_BINARY_DIR}/cmd_precomp.h.gch ${SOURCE})
|
||||||
|
|
||||||
|
target_link_libraries(cmd wine)
|
||||||
|
|
||||||
|
add_pch(cmd ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h SOURCE)
|
||||||
set_module_type(cmd win32cui)
|
set_module_type(cmd win32cui)
|
||||||
set_unicode(cmd yes)
|
|
||||||
target_link_libraries(cmd oldnames wine)
|
|
||||||
add_importlibs(cmd advapi32 user32 msvcrt)
|
add_importlibs(cmd advapi32 user32 msvcrt)
|
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
add_subdirectory(notifyhook)
|
add_subdirectory(notifyhook)
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
add_definitions(-DWIN32)
|
add_definitions(-DWIN32)
|
||||||
add_definitions(-D__WINDRES__)
|
add_definitions(-D__WINDRES__)
|
||||||
|
|
||||||
|
@ -46,16 +48,12 @@ list(APPEND SOURCE
|
||||||
|
|
||||||
add_executable(explorer ${SOURCE}) #${CMAKE_CURRENT_BINARY_DIR}/explorer_precomp.h.gch ${SOURCE})
|
add_executable(explorer ${SOURCE}) #${CMAKE_CURRENT_BINARY_DIR}/explorer_precomp.h.gch ${SOURCE})
|
||||||
|
|
||||||
set_module_type(explorer win32gui)
|
|
||||||
|
|
||||||
target_link_libraries(explorer
|
target_link_libraries(explorer
|
||||||
mingw_wmain
|
|
||||||
mingw_common
|
|
||||||
coldname
|
|
||||||
oldnames
|
|
||||||
wine
|
wine
|
||||||
uuid)
|
uuid)
|
||||||
|
|
||||||
|
set_module_type(explorer win32gui)
|
||||||
|
|
||||||
add_importlibs(explorer
|
add_importlibs(explorer
|
||||||
advapi32
|
advapi32
|
||||||
gdi32
|
gdi32
|
||||||
|
|
|
@ -7,5 +7,5 @@ set_module_type(ksuser win32dll)
|
||||||
|
|
||||||
target_link_libraries(ksuser ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def)
|
target_link_libraries(ksuser ${CMAKE_CURRENT_BINARY_DIR}/ksuser.def)
|
||||||
|
|
||||||
add_importlibs(ksuser ntdll advapi32)
|
add_importlibs(ksuser advapi32 kernel32 ntdll)
|
||||||
add_dependencies(ksuser ksuser_def psdk bugcodes)
|
add_dependencies(ksuser ksuser_def psdk bugcodes)
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
acledit.c
|
||||||
|
stubs.c
|
||||||
file(GLOB_RECURSE SOURCE *.c)
|
acledit.rc)
|
||||||
|
|
||||||
spec2def(acledit ${CMAKE_CURRENT_SOURCE_DIR}/acledit.spec ${CMAKE_CURRENT_BINARY_DIR}/acledit.def)
|
spec2def(acledit ${CMAKE_CURRENT_SOURCE_DIR}/acledit.spec ${CMAKE_CURRENT_BINARY_DIR}/acledit.def)
|
||||||
|
|
||||||
add_library(acledit SHARED
|
add_library(acledit SHARED ${SOURCE})
|
||||||
${SOURCE}
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/acledit.rc)
|
|
||||||
|
|
||||||
set_target_properties(acledit PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
set_module_type(acledit win32dll)
|
||||||
|
|
||||||
target_link_libraries(acledit
|
target_link_libraries(acledit ${CMAKE_CURRENT_BINARY_DIR}/acledit.def)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/acledit.def
|
add_importlibs(acledit ntdll)
|
||||||
-lntdll)
|
|
||||||
|
|
||||||
add_dependencies(acledit acledit_def psdk buildno_header)
|
add_dependencies(acledit acledit_def)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
|
set_unicode()
|
||||||
|
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
|
||||||
add_definitions(-DSUPPORT_UXTHEME)
|
add_definitions(-DSUPPORT_UXTHEME)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE *.c)
|
file(GLOB_RECURSE SOURCE *.c)
|
||||||
|
@ -28,4 +27,4 @@ target_link_libraries(aclui
|
||||||
-lntdll)
|
-lntdll)
|
||||||
|
|
||||||
add_pch(aclui ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
add_pch(aclui ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||||
add_dependencies(aclui aclui_def psdk)
|
add_dependencies(aclui aclui_def psdk buildno_header)
|
||||||
|
|
|
@ -16,4 +16,4 @@ target_link_libraries(activeds
|
||||||
wine
|
wine
|
||||||
mingw_common)
|
mingw_common)
|
||||||
|
|
||||||
add_dependencies(activeds activeds_def psdk)
|
add_dependencies(activeds activeds_def psdk buildno_header)
|
||||||
|
|
|
@ -22,4 +22,4 @@ target_link_libraries(advpack
|
||||||
-lversion
|
-lversion
|
||||||
-ladvapi32)
|
-ladvapi32)
|
||||||
|
|
||||||
add_dependencies(advpack advpack_def psdk)
|
add_dependencies(advpack advpack_def psdk buildno_header)
|
||||||
|
|
|
@ -21,4 +21,4 @@ target_link_libraries(authz
|
||||||
-lntdll)
|
-lntdll)
|
||||||
|
|
||||||
add_pch(authz ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
add_pch(authz ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||||
add_dependencies(authz authz_def psdk)
|
add_dependencies(authz authz_def psdk buildno_header)
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
add_definitions(-DNDEBUG=1)
|
add_definitions(-DNDEBUG=1)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/sound)
|
include_directories(
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud)
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/sound
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/sound/mmixer)
|
${REACTOS_SOURCE_DIR}/drivers/wdm/audio/legacy/wdmaud
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
|
${REACTOS_SOURCE_DIR}/lib/drivers/sound/mmixer
|
||||||
|
${REACTOS_SOURCE_DIR}/lib/3rdparty/libsamplerate)
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def
|
||||||
|
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/wdmaud.spec --filename wdmaud.drv
|
||||||
|
DEPENDS native-winebuild)
|
||||||
|
|
||||||
add_custom_command(
|
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def
|
|
||||||
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/wdmaud.spec --filename wdmaud.drv
|
|
||||||
DEPENDS native-winebuild)
|
|
||||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def PROPERTIES GENERATED TRUE)
|
||||||
add_custom_target(wdmaud.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def)
|
add_custom_target(wdmaud.drv_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/wdmaud.drv.def)
|
||||||
|
|
||||||
|
@ -30,5 +32,5 @@ target_link_libraries(wdmaud.drv
|
||||||
libsamplerate
|
libsamplerate
|
||||||
mmixer)
|
mmixer)
|
||||||
|
|
||||||
add_importlibs(wdmaud.drv ntdll user32 winmm advapi32 msvcrt setupapi ksuser)
|
add_importlibs(wdmaud.drv user32 winmm advapi32 msvcrt setupapi ksuser kernel32 ntdll)
|
||||||
add_dependencies(wdmaud.drv wdmaud.drv_def psdk)
|
add_dependencies(wdmaud.drv wdmaud.drv_def psdk)
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
|
|
||||||
add_definitions(-D__WINESRC__)
|
add_definitions(-D__WINESRC__)
|
||||||
|
|
||||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||||
add_definitions(-D_WIN32_WINNT=0x600)
|
add_definitions(-D_WIN32_WINNT=0x600)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
include_directories(
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
|
${REACTOS_SOURCE_DIR}/include/reactos/wine
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng)
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/libpng
|
||||||
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/libtiff)
|
||||||
|
|
||||||
spec2def(windowscodecs ${CMAKE_CURRENT_SOURCE_DIR}/windowscodecs.spec ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
|
spec2def(windowscodecs ${CMAKE_CURRENT_SOURCE_DIR}/windowscodecs.spec ${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def)
|
||||||
|
|
||||||
|
@ -38,5 +40,5 @@ target_link_libraries(windowscodecs
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def
|
${CMAKE_CURRENT_BINARY_DIR}/windowscodecs.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(windowscodecs msvcrt uuid ole32 shlwapi advapi32)
|
add_importlibs(windowscodecs uuid ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
|
||||||
add_dependencies(windowscodecs windowscodecs_def psdk)
|
add_dependencies(windowscodecs windowscodecs_def psdk)
|
||||||
|
|
26
dll/win32/winemp3.acm/CMakeLists.txt
Normal file
26
dll/win32/winemp3.acm/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||||
|
add_definitions(-D__WINESRC__ -DWIN32)
|
||||||
|
|
||||||
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||||
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libmpg123)
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
|
||||||
|
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/winemp3.acm.spec --filename winemp3.acm
|
||||||
|
DEPENDS native-winebuild)
|
||||||
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def PROPERTIES GENERATED TRUE)
|
||||||
|
add_custom_target(winemp3.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def)
|
||||||
|
|
||||||
|
add_library(winemp3.acm SHARED mpegl3.c)
|
||||||
|
|
||||||
|
set_target_properties(winemp3.acm PROPERTIES LINK_FLAGS "-Wl,-entry,0" SUFFIX "")
|
||||||
|
|
||||||
|
target_link_libraries(winemp3.acm
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
|
||||||
|
mingw_common
|
||||||
|
wine
|
||||||
|
mpg123)
|
||||||
|
|
||||||
|
add_importlibs(winemp3.acm msvcrt winmm user32)
|
||||||
|
add_dependencies(winemp3.acm winemp3.acm_def psdk)
|
|
@ -20,5 +20,5 @@ target_link_libraries(winhttp
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/winhttp.def
|
${CMAKE_CURRENT_BINARY_DIR}/winhttp.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(winhttp msvcrt shlwapi wininet ws2_32 ntdll)
|
add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt kernel32 ntdll)
|
||||||
add_dependencies(winhttp winhttp_def psdk)
|
add_dependencies(winhttp winhttp_def psdk)
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
|
||||||
add_definitions(-D__WINESRC__ -D_WINE)
|
add_definitions(-D__WINESRC__ -D_WINE)
|
||||||
|
add_definitions(-Dclose=_close)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
include_directories(
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
|
${REACTOS_SOURCE_DIR}/include/reactos/wine
|
||||||
|
${REACTOS_SOURCE_DIR}/lib/3rdparty/zlib)
|
||||||
|
|
||||||
spec2def(wininet ${CMAKE_CURRENT_SOURCE_DIR}/wininet.spec ${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
|
spec2def(wininet ${CMAKE_CURRENT_SOURCE_DIR}/wininet.spec ${CMAKE_CURRENT_BINARY_DIR}/wininet.def)
|
||||||
|
|
||||||
|
@ -30,5 +32,5 @@ target_link_libraries(wininet
|
||||||
zlib
|
zlib
|
||||||
pseh)
|
pseh)
|
||||||
|
|
||||||
add_importlibs(wininet msvcrt mpr shlwapi shell32 user32 advapi32 ntdll secur32 crypt32 ws2_32)
|
add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 secur32 crypt32 ws2_32 msvcrt kernel32 ntdll)
|
||||||
add_dependencies(wininet wininet_def psdk buildno_header)
|
add_dependencies(wininet wininet_def psdk buildno_header)
|
||||||
|
|
|
@ -25,7 +25,7 @@ target_link_libraries(winmm
|
||||||
wine
|
wine
|
||||||
pseh)
|
pseh)
|
||||||
|
|
||||||
add_importlibs(winmm msvcrt ntdll advapi32 user32)
|
add_importlibs(winmm advapi32 user32 msvcrt kernel32 ntdll)
|
||||||
add_dependencies(winmm winmm_def psdk)
|
add_dependencies(winmm winmm_def psdk)
|
||||||
|
|
||||||
add_subdirectory(midimap)
|
add_subdirectory(midimap)
|
||||||
|
|
|
@ -16,5 +16,5 @@ target_link_libraries(winspool
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/winspool.def
|
${CMAKE_CURRENT_BINARY_DIR}/winspool.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(winspool ntdll advapi32 shlwapi)
|
add_importlibs(winspool advapi32 shlwapi kernel32 ntdll)
|
||||||
add_dependencies(winspool winspool_def psdk)
|
add_dependencies(winspool winspool_def psdk)
|
||||||
|
|
|
@ -21,6 +21,6 @@ target_link_libraries(winsta
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/winsta.def
|
${CMAKE_CURRENT_BINARY_DIR}/winsta.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(winsta ntdll)
|
add_importlibs(winsta kernel32 ntdll)
|
||||||
add_pch(winsta ${CMAKE_CURRENT_SOURCE_DIR}/winsta.h ${SOURCE})
|
add_pch(winsta ${CMAKE_CURRENT_SOURCE_DIR}/winsta.h ${SOURCE})
|
||||||
add_dependencies(winsta winsta_def psdk)
|
add_dependencies(winsta winsta_def psdk)
|
||||||
|
|
|
@ -19,5 +19,5 @@ target_link_libraries(wintrust
|
||||||
wine
|
wine
|
||||||
pseh)
|
pseh)
|
||||||
|
|
||||||
add_importlibs(wintrust msvcrt crypt32 cryptui user32 advapi32 imagehlp ntdll)
|
add_importlibs(wintrust crypt32 cryptui user32 advapi32 imagehlp msvcrt kernel32 ntdll)
|
||||||
add_dependencies(wintrust wintrust_def psdk)
|
add_dependencies(wintrust wintrust_def psdk buildno_header)
|
||||||
|
|
|
@ -13,5 +13,5 @@ target_link_libraries(wlanapi
|
||||||
wine
|
wine
|
||||||
pseh)
|
pseh)
|
||||||
|
|
||||||
add_importlibs(wlanapi kernel32 rpcrt4 ntdll)
|
add_importlibs(wlanapi rpcrt4 kernel32 ntdll)
|
||||||
add_dependencies(wlanapi wlanapi_def psdk)
|
add_dependencies(wlanapi wlanapi_def psdk)
|
||||||
|
|
|
@ -33,5 +33,5 @@ target_link_libraries(wldap32
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/wldap32.def
|
${CMAKE_CURRENT_BINARY_DIR}/wldap32.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(wldap32 ntdll user32)
|
add_importlibs(wldap32 user32 kernel32 ntdll)
|
||||||
add_dependencies(wldap32 wldap32_def psdk)
|
add_dependencies(wldap32 wldap32_def psdk)
|
||||||
|
|
|
@ -30,6 +30,6 @@ target_link_libraries(ws2_32
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def
|
${CMAKE_CURRENT_BINARY_DIR}/ws2_32.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(ws2_32 ntdll user32 advapi32 dnsapi ws2help)
|
add_importlibs(ws2_32 user32 advapi32 dnsapi ws2help kernel32 ntdll)
|
||||||
add_pch(ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/include/ws2_32.h ${SOURCE})
|
add_pch(ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/include/ws2_32.h ${SOURCE})
|
||||||
add_dependencies(ws2_32 ws2_32_def psdk)
|
add_dependencies(ws2_32 ws2_32_def psdk)
|
||||||
|
|
|
@ -51,5 +51,5 @@ target_link_libraries(ws2_32_new
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/ws2_32_new.def
|
${CMAKE_CURRENT_BINARY_DIR}/ws2_32_new.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(ws2_32_new ntdll user32 advapi32 dnsapi ws2help)
|
add_importlibs(ws2_32_new user32 advapi32 dnsapi ws2help kernel32 ntdll)
|
||||||
add_dependencies(ws2_32_new ws2_32_new_def psdk)
|
add_dependencies(ws2_32_new ws2_32_new_def psdk)
|
||||||
|
|
|
@ -13,5 +13,5 @@ add_library(ws2help SHARED
|
||||||
set_module_type(ws2help win32dll)
|
set_module_type(ws2help win32dll)
|
||||||
|
|
||||||
target_link_libraries(ws2help ${CMAKE_CURRENT_BINARY_DIR}/ws2help.def)
|
target_link_libraries(ws2help ${CMAKE_CURRENT_BINARY_DIR}/ws2help.def)
|
||||||
add_importlibs(ws2help advapi32 ntdll ws2_32)
|
add_importlibs(ws2help advapi32 ws2_32 kernel32 ntdll)
|
||||||
add_dependencies(ws2help ws2help_def psdk)
|
add_dependencies(ws2help ws2help_def psdk)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
spec2def(wshirda ${CMAKE_CURRENT_SOURCE_DIR}/wshirda.spec ${CMAKE_CURRENT_BINARY_DIR}/wshirda.def)
|
spec2def(wshirda ${CMAKE_CURRENT_SOURCE_DIR}/wshirda.spec ${CMAKE_CURRENT_BINARY_DIR}/wshirda.def)
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ add_library(wshirda SHARED wshirda.c wshirda.rc)
|
||||||
set_module_type(wshirda win32dll)
|
set_module_type(wshirda win32dll)
|
||||||
|
|
||||||
target_link_libraries(wshirda ${CMAKE_CURRENT_BINARY_DIR}/wshirda.def)
|
target_link_libraries(wshirda ${CMAKE_CURRENT_BINARY_DIR}/wshirda.def)
|
||||||
add_importlibs(wshirda ntdll ws2_32)
|
add_importlibs(wshirda ws2_32 kernel32 ntdll)
|
||||||
add_dependencies(wshirda wshirda_def psdk)
|
add_dependencies(wshirda wshirda_def psdk)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/lib/tdilib)
|
include_directories(${REACTOS_SOURCE_DIR}/lib/tdilib)
|
||||||
|
|
||||||
spec2def(wshtcpip ${CMAKE_CURRENT_SOURCE_DIR}/wshtcpip.spec ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def)
|
spec2def(wshtcpip ${CMAKE_CURRENT_SOURCE_DIR}/wshtcpip.spec ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def)
|
||||||
|
@ -12,5 +13,5 @@ target_link_libraries(wshtcpip
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def
|
${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def
|
||||||
tdilib)
|
tdilib)
|
||||||
|
|
||||||
add_importlibs(wshtcpip kernel32 ntdll ws2_32)
|
add_importlibs(wshtcpip kernel32 ws2_32 kernel32 ntdll)
|
||||||
add_dependencies(wshtcpip wshtcpip_def psdk)
|
add_dependencies(wshtcpip wshtcpip_def psdk)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set_unicode()
|
||||||
|
|
||||||
add_library(wsock32 SHARED stubs.c wsock32.rc)
|
add_library(wsock32 SHARED stubs.c wsock32.rc)
|
||||||
|
|
||||||
set_module_type(wsock32 win32dll)
|
set_module_type(wsock32 win32dll)
|
||||||
|
|
||||||
target_link_libraries(wsock32 ${CMAKE_CURRENT_SOURCE_DIR}/wsock32.def)
|
target_link_libraries(wsock32 ${CMAKE_CURRENT_SOURCE_DIR}/wsock32.def)
|
||||||
add_importlibs(wsock32 ntdll ws2_32)
|
add_importlibs(wsock32 ws2_32 kernel32 ntdll)
|
||||||
add_dependencies(wsock32 psdk)
|
add_dependencies(wsock32 psdk)
|
||||||
|
|
|
@ -12,5 +12,5 @@ target_link_libraries(wtsapi32
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def
|
${CMAKE_CURRENT_BINARY_DIR}/wtsapi32.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(wtsapi32 advapi32 ntdll)
|
add_importlibs(wtsapi32 advapi32 kernel32 ntdll)
|
||||||
add_dependencies(wtsapi32 wtsapi32_def psdk)
|
add_dependencies(wtsapi32 wtsapi32_def psdk)
|
||||||
|
|
|
@ -23,5 +23,5 @@ target_link_libraries(wuapi
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/wuapi.def
|
${CMAKE_CURRENT_BINARY_DIR}/wuapi.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_importlibs(wuapi uuid ole32 advapi32 ntdll)
|
add_importlibs(wuapi uuid ole32 advapi32 kernel32 ntdll)
|
||||||
add_dependencies(wuapi wuapi_def psdk)
|
add_dependencies(wuapi wuapi_def psdk buildno_header)
|
||||||
|
|
|
@ -6,6 +6,8 @@ spec2def(xinput1_1 ${CMAKE_CURRENT_SOURCE_DIR}/xinput1_1.spec ${CMAKE_CURRENT_BI
|
||||||
|
|
||||||
add_library(xinput1_1 SHARED xinput1_1_main.c version.rc)
|
add_library(xinput1_1 SHARED xinput1_1_main.c version.rc)
|
||||||
|
|
||||||
|
add_importlibs(xinput1_1 kernel32)
|
||||||
|
|
||||||
set_module_type(xinput1_1 win32dll)
|
set_module_type(xinput1_1 win32dll)
|
||||||
target_link_libraries(xinput1_1 ${CMAKE_CURRENT_BINARY_DIR}/xinput1_1.def)
|
target_link_libraries(xinput1_1 ${CMAKE_CURRENT_BINARY_DIR}/xinput1_1.def)
|
||||||
add_dependencies(xinput1_1 xinput1_1_def psdk)
|
add_dependencies(xinput1_1 xinput1_1_def psdk buildno_header)
|
||||||
|
|
|
@ -6,6 +6,8 @@ spec2def(xinput1_2 ${CMAKE_CURRENT_SOURCE_DIR}/xinput1_2.spec ${CMAKE_CURRENT_BI
|
||||||
|
|
||||||
add_library(xinput1_2 SHARED xinput1_2_main.c version.rc)
|
add_library(xinput1_2 SHARED xinput1_2_main.c version.rc)
|
||||||
|
|
||||||
|
add_importlibs(xinput1_2 kernel32)
|
||||||
|
|
||||||
set_module_type(xinput1_2 win32dll)
|
set_module_type(xinput1_2 win32dll)
|
||||||
target_link_libraries(xinput1_2 ${CMAKE_CURRENT_BINARY_DIR}/xinput1_2.def)
|
target_link_libraries(xinput1_2 ${CMAKE_CURRENT_BINARY_DIR}/xinput1_2.def)
|
||||||
add_dependencies(xinput1_2 xinput1_2_def psdk)
|
add_dependencies(xinput1_2 xinput1_2_def psdk buildno_header)
|
||||||
|
|
|
@ -12,4 +12,6 @@ target_link_libraries(xinput1_3
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/xinput1_3.def
|
${CMAKE_CURRENT_BINARY_DIR}/xinput1_3.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_dependencies(xinput1_3 xinput1_3_def psdk)
|
add_importlibs(xinput1_3 msvcrt kernel32 ntdll)
|
||||||
|
|
||||||
|
add_dependencies(xinput1_3 xinput1_3_def psdk buildno_header)
|
||||||
|
|
|
@ -6,6 +6,8 @@ spec2def(xinput9_1_0 ${CMAKE_CURRENT_SOURCE_DIR}/xinput9_1_0.spec ${CMAKE_CURREN
|
||||||
|
|
||||||
add_library(xinput9_1_0 SHARED xinput9_1_0_main.c version.rc)
|
add_library(xinput9_1_0 SHARED xinput9_1_0_main.c version.rc)
|
||||||
|
|
||||||
|
add_importlibs(xinput9_1_0 kernel32)
|
||||||
|
|
||||||
set_module_type(xinput9_1_0 win32dll)
|
set_module_type(xinput9_1_0 win32dll)
|
||||||
target_link_libraries(xinput9_1_0 ${CMAKE_CURRENT_BINARY_DIR}/xinput9_1_0.def)
|
target_link_libraries(xinput9_1_0 ${CMAKE_CURRENT_BINARY_DIR}/xinput9_1_0.def)
|
||||||
add_dependencies(xinput9_1_0 xinput9_1_0_def psdk)
|
add_dependencies(xinput9_1_0 xinput9_1_0_def psdk buildno_header)
|
||||||
|
|
|
@ -12,4 +12,6 @@ target_link_libraries(xmllite
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/xmllite.def
|
${CMAKE_CURRENT_BINARY_DIR}/xmllite.def
|
||||||
wine)
|
wine)
|
||||||
|
|
||||||
add_dependencies(xmllite xmllite_def psdk)
|
add_importlibs(xmllite msvcrt kernel32 ntdll)
|
||||||
|
|
||||||
|
add_dependencies(xmllite xmllite_def psdk buildno_header)
|
||||||
|
|
85
gcc.cmake
85
gcc.cmake
|
@ -53,44 +53,49 @@ macro(set_subsystem MODULE SUBSYSTEM)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(add_importlibs MODULE)
|
macro(add_importlibs MODULE)
|
||||||
FOREACH(LIB ${ARGN})
|
foreach(LIB ${ARGN})
|
||||||
target_link_libraries(${MODULE} ${LIB}.a)
|
target_link_libraries(${MODULE} ${LIB}.a)
|
||||||
ENDFOREACH()
|
endforeach()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(set_module_type MODULE TYPE)
|
macro(set_module_type MODULE TYPE)
|
||||||
|
|
||||||
add_dependencies(${MODULE} builno_header psdk)
|
add_dependencies(${MODULE} psdk buildno_header)
|
||||||
|
|
||||||
if(${TYPE} MATCHES nativecui)
|
if(${TYPE} MATCHES nativecui)
|
||||||
set_subsystem(${MODULE} native)
|
set_subsystem(${MODULE} native)
|
||||||
set_entrypoint(${MODULE} NtProcessStartup@4)
|
set_entrypoint(${MODULE} NtProcessStartup@4)
|
||||||
endif()
|
endif()
|
||||||
if(${TYPE} MATCHES win32gui)
|
if(${TYPE} MATCHES win32gui)
|
||||||
set_subsystem(${MODULE} windows)
|
set_subsystem(${MODULE} windows)
|
||||||
set_entrypoint(${MODULE} WinMainCRTStartup)
|
set_entrypoint(${MODULE} WinMainCRTStartup)
|
||||||
endif()
|
if(NOT IS_UNICODE)
|
||||||
if(${TYPE} MATCHES win32cui)
|
target_link_libraries(${MODULE} mingw_main)
|
||||||
set_subsystem(${MODULE} console)
|
else()
|
||||||
set_entrypoint(${MODULE} mainCRTStartup)
|
target_link_libraries(${MODULE} mingw_wmain)
|
||||||
endif()
|
endif(NOT IS_UNICODE)
|
||||||
if(${TYPE} MATCHES win32dll)
|
target_link_libraries(${MODULE} mingw_common)
|
||||||
target_link_libraries(${MODULE} mingw_dllmain mingw_common)
|
endif()
|
||||||
set_entrypoint(${MODULE} DllMain@12)
|
if(${TYPE} MATCHES win32cui)
|
||||||
endif()
|
set_subsystem(${MODULE} console)
|
||||||
|
set_entrypoint(${MODULE} mainCRTStartup)
|
||||||
|
if(NOT IS_UNICODE)
|
||||||
|
target_link_libraries(${MODULE} mingw_main)
|
||||||
|
else()
|
||||||
|
target_link_libraries(${MODULE} mingw_wmain)
|
||||||
|
endif(NOT IS_UNICODE)
|
||||||
|
target_link_libraries(${MODULE} mingw_common)
|
||||||
|
endif()
|
||||||
|
if(${TYPE} MATCHES win32dll)
|
||||||
|
set_entrypoint(${MODULE} DllMain@12)
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
macro(set_unicode MODULE STATE)
|
macro(set_unicode)
|
||||||
if(${STATE} MATCHES yes)
|
add_definitions(-DUNICODE -D_UNICODE)
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
set(IS_UNICODE 1)
|
||||||
target_link_libraries(${MODULE} mingw_wmain)
|
|
||||||
else()
|
|
||||||
target_link_libraries(${MODULE} mingw_main)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
target_link_libraries(${MODULE} mingw_common)
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# Workaround lack of mingw RC support in cmake
|
# Workaround lack of mingw RC support in cmake
|
||||||
|
@ -106,20 +111,18 @@ macro(set_rc_compiler)
|
||||||
set(result_incs "-I${arg} ${result_incs}")
|
set(result_incs "-I${arg} ${result_incs}")
|
||||||
endforeach(arg ${includes})
|
endforeach(arg ${includes})
|
||||||
|
|
||||||
SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${result_defs} ${result_incs} -i <SOURCE> -O coff -o <OBJECT>")
|
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> ${result_defs} ${result_incs} -i <SOURCE> -O coff -o <OBJECT>")
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
#typelib support
|
#typelib support
|
||||||
macro(ADD_TYPELIB TARGET)
|
macro(ADD_TYPELIB TARGET)
|
||||||
FOREACH(SOURCE ${ARGN})
|
foreach(SOURCE ${ARGN})
|
||||||
GET_FILENAME_COMPONENT(FILE ${SOURCE} NAME_WE)
|
get_filename_component(FILE ${SOURCE} NAME_WE)
|
||||||
SET(OBJECT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}.tlb)
|
set(OBJECT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}.tlb)
|
||||||
ADD_CUSTOM_COMMAND(
|
add_custom_command(OUTPUT ${OBJECT}
|
||||||
OUTPUT ${OBJECT}
|
COMMAND native-widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -t -T ${OBJECT} ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE}
|
||||||
COMMAND native-widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -t -T ${OBJECT} ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE}
|
DEPENDS native-widl)
|
||||||
DEPENDS native-widl
|
list(APPEND OBJECTS ${OBJECT})
|
||||||
)
|
endforeach()
|
||||||
LIST(APPEND OBJECTS ${OBJECT})
|
add_custom_target(${TARGET} ALL DEPENDS ${OBJECTS})
|
||||||
ENDFOREACH()
|
endmacro()
|
||||||
ADD_CUSTOM_TARGET(${TARGET} ALL DEPENDS ${OBJECTS})
|
|
||||||
ENDMACRO()
|
|
||||||
|
|
BIN
importlibs/libcrypt32.a
Normal file
BIN
importlibs/libcrypt32.a
Normal file
Binary file not shown.
56
msc.cmake
56
msc.cmake
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86")
|
||||||
add_definitions(-D__i386__)
|
add_definitions(-D__i386__)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-Dinline=__inline)
|
add_definitions(-Dinline=__inline)
|
||||||
|
@ -33,34 +33,32 @@ macro(set_subsystem MODULE SUBSYSTEM)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(add_importlibs MODULE)
|
macro(add_importlibs MODULE)
|
||||||
FOREACH(LIB ${ARGN})
|
foreach(LIB ${ARGN})
|
||||||
target_link_libraries(${MODULE} ${LIB}.LIB)
|
target_link_libraries(${MODULE} ${LIB}.LIB)
|
||||||
ENDFOREACH()
|
endforeach()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(set_module_type MODULE TYPE)
|
macro(set_module_type MODULE TYPE)
|
||||||
if(${TYPE} MATCHES nativecui)
|
if(${TYPE} MATCHES nativecui)
|
||||||
set_subsystem(${MODULE} native)
|
set_subsystem(${MODULE} native)
|
||||||
add_importlibs(${MODULE} ntdll)
|
add_importlibs(${MODULE} ntdll)
|
||||||
endif()
|
endif()
|
||||||
if (${TYPE} MATCHES win32gui)
|
if (${TYPE} MATCHES win32gui)
|
||||||
set_subsystem(${MODULE} windows)
|
set_subsystem(${MODULE} windows)
|
||||||
endif ()
|
endif ()
|
||||||
if (${TYPE} MATCHES win32cui)
|
if (${TYPE} MATCHES win32cui)
|
||||||
set_subsystem(${MODULE} console)
|
set_subsystem(${MODULE} console)
|
||||||
endif ()
|
endif ()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(set_unicode MODULE STATE)
|
macro(set_unicode)
|
||||||
if(${STATE} MATCHES yes)
|
add_definitions(-DUNICODE -D_UNICODE)
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
|
||||||
endif()
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")
|
set(CMAKE_C_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")
|
||||||
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")
|
set(CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")
|
||||||
|
|
||||||
macro(set_rc_compiler)
|
macro(set_rc_compiler)
|
||||||
# dummy, this workaround is only needed in mingw due to lack of RC support in cmake
|
# dummy, this workaround is only needed in mingw due to lack of RC support in cmake
|
||||||
|
@ -68,14 +66,12 @@ endmacro()
|
||||||
|
|
||||||
#typelib support
|
#typelib support
|
||||||
macro(ADD_TYPELIB TARGET)
|
macro(ADD_TYPELIB TARGET)
|
||||||
FOREACH(SOURCE ${ARGN})
|
foreach(SOURCE ${ARGN})
|
||||||
GET_FILENAME_COMPONENT(FILE ${SOURCE} NAME_WE)
|
get_filename_component(FILE ${SOURCE} NAME_WE)
|
||||||
SET(OBJECT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}.tlb)
|
set(OBJECT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}.tlb)
|
||||||
ADD_CUSTOM_COMMAND(
|
add_custom_command(OUTPUT ${OBJECT}
|
||||||
OUTPUT ${OBJECT}
|
COMMAND midl /I ${REACTOS_SOURCE_DIR}/include/dxsdk /I . /I ${REACTOS_SOURCE_DIR}/include /I ${REACTOS_SOURCE_DIR}/include/psdk /win32 /tlb ${OBJECT} ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE})
|
||||||
COMMAND midl /I ${REACTOS_SOURCE_DIR}/include/dxsdk /I . /I ${REACTOS_SOURCE_DIR}/include /I ${REACTOS_SOURCE_DIR}/include/psdk /win32 /tlb ${OBJECT} ${CMAKE_CURRENT_SOURCE_DIR}/${SOURCE}
|
list(APPEND OBJECTS ${OBJECT})
|
||||||
)
|
endforeach()
|
||||||
LIST(APPEND OBJECTS ${OBJECT})
|
add_custom_target(${TARGET} ALL DEPENDS ${OBJECTS})
|
||||||
ENDFOREACH()
|
endmacro()
|
||||||
ADD_CUSTOM_TARGET(${TARGET} ALL DEPENDS ${OBJECTS})
|
|
||||||
ENDMACRO()
|
|
Loading…
Add table
Add a link
Reference in a new issue