2011-05-16 13:12:07 +00:00
|
|
|
|
2019-04-28 19:35:13 +00:00
|
|
|
if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
|
|
|
add_compile_flags("-Wno-misleading-indentation")
|
|
|
|
endif()
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libxslt
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv)
|
2011-07-28 14:48:30 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
-DWIN32
|
|
|
|
-D_WINDOWS
|
|
|
|
-D_MBCS
|
|
|
|
-DHAVE_STAT
|
|
|
|
-DHAVE_WIN32_THREADS
|
|
|
|
-D_REENTRANT
|
2011-06-13 15:31:11 +00:00
|
|
|
-DLIBXML_STATIC)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-11 11:12:10 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
attributes.c
|
|
|
|
attrvt.c
|
|
|
|
documents.c
|
|
|
|
extensions.c
|
|
|
|
extra.c
|
|
|
|
functions.c
|
|
|
|
imports.c
|
|
|
|
keys.c
|
|
|
|
namespaces.c
|
|
|
|
numbers.c
|
|
|
|
pattern.c
|
|
|
|
preproc.c
|
|
|
|
security.c
|
|
|
|
templates.c
|
|
|
|
transform.c
|
|
|
|
variables.c
|
|
|
|
xslt.c
|
|
|
|
xsltlocale.c
|
2014-02-11 11:12:10 +00:00
|
|
|
xsltutils.c
|
|
|
|
precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(libxslt MODULE ${SOURCE})
|
2012-10-24 21:44:47 +00:00
|
|
|
set_module_type(libxslt win32dll)
|
2014-04-18 19:33:35 +00:00
|
|
|
target_link_libraries(libxslt libxml2 iconv-static zlib)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(libxslt msvcrt ws2_32 kernel32)
|
2014-10-17 23:28:29 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
if(MSVC)
|
2011-06-13 15:31:11 +00:00
|
|
|
add_importlibs(libxslt ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
|
|
|
|
2014-02-11 11:12:10 +00:00
|
|
|
add_pch(libxslt precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
|
2011-09-04 17:32:30 +00:00
|
|
|
|
2017-12-03 22:30:10 +00:00
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(libxslt PRIVATE -Wno-pointer-sign -Wno-unused-function)
|
2011-09-04 17:32:30 +00:00
|
|
|
endif()
|