1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/libxslt 3 ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/libwin-iconv) 4 5add_definitions( 6 -DHAVE_CONFIG_H 7 -DWIN32 8 -D_WINDOWS 9 -D_MBCS 10 -DHAVE_STAT 11 -DHAVE_WIN32_THREADS 12 -D_REENTRANT 13 -DLIBXML_STATIC) 14 15list(APPEND SOURCE 16 attributes.c 17 attrvt.c 18 documents.c 19 extensions.c 20 extra.c 21 functions.c 22 imports.c 23 keys.c 24 namespaces.c 25 numbers.c 26 pattern.c 27 preproc.c 28 security.c 29 templates.c 30 transform.c 31 variables.c 32 xslt.c 33 xsltlocale.c 34 xsltutils.c 35 precomp.h) 36 37add_library(libxslt SHARED ${SOURCE}) 38set_module_type(libxslt win32dll) 39target_link_libraries(libxslt libxml2 iconv-static zlib) 40add_importlibs(libxslt msvcrt ws2_32 kernel32) 41 42if(MSVC) 43 add_importlibs(libxslt ntdll) 44endif() 45 46add_pch(libxslt precomp.h SOURCE) 47add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all) 48 49if(USE_CLANG_CL OR (NOT MSVC)) 50 add_target_compile_flags(libxslt "-Wno-pointer-sign -Wno-unused-function") 51endif() 52