From 466fc93fa7bb25cdfc5141e84fd30135d6aa8f9c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 1 Oct 2010 21:33:07 +0000 Subject: [PATCH] [CMAKE] - Make static libs out of the idl files. - Improve wshirda, wshtcpip and wsock32. - Include bmfd into build. svn path=/branches/cmake-bringup/; revision=48956 --- dll/win32/wshirda/CMakeLists.txt | 2 ++ dll/win32/wshtcpip/CMakeLists.txt | 5 +++-- dll/win32/wsock32/CMakeLists.txt | 2 ++ drivers/video/font/CMakeLists.txt | 1 + include/reactos/idl/CMakeLists.txt | 4 ++-- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dll/win32/wshirda/CMakeLists.txt b/dll/win32/wshirda/CMakeLists.txt index aa9bb05235f..adfddd74659 100644 --- a/dll/win32/wshirda/CMakeLists.txt +++ b/dll/win32/wshirda/CMakeLists.txt @@ -1,4 +1,6 @@ +add_definitions(-DUNICODE -D_UNICODE) + spec2def(wshirda ${CMAKE_CURRENT_SOURCE_DIR}/wshirda.spec ${CMAKE_CURRENT_BINARY_DIR}/wshirda.def) add_library(wshirda SHARED wshirda.c wshirda.rc) diff --git a/dll/win32/wshtcpip/CMakeLists.txt b/dll/win32/wshtcpip/CMakeLists.txt index 4aded70f6b0..84688a8d0c5 100644 --- a/dll/win32/wshtcpip/CMakeLists.txt +++ b/dll/win32/wshtcpip/CMakeLists.txt @@ -1,15 +1,16 @@ +add_definitions(-DUNICODE -D_UNICODE) include_directories(${REACTOS_SOURCE_DIR}/lib/tdilib) spec2def(wshtcpip ${CMAKE_CURRENT_SOURCE_DIR}/wshtcpip.spec ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def) add_library(wshtcpip SHARED wshtcpip.c wshtcpip.rc) -set_module_type(wshtcpip win32dll) +set_target_properties(wshtcpip PROPERTIES LINK_FLAGS "-Wl,-entry,0") target_link_libraries(wshtcpip ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def tdilib) -add_importlibs(wshtcpip ntdll ws2_32) +add_importlibs(wshtcpip kernel32 ntdll ws2_32) add_dependencies(wshtcpip wshtcpip_def psdk) diff --git a/dll/win32/wsock32/CMakeLists.txt b/dll/win32/wsock32/CMakeLists.txt index 3e05be8b574..1c65c3f0471 100644 --- a/dll/win32/wsock32/CMakeLists.txt +++ b/dll/win32/wsock32/CMakeLists.txt @@ -1,4 +1,6 @@ +add_definitions(-DUNICODE -D_UNICODE) + add_library(wsock32 SHARED stubs.c wsock32.rc) set_module_type(wsock32 win32dll) diff --git a/drivers/video/font/CMakeLists.txt b/drivers/video/font/CMakeLists.txt index e34ffbfc0b1..0b35f380aaf 100644 --- a/drivers/video/font/CMakeLists.txt +++ b/drivers/video/font/CMakeLists.txt @@ -1,2 +1,3 @@ +add_subdirectory(bmfd) add_subdirectory(ftfd) diff --git a/include/reactos/idl/CMakeLists.txt b/include/reactos/idl/CMakeLists.txt index 5d5bc38e2d2..c226ccb50d3 100644 --- a/include/reactos/idl/CMakeLists.txt +++ b/include/reactos/idl/CMakeLists.txt @@ -29,7 +29,7 @@ MACRO (MACRO_IDL_FILES) ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_s.h ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_s.c PROPERTIES GENERATED TRUE ) - add_custom_target(${FILE}_server ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_s.h ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_s.c) + add_library(${FILE}_server ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_s.c) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.h ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.c @@ -40,7 +40,7 @@ MACRO (MACRO_IDL_FILES) ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.h ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.c PROPERTIES GENERATED TRUE ) - add_custom_target(${FILE}_client ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.h ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.c) + add_library(${FILE}_client ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_c.c) ENDFOREACH(_in_FILE ${ARGN})