Author: akhaldi
Date: Sat Oct 2 19:08:06 2010
New Revision: 48966
URL:
http://svn.reactos.org/svn/reactos?rev=48966&view=rev
Log:
[CMAKE]
- Introduce the case where entry point is 0.
- Improve some dlls.
Modified:
branches/cmake-bringup/dll/win32/aclui/CMakeLists.txt
branches/cmake-bringup/dll/win32/activeds/CMakeLists.txt
branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt
branches/cmake-bringup/dll/win32/advpack/CMakeLists.txt
branches/cmake-bringup/dll/win32/authz/CMakeLists.txt
branches/cmake-bringup/dll/win32/avicap32/CMakeLists.txt
branches/cmake-bringup/dll/win32/batt/CMakeLists.txt
branches/cmake-bringup/dll/win32/beepmidi/CMakeLists.txt
branches/cmake-bringup/dll/win32/cabinet/CMakeLists.txt
branches/cmake-bringup/dll/win32/cards/CMakeLists.txt
branches/cmake-bringup/gcc.cmake
branches/cmake-bringup/msc.cmake
Modified: branches/cmake-bringup/dll/win32/aclui/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/aclui/C…
==============================================================================
--- branches/cmake-bringup/dll/win32/aclui/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/aclui/CMakeLists.txt [iso-8859-1] Sat Oct 2 19:08:06
2010
@@ -3,28 +3,24 @@
add_definitions(-DSUPPORT_UXTHEME)
-file(GLOB_RECURSE SOURCE *.c)
+list(APPEND SOURCE
+ aclui.c
+ checklist.c
+ guid.c
+ misc.c
+ sidcache.c
+ aclui.rc)
spec2def(aclui ${CMAKE_CURRENT_SOURCE_DIR}/aclui.spec
${CMAKE_CURRENT_BINARY_DIR}/aclui.def)
add_library(aclui SHARED
- ${SOURCE}
- ${CMAKE_CURRENT_SOURCE_DIR}/aclui.rc
- ${CMAKE_CURRENT_BINARY_DIR}/aclui_precomp.h.gch)
+ ${CMAKE_CURRENT_BINARY_DIR}/aclui_precomp.h.gch
+ ${SOURCE})
-set_target_properties(aclui PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(aclui win32dll)
-target_link_libraries(aclui
- ${CMAKE_CURRENT_BINARY_DIR}/aclui.def
- -luser32
- -lgdi32
- -lcomctl32
- -lole32
- -loleaut32
- -ladvapi32
- -luxtheme
- -lkernel32
- -lntdll)
+target_link_libraries(aclui ${CMAKE_CURRENT_BINARY_DIR}/aclui.def)
+add_importlibs(aclui user32 gdi32 comctl32 ole32 oleaut32 advapi32 uxtheme kernel32
ntdll)
add_pch(aclui ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_dependencies(aclui aclui_def psdk buildno_header)
+add_dependencies(aclui aclui_def)
Modified: branches/cmake-bringup/dll/win32/activeds/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/actived…
==============================================================================
--- branches/cmake-bringup/dll/win32/activeds/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/activeds/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,5 +1,3 @@
-
-
add_definitions(-D__WINESRC__)
@@ -9,11 +7,12 @@
add_library(activeds SHARED activeds_main.c)
-set_target_properties(activeds PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(activeds win32dll)
target_link_libraries(activeds
${CMAKE_CURRENT_BINARY_DIR}/activeds.def
- wine
- mingw_common)
+ wine)
-add_dependencies(activeds activeds_def psdk buildno_header)
+add_importlibs(activeds kernel32 ntdll)
+
+add_dependencies(activeds activeds_def)
Modified: branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/advapi3…
==============================================================================
--- branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/advapi32/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,7 +1,6 @@
+set_unicode()
-
-add_definitions(-DUNICODE -D_UNICODE)
add_definitions(-D_ADVAPI32_)
remove_definitions(-D_WIN32_WINNT=0x502)
@@ -9,29 +8,53 @@
include_directories(${REACTOS_BINARY_DIR}/include/reactos/idl)
-file(GLOB_RECURSE SOURCE *.c)
-
-set_source_files_properties(${REACTOS_BINARY_DIR}/include/reactos/idl/svcctl_c.c
- ${REACTOS_BINARY_DIR}/include/reactos/idl/lsa_c.c
- ${REACTOS_BINARY_DIR}/include/reactos/idl/eventlogrpc_c.c
- PROPERTIES GENERATED TRUE)
+list(APPEND SOURCE
+ crypt/crypt.c
+ crypt/crypt_arc4.c
+ crypt/crypt_des.c
+ crypt/crypt_lmhash.c
+ crypt/crypt_md4.c
+ crypt/crypt_md5.c
+ crypt/crypt_sha.c
+ misc/dllmain.c
+ misc/hwprofiles.c
+ misc/logon.c
+ misc/msi.c
+ misc/shutdown.c
+ misc/sysfunc.c
+ misc/trace.c
+ reg/reg.c
+ sec/ac.c
+ sec/audit.c
+ sec/cred.c
+ sec/lsa.c
+ sec/misc.c
+ sec/sec.c
+ sec/sid.c
+ sec/trustee.c
+ service/eventlog.c
+ service/rpc.c
+ service/scm.c
+ service/sctrl.c
+ token/privilege.c
+ token/token.c
+ advapi32_stubs.c
+ advapi32.rc)
add_library(advapi32 SHARED
- ${SOURCE}
- ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.rc
${CMAKE_CURRENT_BINARY_DIR}/advapi32_advapi32.h.gch
- ${REACTOS_BINARY_DIR}/include/reactos/idl/svcctl_c.c
- ${REACTOS_BINARY_DIR}/include/reactos/idl/lsa_c.c
- ${REACTOS_BINARY_DIR}/include/reactos/idl/eventlogrpc_c.c)
+ ${SOURCE})
-set_target_properties(advapi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(advapi32 win32dll)
-target_link_libraries(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
+target_link_libraries(advapi32
+ ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.def
+ svcctl_client
+ lsa_client
+ eventlogrpc_client
wine
- pseh
- rpcrt4
- -lkernel32
- -lntdll)
+ pseh)
+
+add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
add_pch(advapi32 ${CMAKE_CURRENT_SOURCE_DIR}/advapi32.h ${SOURCE})
-add_dependencies(advapi32 svcctl_client lsa_client eventlogrpc_client version)
Modified: branches/cmake-bringup/dll/win32/advpack/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/advpack…
==============================================================================
--- branches/cmake-bringup/dll/win32/advpack/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/advpack/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,25 +1,23 @@
-
-
add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
-file(GLOB_RECURSE SOURCE *.c)
+list(APPEND SOURCE
+ advpack.c
+ files.c
+ install.c
+ reg.c)
spec2def(advpack ${CMAKE_CURRENT_SOURCE_DIR}/advpack.spec
${CMAKE_CURRENT_BINARY_DIR}/advpack.def)
add_library(advpack SHARED ${SOURCE})
-set_target_properties(advpack PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(advpack win32dll)
target_link_libraries(advpack
${CMAKE_CURRENT_BINARY_DIR}/advpack.def
- wine
- mingw_common
- -lole32
- -lsetupapi
- -lversion
- -ladvapi32)
+ wine)
-add_dependencies(advpack advpack_def psdk buildno_header)
+add_importlibs(advpack ole32 setupapi version advapi32 kernel32 ntdll)
+add_dependencies(advpack advpack_def)
Modified: branches/cmake-bringup/dll/win32/authz/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/authz/C…
==============================================================================
--- branches/cmake-bringup/dll/win32/authz/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/authz/CMakeLists.txt [iso-8859-1] Sat Oct 2 19:08:06
2010
@@ -1,24 +1,22 @@
+set_unicode()
-
-add_definitions(-DUNICODE -D_UNICODE)
-
-file(GLOB_RECURSE SOURCE *.c)
+list(APPEND SOURCE
+ authz.c
+ clictx.c
+ resman.c
+ authz.rc)
spec2def(authz ${CMAKE_CURRENT_SOURCE_DIR}/authz.spec
${CMAKE_CURRENT_BINARY_DIR}/authz.def)
add_library(authz SHARED
- ${SOURCE}
- ${CMAKE_CURRENT_SOURCE_DIR}/authz.rc
- ${CMAKE_CURRENT_BINARY_DIR}/authz_precomp.h.gch)
+ ${CMAKE_CURRENT_BINARY_DIR}/authz_precomp.h.gch
+ ${SOURCE})
-set_target_properties(authz PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(authz win32dll)
-target_link_libraries(authz
- ${CMAKE_CURRENT_BINARY_DIR}/authz.def
- -ladvapi32
- -lkernel32
- -lntdll)
+target_link_libraries(authz ${CMAKE_CURRENT_BINARY_DIR}/authz.def)
add_pch(authz ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
-add_dependencies(authz authz_def psdk buildno_header)
+add_importlibs(authz advapi32 kernel32 ntdll)
+add_dependencies(authz authz_def)
Modified: branches/cmake-bringup/dll/win32/avicap32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/avicap3…
==============================================================================
--- branches/cmake-bringup/dll/win32/avicap32/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/avicap32/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,22 +1,15 @@
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
spec2def(avicap32 ${CMAKE_CURRENT_SOURCE_DIR}/avicap32.spec
${CMAKE_CURRENT_BINARY_DIR}/avicap32.def)
-add_library(avicap32 SHARED
- ${CMAKE_CURRENT_SOURCE_DIR}/avicap32.c
- ${CMAKE_CURRENT_SOURCE_DIR}/avicap32.rc)
+add_library(avicap32 SHARED avicap32.c avicap32.rc)
-set_target_properties(avicap32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(avicap32 win32dll)
target_link_libraries(avicap32
${CMAKE_CURRENT_BINARY_DIR}/avicap32.def
- -ladvapi32
- -luser32
- wine
- mingw_common
- -lversion)
+ wine)
-add_dependencies(avicap32 avicap32_def psdk)
+add_importlibs(avicap32 advapi32 user32 version kernel32 ntdll)
+add_dependencies(avicap32 avicap32_def)
Modified: branches/cmake-bringup/dll/win32/batt/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/batt/CM…
==============================================================================
--- branches/cmake-bringup/dll/win32/batt/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/batt/CMakeLists.txt [iso-8859-1] Sat Oct 2 19:08:06
2010
@@ -1,18 +1,13 @@
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
spec2def(batt ${CMAKE_CURRENT_SOURCE_DIR}/batt.spec
${CMAKE_CURRENT_BINARY_DIR}/batt.def)
-add_library(batt SHARED
- ${CMAKE_CURRENT_SOURCE_DIR}/batt.c
- ${CMAKE_CURRENT_SOURCE_DIR}/batt.rc)
+add_library(batt SHARED batt.c batt.rc)
-set_target_properties(batt PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(batt win32dll)
-target_link_libraries(batt
- ${CMAKE_CURRENT_BINARY_DIR}/batt.def
- -lkernel32)
+target_link_libraries(batt ${CMAKE_CURRENT_BINARY_DIR}/batt.def)
-add_dependencies(batt batt_def psdk)
+add_importlibs(batt kernel32)
+add_dependencies(batt batt_def)
Modified: branches/cmake-bringup/dll/win32/beepmidi/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/beepmid…
==============================================================================
--- branches/cmake-bringup/dll/win32/beepmidi/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/beepmidi/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,18 +1,13 @@
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
spec2def(beepmidi ${CMAKE_CURRENT_SOURCE_DIR}/beepmidi.spec
${CMAKE_CURRENT_BINARY_DIR}/beepmidi.def)
add_library(beepmidi SHARED beepmidi.c)
-set_target_properties(beepmidi PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(beepmidi 0)
-target_link_libraries(beepmidi
- ${CMAKE_CURRENT_BINARY_DIR}/beepmidi.def
- -lwinmm
- -lkernel32
- -lntdll)
+target_link_libraries(beepmidi ${CMAKE_CURRENT_BINARY_DIR}/beepmidi.def)
+add_importlibs(beepmidi winmm kernel32 ntdll)
add_dependencies(beepmidi beepmidi_def psdk)
Modified: branches/cmake-bringup/dll/win32/cabinet/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/cabinet…
==============================================================================
--- branches/cmake-bringup/dll/win32/cabinet/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/cabinet/CMakeLists.txt [iso-8859-1] Sat Oct 2
19:08:06 2010
@@ -1,5 +1,3 @@
-
-
add_definitions(-D__WINESRC__)
@@ -7,17 +5,19 @@
spec2def(cabinet ${CMAKE_CURRENT_SOURCE_DIR}/cabinet.spec
${CMAKE_CURRENT_BINARY_DIR}/cabinet.def)
-file(GLOB_RECURSE SOURCE *.c)
+list(APPEND SOURCE
+ cabinet_main.c
+ fci.c
+ fdi.c
+ cabinet.rc)
-add_library(cabinet SHARED
- ${SOURCE}
- ${CMAKE_CURRENT_SOURCE_DIR}/cabinet.rc)
+add_library(cabinet SHARED ${SOURCE})
-set_target_properties(cabinet PROPERTIES LINK_FLAGS "-Wl,-entry,0")
+set_entrypoint(cabinet 0)
target_link_libraries(cabinet
${CMAKE_CURRENT_BINARY_DIR}/cabinet.def
- wine
- mingw_common)
+ wine)
-add_dependencies(cabinet cabinet_def psdk)
+add_importlibs(cabinet kernel32 ntdll)
+add_dependencies(cabinet cabinet_def psdk buildno_header)
Modified: branches/cmake-bringup/dll/win32/cards/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/cards/C…
==============================================================================
--- branches/cmake-bringup/dll/win32/cards/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/dll/win32/cards/CMakeLists.txt [iso-8859-1] Sat Oct 2 19:08:06
2010
@@ -1,20 +1,16 @@
-
-
-add_definitions(-DUNICODE -D_UNICODE)
+set_unicode()
# Possible definitions: CARDSTYLE_DEFAULT or CARDSTYLE_BAVARIAN
add_definitions(-DCARDSTYLE_DEFAULT)
spec2def(cards ${CMAKE_CURRENT_SOURCE_DIR}/cards.spec
${CMAKE_CURRENT_BINARY_DIR}/cards.def)
-add_library(cards SHARED ${CMAKE_CURRENT_SOURCE_DIR}/cards.c
${CMAKE_CURRENT_SOURCE_DIR}/cards.rc)
+add_library(cards SHARED cards.c cards.rc)
-set_target_properties(cards PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+set_module_type(cards win32dll)
-target_link_libraries(cards
- ${CMAKE_CURRENT_BINARY_DIR}/cards.def
- -luser32
- -lgdi32)
+target_link_libraries(cards ${CMAKE_CURRENT_BINARY_DIR}/cards.def)
-add_dependencies(cards cards_def psdk)
+add_importlibs(cards user32 gdi32)
+add_dependencies(cards cards_def)
Modified: branches/cmake-bringup/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/gcc.cmake?rev=489…
==============================================================================
--- branches/cmake-bringup/gcc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/gcc.cmake [iso-8859-1] Sat Oct 2 19:08:06 2010
@@ -35,7 +35,11 @@
# Macros
macro(set_entrypoint MODULE ENTRYPOINT)
+ if(${ENTRYPOINT} STREQUAL "0")
+ set(NEW_LINKER_FLAGS "-Wl,-entry,0")
+ else()
set(NEW_LINKER_FLAGS "-Wl,-entry,_${ENTRYPOINT}")
+ endif()
get_target_property(LINKER_FLAGS ${MODULE} LINK_FLAGS)
if(LINKER_FLAGS)
set(NEW_LINKER_FLAGS "${LINKER_FLAGS} ${NEW_LINKER_FLAGS}")
Modified: branches/cmake-bringup/msc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=489…
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Sat Oct 2 19:08:06 2010
@@ -15,7 +15,11 @@
add_definitions(-Dinline=__inline -D__STDC__=1)
macro(set_entrypoint MODULE ENTRYPOINT)
+ if(${ENTRYPOINT} STREQUAL "0")
+ set(NEW_LINKER_FLAGS "/ENTRY:0")
+ else()
set(NEW_LINKER_FLAGS "/ENTRY:${ENTRYPOINT}")
+ endif()
get_target_property(LINKER_FLAGS ${MODULE} LINK_FLAGS)
if(LINKER_FLAGS)
set(NEW_LINKER_FLAGS "${LINKER_FLAGS} ${NEW_LINKER_FLAGS}")