2011-05-16 13:12:07 +00:00
|
|
|
|
2013-02-09 11:15:57 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/libs/libxslt)
|
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
|
|
|
|
-D_WINSOCKAPI_
|
2011-06-13 15:31:11 +00:00
|
|
|
-DLIBXML_STATIC)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(libxslt SHARED
|
|
|
|
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
|
|
|
|
xsltutils.c)
|
|
|
|
|
2012-10-24 21:44:47 +00:00
|
|
|
set_module_type(libxslt win32dll)
|
2011-05-16 13:12:07 +00:00
|
|
|
target_link_libraries(libxslt libxml2)
|
|
|
|
add_importlibs(libxslt msvcrt ws2_32 kernel32)
|
2011-06-13 15:31:11 +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()
|
|
|
|
|
|
|
|
add_dependencies(libxslt psdk)
|
2011-07-28 14:48:30 +00:00
|
|
|
add_pch(libxslt libxslt.h)
|
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
|
|
|
|
|
|
|
if(NOT MSVC)
|
2011-11-24 14:22:58 +00:00
|
|
|
add_target_compile_flags(libxslt "-Wno-pointer-sign")
|
2011-09-04 17:32:30 +00:00
|
|
|
allow_warnings(libxslt)
|
|
|
|
endif()
|