mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CMAKE]
- More work on import lib targets and improving modules. svn path=/branches/cmake-bringup/; revision=49914
This commit is contained in:
parent
d8b2780e7e
commit
11cdb20f02
20 changed files with 84 additions and 59 deletions
|
@ -1,11 +1,13 @@
|
|||
|
||||
spec2def(ksproxy.ax ksproxy.spec)
|
||||
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
|
||||
add_definitions(
|
||||
add_definitions(
|
||||
-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
|
||||
-DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
|
||||
|
||||
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
|
||||
|
||||
add_library(ksproxy SHARED
|
||||
allocator.cpp
|
||||
basicaudio.cpp
|
||||
|
@ -36,14 +38,11 @@ else()
|
|||
#set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
|
||||
endif(MSVC)
|
||||
|
||||
|
||||
target_link_libraries(ksproxy
|
||||
stlport -lsupc++ -lgcc
|
||||
stlport -lsupc++ -lgcc -lmingw32 -lcoldname
|
||||
strmiids)
|
||||
|
||||
add_importlibs(ksproxy
|
||||
mingw32
|
||||
coldname
|
||||
advapi32
|
||||
ole32
|
||||
setupapi
|
||||
|
@ -54,4 +53,4 @@ add_importlibs(ksproxy
|
|||
|
||||
add_dependencies(ksproxy psdk buildno_header)
|
||||
|
||||
add_cab_target(ksproxy 1)
|
||||
add_cab_target(ksproxy 1)
|
||||
|
|
|
@ -45,10 +45,6 @@ list(APPEND SOURCE
|
|||
advapi32.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/advapi32.def)
|
||||
|
||||
if(NOT MSVC)
|
||||
set_source_files_properties(advapi32.def PROPERTIES EXTERNAL_OBJECT TRUE)
|
||||
endif()
|
||||
|
||||
add_library(advapi32 SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
|
||||
${SOURCE})
|
||||
|
@ -66,5 +62,4 @@ add_importlibs(advapi32 rpcrt4 kernel32 ntdll msvcrt)
|
|||
|
||||
add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
|
||||
add_cab_target(advapi32 1)
|
||||
add_importlib_target(advapi32.spec libntdll)
|
||||
|
||||
add_importlib_target(advapi32.spec)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
set_unicode()
|
||||
set_cpp()
|
||||
|
||||
|
@ -13,6 +14,7 @@ include_directories(
|
|||
${REACTOS_SOURCE_DIR}/lib/atl)
|
||||
|
||||
set_rc_compiler()
|
||||
|
||||
spec2def(browseui.dll browseui.spec)
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
@ -45,11 +47,11 @@ set_module_type(browseui win32dll)
|
|||
target_link_libraries(browseui
|
||||
atlnew
|
||||
uuid
|
||||
wine)
|
||||
wine
|
||||
-lmingw32
|
||||
-lcoldname)
|
||||
|
||||
add_importlibs(browseui
|
||||
mingw32
|
||||
coldname
|
||||
shlwapi
|
||||
shell32
|
||||
comctl32
|
||||
|
|
|
@ -20,5 +20,7 @@ set_entrypoint(cabinet 0)
|
|||
target_link_libraries(cabinet wine)
|
||||
|
||||
add_importlibs(cabinet kernel32 ntdll)
|
||||
add_importlib_target(cabinet.spec)
|
||||
|
||||
add_dependencies(cabinet psdk buildno_header)
|
||||
add_cab_target(cabinet 1)
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
|
||||
add_definitions(-D__WINESRC__)
|
||||
add_definitions(-D_WINE)
|
||||
add_definitions(
|
||||
-D__WINESRC__
|
||||
-D_WINE)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
set_rc_compiler()
|
||||
|
||||
spec2def(cryptui.dll cryptui.spec)
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
@ -33,5 +36,6 @@ add_importlibs(cryptui
|
|||
kernel32
|
||||
ntdll)
|
||||
|
||||
add_importlib_target(cryptui.spec)
|
||||
|
||||
add_cab_target(cryptui 1)
|
||||
|
|
|
@ -54,4 +54,6 @@ target_link_libraries(dbghelp
|
|||
|
||||
add_importlibs(dbghelp psapi version msvcrt kernel32 ntdll)
|
||||
|
||||
add_importlib_target(dbghelp.spec)
|
||||
|
||||
add_cab_target(dbghelp 1)
|
||||
|
|
|
@ -28,9 +28,9 @@ add_library(dhcpcsvc SHARED
|
|||
|
||||
set_module_type(dhcpcsvc win32dll)
|
||||
|
||||
|
||||
|
||||
add_importlibs(dhcpcsvc ws2_32 iphlpapi advapi32 msvcrt kernel32 ntdll)
|
||||
add_importlib_target(dhcpcsvc.spec)
|
||||
|
||||
add_pch(dhcpcsvc ${CMAKE_CURRENT_SOURCE_DIR}/include/rosdhcp.h ${SOURCE})
|
||||
|
||||
add_cab_target(dhcpcsvc 1)
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
|
||||
add_definitions(-D__WINESRC__)
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
add_definitions(
|
||||
-D__WINESRC__
|
||||
-D_DLL -D__USE_CRTIMP)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
set_rc_compiler()
|
||||
|
||||
spec2def(gdiplus.dll gdiplus.spec)
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
@ -26,9 +29,7 @@ add_library(gdiplus SHARED ${SOURCE})
|
|||
|
||||
set_module_type(gdiplus win32dll)
|
||||
|
||||
target_link_libraries(gdiplus
|
||||
uuid
|
||||
wine)
|
||||
target_link_libraries(gdiplus uuid wine)
|
||||
|
||||
add_importlibs(gdiplus
|
||||
msvcrt
|
||||
|
@ -41,9 +42,10 @@ add_importlibs(gdiplus
|
|||
kernel32
|
||||
ntdll)
|
||||
|
||||
add_importlib_target(gdiplus.spec)
|
||||
|
||||
if(ARCH MATCHES amd64)
|
||||
target_link_libraries(gdiplus crt)
|
||||
endif(ARCH MATCHES amd64)
|
||||
|
||||
|
||||
add_cab_target(gdiplus 1)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
add_definitions(-D_IMAGEHLP_SOURCE_)
|
||||
add_definitions(
|
||||
-D_DLL -D__USE_CRTIMP
|
||||
-D_IMAGEHLP_SOURCE_)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
|
@ -23,6 +24,8 @@ set_module_type(imagehlp win32dll)
|
|||
target_link_libraries(imagehlp wine)
|
||||
|
||||
add_importlibs(imagehlp dbghelp msvcrt kernel32 ntdll)
|
||||
add_importlib_target(imagehlp.spec)
|
||||
|
||||
add_pch(imagehlp ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
|
||||
add_cab_target(imagehlp 1)
|
||||
|
|
|
@ -10,7 +10,7 @@ include_directories(
|
|||
|
||||
spec2def(iphlpapi.dll iphlpapi.spec)
|
||||
|
||||
add_library(iphlpapi SHARED
|
||||
list(APPEND SOURCE
|
||||
dhcp_reactos.c
|
||||
ifenum_reactos.c
|
||||
ipstats_reactos.c
|
||||
|
@ -22,11 +22,11 @@ add_library(iphlpapi SHARED
|
|||
iphlpapi.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/iphlpapi.def)
|
||||
|
||||
add_library(iphlpapi SHARED ${SOURCE})
|
||||
|
||||
set_module_type(iphlpapi win32dll)
|
||||
|
||||
target_link_libraries(iphlpapi
|
||||
wine
|
||||
tdilib)
|
||||
target_link_libraries(iphlpapi wine tdilib)
|
||||
|
||||
add_importlibs(iphlpapi dhcpcsvc advapi32 ws2_32 msvcrt kernel32 ntdll)
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(mlang.dll mlang.spec)
|
||||
|
@ -15,9 +17,7 @@ add_library(mlang SHARED ${SOURCE})
|
|||
|
||||
set_entrypoint(mlang 0)
|
||||
|
||||
target_link_libraries(mlang
|
||||
uuid
|
||||
wine)
|
||||
target_link_libraries(mlang uuid wine)
|
||||
|
||||
add_importlibs(mlang
|
||||
ole32
|
||||
|
@ -28,5 +28,7 @@ add_importlibs(mlang
|
|||
kernel32
|
||||
ntdll)
|
||||
|
||||
add_importlib_target(mlang.spec)
|
||||
|
||||
add_dependencies(mlang psdk buildno_header)
|
||||
add_cab_target(mlang 1)
|
||||
add_cab_target(mlang 1)
|
||||
|
|
|
@ -4,13 +4,16 @@ include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|||
|
||||
spec2def(mscoree.dll mscoree.spec)
|
||||
|
||||
add_library(mscoree SHARED corruntimehost.c mscoree_main.c ${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
|
||||
list(APPEND SOURCE
|
||||
corruntimehost.c
|
||||
mscoree_main.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
|
||||
|
||||
add_library(mscoree SHARED ${SOURCE})
|
||||
|
||||
set_module_type(mscoree win32dll)
|
||||
|
||||
target_link_libraries(mscoree
|
||||
wine
|
||||
uuid)
|
||||
target_link_libraries(mscoree wine uuid)
|
||||
|
||||
add_importlibs(mscoree advapi32 shell32 msvcrt kernel32 ntdll)
|
||||
|
||||
|
|
|
@ -6,7 +6,11 @@ add_definitions(-DCRTDLL)
|
|||
|
||||
spec2def(msvcrt40.dll msvcrt40.spec)
|
||||
|
||||
add_library(msvcrt40 SHARED msvcrt40.c ${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def)
|
||||
list(APPEND SOURCE
|
||||
msvcrt40.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def)
|
||||
|
||||
add_library(msvcrt40 SHARED ${SOURCE})
|
||||
|
||||
set_module_type(msvcrt40 win32dll)
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@ target_link_libraries(psapi
|
|||
${PSEH_LIB})
|
||||
|
||||
add_importlibs(psapi msvcrt kernel32 ntdll)
|
||||
add_importlib_target(psapi.spec)
|
||||
|
||||
add_pch(psapi ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
|
||||
add_cab_target(psapi 1)
|
||||
|
|
|
@ -5,6 +5,8 @@ add_definitions(
|
|||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(riched20.dll riched20.spec)
|
||||
|
||||
add_library(riched20 SHARED
|
||||
caret.c
|
||||
clipboard.c
|
||||
|
@ -26,17 +28,11 @@ add_library(riched20 SHARED
|
|||
wrap.c
|
||||
writer.c
|
||||
version.rc
|
||||
riched20.def)
|
||||
|
||||
if(NOT MSVC)
|
||||
set_source_files_properties(riched20.def PROPERTIES EXTERNAL_OBJECT TRUE)
|
||||
endif()
|
||||
${CMAKE_CURRENT_BINARY_DIR}/riched20.def)
|
||||
|
||||
set_module_type(riched20 win32dll)
|
||||
|
||||
target_link_libraries(riched20
|
||||
wine
|
||||
uuid)
|
||||
target_link_libraries(riched20 wine uuid)
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(riched20 PROPERTIES COMPILE_FLAGS "/FIwine/typeof.h")
|
||||
|
@ -52,4 +48,6 @@ add_importlibs(riched20
|
|||
kernel32
|
||||
ntdll)
|
||||
|
||||
add_importlib_target(riched20.spec)
|
||||
|
||||
add_cab_target(riched20 1)
|
||||
|
|
|
@ -16,5 +16,6 @@ set_module_type(spoolss win32dll)
|
|||
target_link_libraries(spoolss wine)
|
||||
|
||||
add_importlibs(spoolss winspool msvcrt kernel32 ntdll)
|
||||
add_importlib_target(spoolss.spec)
|
||||
|
||||
add_cab_target(spoolss 1)
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
|
||||
add_library(ufatx SHARED ufatx.rc ufatx.def)
|
||||
spec2def(ufatx.dll ufatx.spec)
|
||||
|
||||
if(NOT MSVC)
|
||||
set_source_files_properties(ufatx.def PROPERTIES EXTERNAL_OBJECT TRUE)
|
||||
endif()
|
||||
add_library(ufatx SHARED
|
||||
ufatx.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/ufatx.def)
|
||||
|
||||
set_entrypoint(ufatx 0)
|
||||
|
||||
target_link_libraries(ufatx vfatxlib)
|
||||
target_link_libraries(ufatx vfatxlib -lgcc)
|
||||
|
||||
add_importlibs(ufatx kernel32 ntdll)
|
||||
add_importlib_target(ufatx.spec)
|
||||
|
||||
add_importlibs(ufatx gcc kernel32 ntdll)
|
||||
add_dependencies(ufatx psdk buildno_header)
|
||||
add_cab_target(ufatx 1)
|
||||
add_cab_target(ufatx 1)
|
||||
|
|
|
@ -19,5 +19,6 @@ set_module_type(usp10 win32dll)
|
|||
target_link_libraries(usp10 wine)
|
||||
|
||||
add_importlibs(usp10 gdi32 msvcrt kernel32 ntdll)
|
||||
add_importlib_target(usp10.spec)
|
||||
|
||||
add_cab_target(usp10 1)
|
||||
|
|
|
@ -41,8 +41,9 @@ add_library(windowscodecs SHARED ${SOURCE})
|
|||
|
||||
set_module_type(windowscodecs win32dll)
|
||||
|
||||
target_link_libraries(windowscodecs wine)
|
||||
target_link_libraries(windowscodecs wine uuid)
|
||||
|
||||
add_importlibs(windowscodecs uuid ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
|
||||
add_importlibs(windowscodecs ole32 shlwapi advapi32 msvcrt kernel32 ntdll)
|
||||
add_importlib_target(windowscodecs.spec)
|
||||
|
||||
add_cab_target(windowscodecs 1)
|
||||
|
|
|
@ -9,4 +9,6 @@ add_library(dxgthk SHARED
|
|||
set_module_type(dxgthk kernelmodedriver)
|
||||
add_importlibs(dxgthk win32k)
|
||||
|
||||
add_cab_target(dxgthk 2)
|
||||
add_importlib_target(dxgthk.spec)
|
||||
|
||||
add_cab_target(dxgthk 2)
|
||||
|
|
Loading…
Reference in a new issue