mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:55:39 +00:00
[CMAKE]
- 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:
parent
2901215553
commit
c93d1289fd
13 changed files with 297 additions and 220 deletions
|
@ -29,12 +29,13 @@ if(NOT CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
add_definitions(-DTARGET_i386)
|
add_definitions(-DTARGET_i386)
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
|
include_directories(
|
||||||
include_directories(include)
|
${REACTOS_SOURCE_DIR}/tools/unicode
|
||||||
include_directories(include/host)
|
include
|
||||||
include_directories(include/reactos)
|
include/host
|
||||||
include_directories(include/reactos/wine)
|
include/reactos
|
||||||
include_directories(${REACTOS_BINARY_DIR}/include)
|
include/reactos/wine
|
||||||
|
${REACTOS_BINARY_DIR}/include)
|
||||||
|
|
||||||
add_subdirectory(tools)
|
add_subdirectory(tools)
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
|
@ -48,12 +49,13 @@ endif()
|
||||||
else()
|
else()
|
||||||
|
|
||||||
#Some cleanup
|
#Some cleanup
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_livecd.txt)
|
file(REMOVE
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt)
|
${REACTOS_BINARY_DIR}/boot/ros_livecd.txt
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_minicd.txt)
|
${REACTOS_BINARY_DIR}/boot/ros_livecd_target.txt
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt)
|
${REACTOS_BINARY_DIR}/boot/ros_minicd.txt
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_cab.txt)
|
${REACTOS_BINARY_DIR}/boot/ros_minicd_target.txt
|
||||||
file(REMOVE ${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
|
${REACTOS_BINARY_DIR}/boot/ros_cab.txt
|
||||||
|
${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
|
||||||
|
|
||||||
#Some useful variables
|
#Some useful variables
|
||||||
set(LIVECD_DIR "${REACTOS_BINARY_DIR}/boot/livecd")
|
set(LIVECD_DIR "${REACTOS_BINARY_DIR}/boot/livecd")
|
||||||
|
@ -66,7 +68,7 @@ enable_language(ASM)
|
||||||
enable_language(RC)
|
enable_language(RC)
|
||||||
|
|
||||||
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
|
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
|
||||||
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
|
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
|
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
|
||||||
|
@ -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__)
|
add_definitions(-D_M_IX86 -D_X86_ -D__i386__)
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
add_definitions(-DUSE_COMPILER_EXCEPTIONS)
|
add_definitions(-DUSE_COMPILER_EXCEPTIONS -D_USE_32BIT_TIME_T)
|
||||||
add_definitions(-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)
|
if(MSVC)
|
||||||
include_directories(include/crt/msc)
|
include_directories(include/crt/msc)
|
||||||
else()
|
else()
|
||||||
include_directories(include/crt/mingw32)
|
include_directories(include/crt/mingw32)
|
||||||
endif(MSVC)
|
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/psdk)
|
||||||
add_subdirectory(include/dxsdk)
|
add_subdirectory(include/dxsdk)
|
||||||
|
@ -189,4 +192,3 @@ add_custom_target(gendib_generated ALL DEPENDS ${OUTPUT_FILES})
|
||||||
include(ros_cd.cmake)
|
include(ros_cd.cmake)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
|
|
||||||
if(MSVC)
|
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)
|
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()
|
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)
|
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()
|
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)
|
get_filename_component(FILE ${_in_FILE} NAME_WE)
|
||||||
MACRO_MC(${FILE})
|
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)
|
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})
|
MACRO_ADD_MESSAGE_HEADERS(${SOURCE})
|
||||||
|
|
16
lib/3rdparty/fullfat/CMakeLists.txt
vendored
16
lib/3rdparty/fullfat/CMakeLists.txt
vendored
|
@ -1,6 +1,20 @@
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat)
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat)
|
||||||
|
|
||||||
add_definitions(-D__NTDRIVER__)
|
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})
|
add_library(fullfat ${SOURCE})
|
94
lib/3rdparty/icu4ros/CMakeLists.txt
vendored
94
lib/3rdparty/icu4ros/CMakeLists.txt
vendored
|
@ -1,50 +1,52 @@
|
||||||
include_directories(icu/source/common)
|
|
||||||
include_directories(icu/source/i18n)
|
|
||||||
|
|
||||||
add_definitions(-DHAVE_EXPAT_CONFIG_H)
|
include_directories(
|
||||||
add_definitions(-DU_STATIC_IMPLEMENTATION)
|
icu/source/common
|
||||||
add_definitions(-DU_HAVE_INTTYPES_H)
|
icu/source/i18n)
|
||||||
add_definitions(-DUCONFIG_NO_FILE_IO=1)
|
|
||||||
add_definitions(-DICU_NO_USER_DATA_OVERRIDE=1)
|
|
||||||
|
|
||||||
set(SOURCE
|
add_definitions(
|
||||||
"stubs.cpp"
|
-DHAVE_EXPAT_CONFIG_H
|
||||||
"icu/source/common/bmpset.cpp"
|
-DU_STATIC_IMPLEMENTATION
|
||||||
"icu/source/common/uhash_us.cpp"
|
-DU_HAVE_INTTYPES_H
|
||||||
"icu/source/common/uidna.cpp"
|
-DUCONFIG_NO_FILE_IO=1
|
||||||
"icu/source/common/unifilt.cpp"
|
-DICU_NO_USER_DATA_OVERRIDE=1)
|
||||||
"icu/source/common/unifunct.cpp"
|
|
||||||
"icu/source/common/uniset.cpp"
|
list(APPEND SOURCE
|
||||||
"icu/source/common/unisetspan.cpp"
|
stubs.cpp
|
||||||
"icu/source/common/unistr.cpp"
|
icu/source/common/bmpset.cpp
|
||||||
"icu/source/common/unorm.cpp"
|
icu/source/common/uhash_us.cpp
|
||||||
"icu/source/common/uobject.cpp"
|
icu/source/common/uidna.cpp
|
||||||
"icu/source/common/uobject.cpp"
|
icu/source/common/unifilt.cpp
|
||||||
"icu/source/common/uset.cpp"
|
icu/source/common/unifunct.cpp
|
||||||
"icu/source/common/usprep.cpp"
|
icu/source/common/uniset.cpp
|
||||||
"icu/source/common/uiter.cpp"
|
icu/source/common/unisetspan.cpp
|
||||||
"icu/source/common/util.cpp"
|
icu/source/common/unistr.cpp
|
||||||
"icu/source/common/cmemory.c"
|
icu/source/common/unorm.cpp
|
||||||
"icu/source/common/cstring.c"
|
icu/source/common/uobject.cpp
|
||||||
"icu/source/common/locmap.c"
|
icu/source/common/uobject.cpp
|
||||||
"icu/source/common/punycode.c"
|
icu/source/common/uset.cpp
|
||||||
"icu/source/common/ubidi_props.c"
|
icu/source/common/usprep.cpp
|
||||||
"icu/source/common/ucln_cmn.c"
|
icu/source/common/uiter.cpp
|
||||||
"icu/source/common/ucmndata.c"
|
icu/source/common/util.cpp
|
||||||
"icu/source/common/ucol_swp.c"
|
icu/source/common/cmemory.c
|
||||||
"icu/source/common/udata.c"
|
icu/source/common/cstring.c
|
||||||
"icu/source/common/udatamem.c"
|
icu/source/common/locmap.c
|
||||||
"icu/source/common/udataswp.c"
|
icu/source/common/punycode.c
|
||||||
"icu/source/common/uhash.c"
|
icu/source/common/ubidi_props.c
|
||||||
"icu/source/common/uinit.c"
|
icu/source/common/ucln_cmn.c
|
||||||
"icu/source/common/uinvchar.c"
|
icu/source/common/ucmndata.c
|
||||||
"icu/source/common/umapfile.c"
|
icu/source/common/ucol_swp.c
|
||||||
"icu/source/common/umath.c"
|
icu/source/common/udata.c
|
||||||
"icu/source/common/umutex.c"
|
icu/source/common/udatamem.c
|
||||||
"icu/source/common/ustring.c"
|
icu/source/common/udataswp.c
|
||||||
"icu/source/common/ustrtrns.c"
|
icu/source/common/uhash.c
|
||||||
"icu/source/common/utf_impl.c"
|
icu/source/common/uinit.c
|
||||||
"icu/source/common/utrie.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})
|
add_library(icu4ros ${SOURCE})
|
1
lib/3rdparty/libmpg123/CMakeLists.txt
vendored
1
lib/3rdparty/libmpg123/CMakeLists.txt
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DOPT_I386
|
-DOPT_I386
|
||||||
-DREAL_IS_FLOAT
|
-DREAL_IS_FLOAT
|
||||||
|
|
12
lib/3rdparty/libsamplerate/CMakeLists.txt
vendored
12
lib/3rdparty/libsamplerate/CMakeLists.txt
vendored
|
@ -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})
|
add_library(libsamplerate ${SOURCE})
|
8
lib/3rdparty/libwine/CMakeLists.txt
vendored
8
lib/3rdparty/libwine/CMakeLists.txt
vendored
|
@ -1,8 +1,12 @@
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||||
add_definitions(-D__WINESRC__)
|
add_definitions(-D__WINESRC__)
|
||||||
|
|
||||||
file(GLOB_RECURSE SOURCE "*.c")
|
list(APPEND SOURCE
|
||||||
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/debug.c)
|
config.c
|
||||||
|
debug_ros.c
|
||||||
|
loader.c
|
||||||
|
string.c)
|
||||||
|
|
||||||
add_library(wine ${SOURCE})
|
add_library(wine ${SOURCE})
|
||||||
|
|
||||||
|
|
103
lib/3rdparty/libxml2/CMakeLists.txt
vendored
103
lib/3rdparty/libxml2/CMakeLists.txt
vendored
|
@ -1,53 +1,62 @@
|
||||||
include_directories(.)
|
|
||||||
include_directories(./include)
|
|
||||||
|
|
||||||
add_definitions(-D__MINGW32__ -DLIBXML_STATIC -D_REENTRANT -DHAVE_WIN32_THREADS -D_MBCS -D_WINDOWS -DWIN32 -DHAVE_CONFIG_H)
|
include_directories(
|
||||||
add_definitions(-D_DLL -D__USE_CRTIMP)
|
.
|
||||||
|
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
|
list(APPEND SOURCE
|
||||||
c14n.c
|
c14n.c
|
||||||
catalog.c
|
catalog.c
|
||||||
chvalid.c
|
chvalid.c
|
||||||
debugXML.c
|
debugXML.c
|
||||||
dict.c
|
dict.c
|
||||||
DOCBparser.c
|
DOCBparser.c
|
||||||
encoding.c
|
encoding.c
|
||||||
entities.c
|
entities.c
|
||||||
error.c
|
error.c
|
||||||
globals.c
|
globals.c
|
||||||
hash.c
|
hash.c
|
||||||
HTMLparser.c
|
HTMLparser.c
|
||||||
HTMLtree.c
|
HTMLtree.c
|
||||||
legacy.c
|
legacy.c
|
||||||
list.c
|
list.c
|
||||||
nanoftp.c
|
nanoftp.c
|
||||||
nanohttp.c
|
nanohttp.c
|
||||||
parser.c
|
parser.c
|
||||||
parserInternals.c
|
parserInternals.c
|
||||||
pattern.c
|
pattern.c
|
||||||
relaxng.c
|
relaxng.c
|
||||||
SAX.c
|
SAX.c
|
||||||
SAX2.c
|
SAX2.c
|
||||||
threads.c
|
threads.c
|
||||||
tree.c
|
tree.c
|
||||||
uri.c
|
uri.c
|
||||||
valid.c
|
valid.c
|
||||||
xinclude.c
|
xinclude.c
|
||||||
xlink.c
|
xlink.c
|
||||||
xmlIO.c
|
xmlIO.c
|
||||||
xmlmemory.c
|
xmlmemory.c
|
||||||
xmlreader.c
|
xmlreader.c
|
||||||
xmlregexp.c
|
xmlregexp.c
|
||||||
xmlmodule.c
|
xmlmodule.c
|
||||||
xmlsave.c
|
xmlsave.c
|
||||||
xmlschemas.c
|
xmlschemas.c
|
||||||
xmlschemastypes.c
|
xmlschemastypes.c
|
||||||
xmlunicode.c
|
xmlunicode.c
|
||||||
xmlwriter.c
|
xmlwriter.c
|
||||||
xpath.c
|
xpath.c
|
||||||
xpointer.c
|
xpointer.c
|
||||||
xmlstring.c
|
xmlstring.c)
|
||||||
)
|
|
||||||
|
|
||||||
add_library(libxml2 ${SOURCE})
|
add_library(libxml2 ${SOURCE})
|
||||||
target_link_libraries(libxml2 oldnames)
|
target_link_libraries(libxml2 oldnames)
|
||||||
|
|
58
lib/3rdparty/mingw/CMakeLists.txt
vendored
58
lib/3rdparty/mingw/CMakeLists.txt
vendored
|
@ -8,35 +8,35 @@ add_definitions(-Wno-main)
|
||||||
endif(NOT MSVC)
|
endif(NOT MSVC)
|
||||||
|
|
||||||
list(APPEND MINGW_COMMON_SOURCE
|
list(APPEND MINGW_COMMON_SOURCE
|
||||||
_newmode.c
|
_newmode.c
|
||||||
atonexit.c
|
atonexit.c
|
||||||
binmode.c
|
binmode.c
|
||||||
charmax.c
|
charmax.c
|
||||||
cinitexe.c
|
cinitexe.c
|
||||||
CRT_fp10.c
|
CRT_fp10.c
|
||||||
CRT_fp8.c
|
CRT_fp8.c
|
||||||
CRT_glob.c
|
CRT_glob.c
|
||||||
crt_handler.c
|
crt_handler.c
|
||||||
dllentry.c
|
dllentry.c
|
||||||
gccmain.c
|
gccmain.c
|
||||||
gs_support.c
|
gs_support.c
|
||||||
merr.c
|
merr.c
|
||||||
mingw_helpers.c
|
mingw_helpers.c
|
||||||
natstart.c
|
natstart.c
|
||||||
pesect.c
|
pesect.c
|
||||||
pseudo-reloc.c
|
pseudo-reloc.c
|
||||||
pseudo-reloc-list.c
|
pseudo-reloc-list.c
|
||||||
tlsmcrt.c
|
tlsmcrt.c
|
||||||
tlsmthread.c
|
tlsmthread.c
|
||||||
tlssup.c
|
tlssup.c
|
||||||
tlsthrd.c
|
tlsthrd.c
|
||||||
txtmode.c
|
txtmode.c
|
||||||
wildcard.c
|
wildcard.c
|
||||||
xncommod.c
|
xncommod.c
|
||||||
xthdloc.c
|
xthdloc.c
|
||||||
xtxtmode.c
|
xtxtmode.c
|
||||||
ofmt_stub.c
|
ofmt_stub.c
|
||||||
cxa_pure_virtual.c)
|
cxa_pure_virtual.c)
|
||||||
|
|
||||||
add_library(mingw_common ${MINGW_COMMON_SOURCE})
|
add_library(mingw_common ${MINGW_COMMON_SOURCE})
|
||||||
|
|
||||||
|
|
64
lib/3rdparty/stlport/CMakeLists.txt
vendored
64
lib/3rdparty/stlport/CMakeLists.txt
vendored
|
@ -7,37 +7,37 @@ add_definitions(-D_STLP_USE_EXCEPTIONS)
|
||||||
set_cpp()
|
set_cpp()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
src/allocators.cpp
|
src/allocators.cpp
|
||||||
src/bitset.cpp
|
src/bitset.cpp
|
||||||
src/codecvt.cpp
|
src/codecvt.cpp
|
||||||
src/collate.cpp
|
src/collate.cpp
|
||||||
src/complex.cpp
|
src/complex.cpp
|
||||||
src/complex_io.cpp
|
src/complex_io.cpp
|
||||||
src/complex_trig.cpp
|
src/complex_trig.cpp
|
||||||
src/ctype.cpp
|
src/ctype.cpp
|
||||||
src/dll_main.cpp
|
src/dll_main.cpp
|
||||||
src/facets_byname.cpp
|
src/facets_byname.cpp
|
||||||
src/fstream.cpp
|
src/fstream.cpp
|
||||||
src/ios.cpp
|
src/ios.cpp
|
||||||
src/iostream.cpp
|
src/iostream.cpp
|
||||||
src/istream.cpp
|
src/istream.cpp
|
||||||
src/locale.cpp
|
src/locale.cpp
|
||||||
src/locale_catalog.cpp
|
src/locale_catalog.cpp
|
||||||
src/locale_impl.cpp
|
src/locale_impl.cpp
|
||||||
src/messages.cpp
|
src/messages.cpp
|
||||||
src/monetary.cpp
|
src/monetary.cpp
|
||||||
src/num_get.cpp
|
src/num_get.cpp
|
||||||
src/num_get_float.cpp
|
src/num_get_float.cpp
|
||||||
src/num_put.cpp
|
src/num_put.cpp
|
||||||
src/num_put_float.cpp
|
src/num_put_float.cpp
|
||||||
src/numpunct.cpp
|
src/numpunct.cpp
|
||||||
src/ostream.cpp
|
src/ostream.cpp
|
||||||
src/sstream.cpp
|
src/sstream.cpp
|
||||||
src/stdio_streambuf.cpp
|
src/stdio_streambuf.cpp
|
||||||
src/string.cpp
|
src/string.cpp
|
||||||
src/strstream.cpp
|
src/strstream.cpp
|
||||||
src/time_facets.cpp
|
src/time_facets.cpp
|
||||||
src/c_locale.c
|
src/c_locale.c
|
||||||
src/cxa.c)
|
src/cxa.c)
|
||||||
|
|
||||||
add_library(stlport ${SOURCE})
|
add_library(stlport ${SOURCE})
|
||||||
|
|
27
lib/3rdparty/zlib/CMakeLists.txt
vendored
27
lib/3rdparty/zlib/CMakeLists.txt
vendored
|
@ -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)
|
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)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
add_library(zlib ${SOURCE})
|
add_library(zlib ${SOURCE})
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
add_library(zlibhost ${SOURCE})
|
add_library(zlibhost ${SOURCE})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -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)
|
if(CMAKE_CROSSCOMPILING)
|
||||||
|
|
||||||
add_library(cmlib ${SOURCE})
|
add_library(cmlib ${SOURCE})
|
||||||
add_dependencies(cmlib bugcodes)
|
add_dependencies(cmlib bugcodes)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
add_definitions(
|
||||||
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DCMLIB_HOST)
|
-DWINE_UNICODE_API=
|
||||||
|
-D__NO_CTYPE_INLINES
|
||||||
|
-DCMLIB_HOST)
|
||||||
add_library(cmlibhost ${SOURCE})
|
add_library(cmlibhost ${SOURCE})
|
||||||
target_link_libraries(cmlibhost unicode)
|
target_link_libraries(cmlibhost unicode)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,25 @@
|
||||||
|
|
||||||
include_directories(inc)
|
include_directories(inc)
|
||||||
|
|
||||||
add_definitions(-DUNICODE -D_UNICODE)
|
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})
|
add_library(dnslib ${SOURCE})
|
Loading…
Add table
Add a link
Reference in a new issue