mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
[CMAKE]
- Add compstui, credui, crtdll, crypt32, cryptdll and dbghelp to build. svn path=/branches/cmake-bringup/; revision=48596
This commit is contained in:
parent
fe1a81a83b
commit
e74bc8316b
|
@ -12,6 +12,12 @@ add_subdirectory(cabinet)
|
|||
add_subdirectory(cards)
|
||||
add_subdirectory(cfgmgr32)
|
||||
add_subdirectory(clusapi)
|
||||
add_subdirectory(compstui)
|
||||
add_subdirectory(credui)
|
||||
add_subdirectory(crtdll)
|
||||
add_subdirectory(crypt32)
|
||||
add_subdirectory(cryptdll)
|
||||
add_subdirectory(dbghelp)
|
||||
add_subdirectory(gdi32)
|
||||
add_subdirectory(kernel32)
|
||||
add_subdirectory(msvcrt)
|
||||
|
|
19
dll/win32/compstui/CMakeLists.txt
Normal file
19
dll/win32/compstui/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(compstui ${CMAKE_CURRENT_SOURCE_DIR}/compstui.spec ${CMAKE_CURRENT_BINARY_DIR}/compstui.def)
|
||||
|
||||
add_library(compstui SHARED compstui_main.c)
|
||||
|
||||
set_target_properties(compstui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(compstui
|
||||
${CMAKE_CURRENT_BINARY_DIR}/compstui.def
|
||||
wine
|
||||
mingw_common)
|
||||
|
||||
add_dependencies(compstui compstui_def psdk)
|
22
dll/win32/credui/CMakeLists.txt
Normal file
22
dll/win32/credui/CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(credui ${CMAKE_CURRENT_SOURCE_DIR}/credui.spec ${CMAKE_CURRENT_BINARY_DIR}/credui.def)
|
||||
|
||||
add_library(credui SHARED credui_main.c credui.rc)
|
||||
|
||||
set_target_properties(credui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(credui
|
||||
${CMAKE_CURRENT_BINARY_DIR}/credui.def
|
||||
wine
|
||||
mingw_common
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
|
||||
-lcomctl32)
|
||||
|
||||
add_dependencies(credui credui_def psdk)
|
32
dll/win32/crtdll/CMakeLists.txt
Normal file
32
dll/win32/crtdll/CMakeLists.txt
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_definitions(-DUSE_MSVCRT_PREFIX)
|
||||
add_definitions(-D_MSVCRT_LIB_)
|
||||
add_definitions(-D_MSVCRT_)
|
||||
add_definitions(-DCRTDLL)
|
||||
add_definitions(-D_CTYPE_DISABLE_MACROS)
|
||||
add_definitions(-D_NO_INLINING)
|
||||
add_definitions(-D__MINGW_IMPORT="")
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
||||
|
||||
spec2def(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/crtdll.spec ${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
|
||||
|
||||
list(APPEND SOURCE dllmain.c crtdll.rc)
|
||||
|
||||
add_library(crtdll SHARED
|
||||
${CMAKE_CURRENT_BINARY_DIR}/crtdll_precomp.h.gch
|
||||
${SOURCE})
|
||||
|
||||
set_target_properties(crtdll PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(crtdll
|
||||
${CMAKE_CURRENT_BINARY_DIR}/crtdll.def
|
||||
wine
|
||||
crt
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
|
||||
|
||||
add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
||||
add_dependencies(crtdll crtdll_def psdk)
|
55
dll/win32/crypt32/CMakeLists.txt
Normal file
55
dll/win32/crypt32/CMakeLists.txt
Normal file
|
@ -0,0 +1,55 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
add_definitions(-D_WINE)
|
||||
|
||||
remove_definitions(-D_WIN32_WINNT=0x502)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(crypt32 ${CMAKE_CURRENT_SOURCE_DIR}/crypt32.spec ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
|
||||
|
||||
add_library(crypt32 SHARED
|
||||
base64.c
|
||||
cert.c
|
||||
chain.c
|
||||
collectionstore.c
|
||||
context.c
|
||||
crl.c
|
||||
ctl.c
|
||||
decode.c
|
||||
encode.c
|
||||
filestore.c
|
||||
main.c
|
||||
message.c
|
||||
msg.c
|
||||
object.c
|
||||
oid.c
|
||||
proplist.c
|
||||
protectdata.c
|
||||
provstore.c
|
||||
regstore.c
|
||||
rootstore.c
|
||||
serialize.c
|
||||
sip.c
|
||||
store.c
|
||||
str.c
|
||||
crypt32.rc
|
||||
version.rc)
|
||||
|
||||
set_target_properties(crypt32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(crypt32
|
||||
${CMAKE_CURRENT_BINARY_DIR}/crypt32.def
|
||||
wine
|
||||
pseh
|
||||
mingw_common
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/msvcrt/libmsvcrt.a)
|
||||
|
||||
add_dependencies(crypt32 crypt32_def psdk)
|
19
dll/win32/cryptdll/CMakeLists.txt
Normal file
19
dll/win32/cryptdll/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(cryptdll ${CMAKE_CURRENT_SOURCE_DIR}/cryptdll.spec ${CMAKE_CURRENT_BINARY_DIR}/cryptdll.def)
|
||||
|
||||
add_library(cryptdll SHARED cryptdll.c)
|
||||
|
||||
set_target_properties(cryptdll PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(cryptdll
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cryptdll.def
|
||||
wine
|
||||
mingw_common)
|
||||
|
||||
add_dependencies(cryptdll cryptdll_def psdk)
|
56
dll/win32/dbghelp/CMakeLists.txt
Normal file
56
dll/win32/dbghelp/CMakeLists.txt
Normal file
|
@ -0,0 +1,56 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES> -L${REACTOS_BINARY_DIR}/lib/3rdparty/mingw")
|
||||
|
||||
add_definitions(-D__WINESRC__)
|
||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
||||
add_definitions(-D_WINE)
|
||||
|
||||
add_definitions(-DHAVE_REGEX_H)
|
||||
add_definitions(-D_IMAGEHLP_SOURCE_)
|
||||
|
||||
if(ARCH MATCHES amd64)
|
||||
add_definitions(-DUNW_FLAG_NHANDLER=0 -DUNW_FLAG_EHANDLER=1 -DUNW_FLAG_UHANDLER=2 -DUNW_FLAG_CHAININFO=3)
|
||||
endif(ARCH MATCHES amd64)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
spec2def(dbghelp ${CMAKE_CURRENT_SOURCE_DIR}/dbghelp.spec ${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def)
|
||||
|
||||
add_library(dbghelp SHARED
|
||||
coff.c
|
||||
cpu_i386.c
|
||||
cpu_ppc.c
|
||||
cpu_x86_64.c
|
||||
crc32.c
|
||||
dbghelp.c
|
||||
dwarf.c
|
||||
elf_module.c
|
||||
image.c
|
||||
macho_module.c
|
||||
minidump.c
|
||||
module.c
|
||||
msc.c
|
||||
path.c
|
||||
pe_module.c
|
||||
regex.c
|
||||
rosstubs.c
|
||||
source.c
|
||||
stabs.c
|
||||
stack.c
|
||||
storage.c
|
||||
symbol.c
|
||||
type.c
|
||||
version.rc)
|
||||
|
||||
set_target_properties(dbghelp PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
|
||||
|
||||
target_link_libraries(dbghelp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dbghelp.def
|
||||
wine
|
||||
mingw_common
|
||||
-lpsapi
|
||||
-lversion
|
||||
pseh
|
||||
${REACTOS_SOURCE_DIR}/dll/win32/msvcrt/libmsvcrt.a)
|
||||
|
||||
add_dependencies(dbghelp dbghelp_def psdk)
|
Loading…
Reference in a new issue