- Improve most of the static libraries.

svn path=/branches/cmake-bringup/; revision=49479
This commit is contained in:
Amine Khaldi 2010-11-05 12:02:12 +00:00
parent b9041e39bf
commit 30bb25e2f0
21 changed files with 61 additions and 52 deletions

View 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)

View file

@ -1,4 +1,5 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(epsapi ${SOURCE})
add_library(epsapi
enum/drivers.c
enum/modules.c
enum/processes.c)

View 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)
add_dependencies(ext2lib psdk)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(ntfslib ${SOURCE})
add_library(ntfslib ntfslib.c)

View 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)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(vfatxlib ${SOURCE})
add_library(vfatxlib fatx.c vfatxlib.c)

View file

@ -1,4 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(host_wcsfuncs ${SOURCE})
add_library(host_wcsfuncs wcsfuncs.c)

View file

@ -1,5 +1,3 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
file(GLOB_RECURSE SOURCE "*.c")
add_library(lsalib ${SOURCE})
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
add_library(lsalib lsa.c)

View 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})
add_library(idna idna.cpp nameprep.cpp)

View 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})
add_library(normalize normalize.cpp)

View 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})
add_library(scripts scripts.cpp)

View 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})

View 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)

View 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})

View file

@ -1,4 +1,3 @@
add_definitions(-DUNICODE -D_UNICODE)
file(GLOB_RECURSE SOURCE "*.c")
add_library(delayimp ${SOURCE})
add_library(delayimp delayimp.c)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(dxguid ${SOURCE})
add_library(dxguid dxguid-mingw.c)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(ioevent ${SOURCE})
add_library(ioevent ioevent.c)

View file

@ -1,6 +1,4 @@
add_definitions(-DUNICODE -D_UNICODE)
file(GLOB_RECURSE SOURCE "*.c")
add_library(scrnsave ${SOURCE})
add_dependencies(scrnsave psdk)
add_library(scrnsave scrnsave.c)
add_dependencies(scrnsave psdk)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(strmiids ${SOURCE})
add_library(strmiids strmiids.c)

View file

@ -1,3 +1,2 @@
file(GLOB_RECURSE SOURCE "*.c")
add_library(wdmguid ${SOURCE})
add_library(wdmguid wdmguid.c)

View 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})
add_library(tdilib enum.c handle.c)
add_dependencies(tdilib psdk)