- Remove wpp from build.
- Improve several tools and libs.
- Improve the root cmake file.

svn path=/branches/cmake-bringup/; revision=49492
This commit is contained in:
Amine Khaldi 2010-11-05 18:06:25 +00:00
parent 2901215553
commit c93d1289fd
13 changed files with 297 additions and 220 deletions

View file

@ -29,12 +29,13 @@ if(NOT CMAKE_CROSSCOMPILING)
add_definitions(-DTARGET_i386)
include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
include_directories(include)
include_directories(include/host)
include_directories(include/reactos)
include_directories(include/reactos/wine)
include_directories(${REACTOS_BINARY_DIR}/include)
include_directories(
${REACTOS_SOURCE_DIR}/tools/unicode
include
include/host
include/reactos
include/reactos/wine
${REACTOS_BINARY_DIR}/include)
add_subdirectory(tools)
add_subdirectory(lib)
@ -48,12 +49,13 @@ endif()
else()
#Some cleanup
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_livecd.txt)
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt)
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_minicd.txt)
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt)
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_cab.txt)
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
file(REMOVE
${REACTOS_BINARY_DIR}/boot/ros_livecd.txt
${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd.txt
${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt
${REACTOS_BINARY_DIR}/boot/ros_cab.txt
${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
#Some useful variables
set(LIVECD_DIR "${REACTOS_BINARY_DIR}/boot/livecd")
@ -89,26 +91,27 @@ add_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502 -D_WIN32_W
add_definitions(-D_M_IX86 -D_X86_ -D__i386__)
# Other
add_definitions(-DUSE_COMPILER_EXCEPTIONS)
add_definitions(-D_USE_32BIT_TIME_T)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T)
include_directories(
include
include/psdk
include/dxsdk
${REACTOS_BINARY_DIR}/include
${REACTOS_BINARY_DIR}/include/dxsdk
${REACTOS_BINARY_DIR}/include/psdk
${REACTOS_BINARY_DIR}/include/reactos
include/crt
include/ddk
include/ndk
include/reactos
include/reactos/libs)
include_directories(include)
include_directories(include/psdk)
include_directories(include/dxsdk)
include_directories(${REACTOS_BINARY_DIR}/include)
include_directories(${REACTOS_BINARY_DIR}/include/dxsdk)
include_directories(${REACTOS_BINARY_DIR}/include/psdk)
include_directories(${REACTOS_BINARY_DIR}/include/reactos)
include_directories(include/crt)
if(MSVC)
include_directories(include/crt/msc)
else()
include_directories(include/crt/mingw32)
endif(MSVC)
include_directories(include/ddk)
include_directories(include/ndk)
include_directories(include/reactos)
include_directories(include/reactos/libs)
add_subdirectory(include/psdk)
add_subdirectory(include/dxsdk)
@ -189,4 +192,3 @@ add_custom_target(gendib_generated ALL DEPENDS ${OUTPUT_FILES})
include(ros_cd.cmake)
endif()

View file

@ -1,17 +1,17 @@
if(MSVC)
MACRO(MACRO_MC FILE)
macro(MACRO_MC FILE)
set (COMMAND_MC mc -r ${REACTOS_BINARY_DIR}/include/reactos -h ${REACTOS_BINARY_DIR}/include/reactos ${REACTOS_SOURCE_DIR}/include/reactos/mc/${FILE}.mc)
ENDMACRO()
endmacro()
else()
MACRO(MACRO_MC FILE)
macro(MACRO_MC FILE)
set(COMMAND_MC ${MINGW_PREFIX}windmc -A -b ${REACTOS_SOURCE_DIR}/include/reactos/mc/${FILE}.mc -r ${REACTOS_BINARY_DIR}/include/reactos -h ${REACTOS_BINARY_DIR}/include/reactos)
ENDMACRO()
endmacro()
endif()
MACRO (MACRO_ADD_MESSAGE_HEADERS)
macro (MACRO_ADD_MESSAGE_HEADERS)
FOREACH(_in_FILE ${ARGN})
foreach(_in_FILE ${ARGN})
get_filename_component(FILE ${_in_FILE} NAME_WE)
MACRO_MC(${FILE})
@ -26,9 +26,14 @@ MACRO (MACRO_ADD_MESSAGE_HEADERS)
)
add_custom_target(${FILE} ALL DEPENDS ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.h ${REACTOS_BINARY_DIR}/include/reactos/${FILE}.rc)
ENDFOREACH(_in_FILE ${ARGN})
endforeach(_in_FILE ${ARGN})
ENDMACRO (MACRO_ADD_MESSAGE_HEADERS)
endmacro (MACRO_ADD_MESSAGE_HEADERS)
file(GLOB_RECURSE SOURCE "*.mc")
list(APPEND SOURCE
bugcodes.mc
errcodes.mc
netevent.mc
ntstatus.mc
pciclass.mc)
MACRO_ADD_MESSAGE_HEADERS(${SOURCE})

View file

@ -1,6 +1,20 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat)
add_definitions(-D__NTDRIVER__)
file(GLOB_RECURSE SOURCE "*.c")
list(APPEND SOURCE
ff_blk.c
ff_crc.c
ff_dir.c
ff_error.c
ff_fat.c
ff_file.c
ff_hash.c
ff_ioman.c
ff_memory.c
ff_safety.c
ff_string.c
ff_time.c)
add_library(fullfat ${SOURCE})

View file

@ -1,50 +1,52 @@
include_directories(icu/source/common)
include_directories(icu/source/i18n)
add_definitions(-DHAVE_EXPAT_CONFIG_H)
add_definitions(-DU_STATIC_IMPLEMENTATION)
add_definitions(-DU_HAVE_INTTYPES_H)
add_definitions(-DUCONFIG_NO_FILE_IO=1)
add_definitions(-DICU_NO_USER_DATA_OVERRIDE=1)
include_directories(
icu/source/common
icu/source/i18n)
set(SOURCE
"stubs.cpp"
"icu/source/common/bmpset.cpp"
"icu/source/common/uhash_us.cpp"
"icu/source/common/uidna.cpp"
"icu/source/common/unifilt.cpp"
"icu/source/common/unifunct.cpp"
"icu/source/common/uniset.cpp"
"icu/source/common/unisetspan.cpp"
"icu/source/common/unistr.cpp"
"icu/source/common/unorm.cpp"
"icu/source/common/uobject.cpp"
"icu/source/common/uobject.cpp"
"icu/source/common/uset.cpp"
"icu/source/common/usprep.cpp"
"icu/source/common/uiter.cpp"
"icu/source/common/util.cpp"
"icu/source/common/cmemory.c"
"icu/source/common/cstring.c"
"icu/source/common/locmap.c"
"icu/source/common/punycode.c"
"icu/source/common/ubidi_props.c"
"icu/source/common/ucln_cmn.c"
"icu/source/common/ucmndata.c"
"icu/source/common/ucol_swp.c"
"icu/source/common/udata.c"
"icu/source/common/udatamem.c"
"icu/source/common/udataswp.c"
"icu/source/common/uhash.c"
"icu/source/common/uinit.c"
"icu/source/common/uinvchar.c"
"icu/source/common/umapfile.c"
"icu/source/common/umath.c"
"icu/source/common/umutex.c"
"icu/source/common/ustring.c"
"icu/source/common/ustrtrns.c"
"icu/source/common/utf_impl.c"
"icu/source/common/utrie.c"
)
add_definitions(
-DHAVE_EXPAT_CONFIG_H
-DU_STATIC_IMPLEMENTATION
-DU_HAVE_INTTYPES_H
-DUCONFIG_NO_FILE_IO=1
-DICU_NO_USER_DATA_OVERRIDE=1)
list(APPEND SOURCE
stubs.cpp
icu/source/common/bmpset.cpp
icu/source/common/uhash_us.cpp
icu/source/common/uidna.cpp
icu/source/common/unifilt.cpp
icu/source/common/unifunct.cpp
icu/source/common/uniset.cpp
icu/source/common/unisetspan.cpp
icu/source/common/unistr.cpp
icu/source/common/unorm.cpp
icu/source/common/uobject.cpp
icu/source/common/uobject.cpp
icu/source/common/uset.cpp
icu/source/common/usprep.cpp
icu/source/common/uiter.cpp
icu/source/common/util.cpp
icu/source/common/cmemory.c
icu/source/common/cstring.c
icu/source/common/locmap.c
icu/source/common/punycode.c
icu/source/common/ubidi_props.c
icu/source/common/ucln_cmn.c
icu/source/common/ucmndata.c
icu/source/common/ucol_swp.c
icu/source/common/udata.c
icu/source/common/udatamem.c
icu/source/common/udataswp.c
icu/source/common/uhash.c
icu/source/common/uinit.c
icu/source/common/uinvchar.c
icu/source/common/umapfile.c
icu/source/common/umath.c
icu/source/common/umutex.c
icu/source/common/ustring.c
icu/source/common/ustrtrns.c
icu/source/common/utf_impl.c
icu/source/common/utrie.c)
add_library(icu4ros ${SOURCE})

View file

@ -1,3 +1,4 @@
add_definitions(
-DOPT_I386
-DREAL_IS_FLOAT

View file

@ -1,4 +1,12 @@
add_definitions(-DHAVE_LRINT -DHAVE_LRINTF)
file(GLOB_RECURSE SOURCE "*.c")
add_definitions(
-DHAVE_LRINT
-DHAVE_LRINTF)
list(APPEND SOURCE
samplerate.c
src_linear.c
src_sinc.c
src_zoh.c)
add_library(libsamplerate ${SOURCE})

View file

@ -1,8 +1,12 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-D__WINESRC__)
file(GLOB_RECURSE SOURCE "*.c")
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/debug.c)
list(APPEND SOURCE
config.c
debug_ros.c
loader.c
string.c)
add_library(wine ${SOURCE})

