[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Nov 2010 12:02:12 +0000 (12:02 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Nov 2010 12:02:12 +0000 (12:02 +0000)
- Improve most of the static libraries.

svn path=/branches/cmake-bringup/; revision=49479

21 files changed:
lib/CMakeLists.txt
lib/epsapi/CMakeLists.txt
lib/fslib/ext2lib/CMakeLists.txt
lib/fslib/ntfslib/CMakeLists.txt
lib/fslib/vfatlib/CMakeLists.txt
lib/fslib/vfatxlib/CMakeLists.txt
lib/host/wcsfuncs/CMakeLists.txt
lib/lsalib/CMakeLists.txt
lib/nls/idna/CMakeLists.txt
lib/nls/normalize/CMakeLists.txt
lib/nls/scripts/CMakeLists.txt
lib/recyclebin/CMakeLists.txt
lib/rtl/CMakeLists.txt
lib/sdk/crt/CMakeLists.txt
lib/sdk/delayimp/CMakeLists.txt
lib/sdk/dxguid/CMakeLists.txt
lib/sdk/ioevent/CMakeLists.txt
lib/sdk/scrnsave/CMakeLists.txt
lib/sdk/strmiids/CMakeLists.txt
lib/sdk/wdmguid/CMakeLists.txt
lib/tdilib/CMakeLists.txt

index 7e60675..c81ba16 100644 (file)
@@ -13,7 +13,7 @@ add_subdirectory(drivers)
 add_subdirectory(epsapi)
 add_subdirectory(fslib)
 add_subdirectory(lsalib)
-add_subdirectory(nls)
+#add_subdirectory(nls)
 add_subdirectory(ntdllsys)
 add_subdirectory(ppcmmu)
 add_subdirectory(pseh)
index 775a712..5f3a0a9 100644 (file)
@@ -1,4 +1,5 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-
-add_library(epsapi ${SOURCE})
\ No newline at end of file
+add_library(epsapi
+    enum/drivers.c
+    enum/modules.c
+    enum/processes.c)
index e5907c1..c9122d3 100644 (file)
@@ -1,4 +1,13 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
+list(APPEND SOURCE
+    Badblock.c
+    Bitmap.c
+    Disk.c
+    Group.c
+    Inode.c
+    Memory.c
+    Mke2fs.c
+    Super.c
+    Uuid.c)
 add_library(ext2lib ${SOURCE})
-add_dependencies(ext2lib psdk)
\ No newline at end of file
+add_dependencies(ext2lib psdk)
index 8f42b0b..1712c12 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(ntfslib ${SOURCE})
+add_library(ntfslib ntfslib.c)
index 1426eff..675bbbd 100644 (file)
@@ -1,4 +1,15 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
+list(APPEND SOURCE
+    check/boot.c
+    check/check.c
+    check/common.c
+    check/fat.c
+    check/file.c
+    check/io.c
+    check/lfn.c
+    fat12.c
+    fat16.c
+    fat32.c
+    vfatlib.c)
 add_library(vfatlib ${SOURCE})
 add_dependencies(vfatlib psdk)
index 1e5e6bc..fc6da26 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(vfatxlib ${SOURCE})
+add_library(vfatxlib fatx.c vfatxlib.c)
index 02eb639..5f16bcb 100644 (file)
@@ -1,4 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(host_wcsfuncs ${SOURCE})
-
+add_library(host_wcsfuncs wcsfuncs.c)
index c544bcc..fad7b70 100644 (file)
@@ -1,5 +1,3 @@
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-file(GLOB_RECURSE SOURCE "*.c")
 
-add_library(lsalib ${SOURCE})
\ No newline at end of file
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
+add_library(lsalib lsa.c)
index 7b6d8e2..716f665 100644 (file)
@@ -5,6 +5,4 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/icu4ros/icu/source/common
 remove_definitions(-DWINVER=0x502) # This removes a top-level definition: The compiler never gets it on the command-line
 add_definitions(-DWINVER=0x600) # And now we add our own
 
-file(GLOB_RECURSE SOURCE "*.cpp")
-
-add_library(idna ${SOURCE})
\ No newline at end of file
+add_library(idna idna.cpp nameprep.cpp)
index 3630a82..cf13b7f 100644 (file)
@@ -5,6 +5,4 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/icu4ros/icu/source/common
 remove_definitions(-DWINVER=0x502) # This removes a top-level definition: The compiler never gets it on the command-line
 add_definitions(-DWINVER=0x600) # And now we add our own
 
-file(GLOB_RECURSE SOURCE "*.cpp")
-
-add_library(normalize ${SOURCE})
\ No newline at end of file
+add_library(normalize normalize.cpp)
index cfdcf45..56e483b 100644 (file)
@@ -5,6 +5,4 @@ include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/icu4ros/icu/source/common
 remove_definitions(-DWINVER=0x502) # This removes a top-level definition: The compiler never gets it on the command-line
 add_definitions(-DWINVER=0x600) # And now we add our own
 
-file(GLOB_RECURSE SOURCE "*.cpp")
-
-add_library(scripts ${SOURCE})
\ No newline at end of file
+add_library(scripts scripts.cpp)
index 1de0a25..bfdb690 100644 (file)
@@ -1,3 +1,10 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
+list(APPEND SOURCE
+    guid.c
+    recyclebin.c
+    recyclebin_generic.c
+    recyclebin_generic_enumerator.c
+    recyclebin_v5.c
+    recyclebin_v5_enumerator.c)
+
 add_library(recyclebin ${SOURCE})
\ No newline at end of file
index c9fbb2e..17e7925 100644 (file)
@@ -1,8 +1,9 @@
 
-add_definitions(-D_NTOSKRNL_)
-add_definitions(-DNO_RTL_INLINES)
-add_definitions(-D_NTSYSTEM_)
-add_definitions(-D_NTDLLBUILD_)
+add_definitions(
+    -D_NTOSKRNL_
+    -DNO_RTL_INLINES
+    -D_NTSYSTEM_
+    -D_NTDLLBUILD_)
 
 list(APPEND SOURCE
     access.c
@@ -97,6 +98,6 @@ list(APPEND SOURCE
     powerpc/thread.c)
 endif(ARCH MATCHES i386)
 
-add_library(rtl ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch)
+add_library(rtl ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch ${SOURCE})
 add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
 add_dependencies(rtl psdk)
index ff14fc3..a710e26 100644 (file)
@@ -410,7 +410,7 @@ list(APPEND CRT_SOURCE
     math/amd64/tan.S)
 endif(ARCH MATCHES amd64)
 
-add_library(crt ${CRT_SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/crt_precomp.h.gch)
+add_library(crt ${CMAKE_CURRENT_BINARY_DIR}/crt_precomp.h.gch ${CRT_SOURCE})
 
 set_property(TARGET crt PROPERTY COMPILE_DEFINITIONS __MINGW_IMPORT=extern USE_MSVCRT_PREFIX _MSVCRT_LIB_ _MSVCRT_ _MT)
 add_pch(crt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${CRT_SOURCE})
index bc83659..9490a13 100644 (file)
@@ -1,4 +1,3 @@
 
 add_definitions(-DUNICODE -D_UNICODE)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(delayimp ${SOURCE})
+add_library(delayimp delayimp.c)
index d822e21..9cbcaec 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(dxguid ${SOURCE})
+add_library(dxguid dxguid-mingw.c)
index c24bed3..2f7d583 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(ioevent ${SOURCE})
+add_library(ioevent ioevent.c)
index e0be066..033eab2 100644 (file)
@@ -1,6 +1,4 @@
 
 add_definitions(-DUNICODE -D_UNICODE)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(scrnsave ${SOURCE})
-
-add_dependencies(scrnsave psdk)
\ No newline at end of file
+add_library(scrnsave scrnsave.c)
+add_dependencies(scrnsave psdk)
index 69585eb..e40f871 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(strmiids ${SOURCE})
+add_library(strmiids strmiids.c)
index 45f5b02..2203b08 100644 (file)
@@ -1,3 +1,2 @@
 
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(wdmguid ${SOURCE})
+add_library(wdmguid wdmguid.c)
index 760d0a3..310fa4a 100644 (file)
@@ -1,6 +1,5 @@
+
 # FIXFIX: You guys should move this header in include/reactos/libs/iphlpapi!
 include_directories(${REACTOS_SOURCE_DIR}/dll/win32/iphlpapi) 
-
-file(GLOB_RECURSE SOURCE "*.c")
-
-add_library(tdilib ${SOURCE})
\ No newline at end of file
+add_library(tdilib enum.c handle.c)
+add_dependencies(tdilib psdk)