- Improve most of the static libraries.
svn path=/branches/cmake-bringup/; revision=49479
add_subdirectory(epsapi)
add_subdirectory(fslib)
add_subdirectory(lsalib)
-add_subdirectory(nls)
+#add_subdirectory(nls)
add_subdirectory(ntdllsys)
add_subdirectory(ppcmmu)
add_subdirectory(pseh)
-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)
-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)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(ntfslib ${SOURCE})
+add_library(ntfslib ntfslib.c)
-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)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(vfatxlib ${SOURCE})
+add_library(vfatxlib fatx.c vfatxlib.c)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(host_wcsfuncs ${SOURCE})
-
+add_library(host_wcsfuncs wcsfuncs.c)
-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)
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)
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)
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)
-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
-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
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)
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})
add_definitions(-DUNICODE -D_UNICODE)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(delayimp ${SOURCE})
+add_library(delayimp delayimp.c)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(dxguid ${SOURCE})
+add_library(dxguid dxguid-mingw.c)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(ioevent ${SOURCE})
+add_library(ioevent ioevent.c)
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)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(strmiids ${SOURCE})
+add_library(strmiids strmiids.c)
-file(GLOB_RECURSE SOURCE "*.c")
-add_library(wdmguid ${SOURCE})
+add_library(wdmguid wdmguid.c)
+
# 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)