View file

@ -1,8 +1,18 @@
include_directories(.)
include_directories(./include)
add_definitions(-D__MINGW32__ -DLIBXML_STATIC -D_REENTRANT -DHAVE_WIN32_THREADS -D_MBCS -D_WINDOWS -DWIN32 -DHAVE_CONFIG_H)
add_definitions(-D_DLL -D__USE_CRTIMP)
include_directories(
.
include)
add_definitions(
-D__MINGW32__
-DLIBXML_STATIC
-D_REENTRANT
-DHAVE_WIN32_THREADS
-D_MBCS
-D_WINDOWS
-DWIN32
-DHAVE_CONFIG_H
-D_DLL -D__USE_CRTIMP)
list(APPEND SOURCE
c14n.c
@ -46,8 +56,7 @@ list(APPEND SOURCE
xmlwriter.c
xpath.c
xpointer.c
xmlstring.c
)
xmlstring.c)
add_library(libxml2 ${SOURCE})
target_link_libraries(libxml2 oldnames)

View file

@ -1,18 +1,25 @@
file(GLOB_RECURSE SOURCE "*.c")
LIST(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/minigzip.c)
LIST(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/example.c)
add_definitions(-DNO_VIZ)
list(APPEND SOURCE
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c)
if(CMAKE_CROSSCOMPILING)
add_library(zlib ${SOURCE})
else()
add_library(zlibhost ${SOURCE})
endif()

