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