View file

@ -1,18 +1,25 @@
file(GLOB_RECURSE SOURCE "*.c")
add_definitions(
-D_NTOSKRNL_
-D_NTSYSTEM_
-DNASSERT)
add_definitions(-D_NTOSKRNL_ -D_NTSYSTEM_ -DNASSERT)
list(APPEND SOURCE
cminit.c
hivebin.c
hivecell.c
hiveinit.c
hivesum.c
hivewrt.c)
if(CMAKE_CROSSCOMPILING)
add_library(cmlib ${SOURCE})
add_dependencies(cmlib bugcodes)
else()
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DCMLIB_HOST)
add_definitions(
-DWINE_UNICODE_API=
-D__NO_CTYPE_INLINES
-DCMLIB_HOST)
add_library(cmlibhost ${SOURCE})
target_link_libraries(cmlibhost unicode)
endif()

View file

@ -1,7 +1,25 @@
include_directories(inc)
add_definitions(-DUNICODE -D_UNICODE)
file(GLOB_RECURSE SOURCE "*.c")
list(APPEND SOURCE
addr.c
debug.c
dnsaddr.c
dnsutil.c
flatbuf.c
hostent.c
ip6.c
memory.c
name.c
print.c
record.c
rrprint.c
sablob.c
straddr.c
string.c
table.c
utf8.c)
add_library(dnslib ${SOURCE})