< prev index next >

modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/CMakeLists.txt

Print this page


   1 set(XSLT_SOURCES
   2     libxslt/attributes.c
   3     libxslt/documents.c
   4     libxslt/extensions.c
   5     libxslt/extra.c
   6     libxslt/functions.c
   7     libxslt/imports.c
   8     libxslt/keys.c
   9     libxslt/namespaces.c
  10     libxslt/numbers.c
  11     libxslt/pattern.c
  12     libxslt/preproc.c
  13     libxslt/security.c
  14     libxslt/templates.c
  15     libxslt/transform.c
  16     libxslt/variables.c
  17     libxslt/xslt.c
  18     libxslt/xsltlocale.c
  19     libxslt/xsltutils.c
  20     libxslt/attrvt.c
  21 )
  22 
  23 # XSLT_COMPILE_OPTIONS are taken from Chromium.
  24 if (WIN32)
  25     set(XSLT_PLATFORM_INCLUDE_DIRECTORY win32)
  26     set(XSLT_COMPILE_OPTIONS
  27         "/wd4267"  # size_t to int.
  28 
  29         # TODO(brucedawson): http://crbug.com/554200 4311 is a VS
  30         # 2015 64-bit warning for pointer truncation
  31         "/wd4311"



  32     )
  33 elseif (APPLE)
  34     set(XSLT_PLATFORM_INCLUDE_DIRECTORY mac)
  35     set(XSLT_COMPILE_OPTIONS
  36         # numbers.c, xsltlocale.c, functions.c
  37         "-Wno-unused-parameter"
  38 
  39         # libxslt stores a char[3] in a `const unsigned char*`.
  40         "-Wno-pointer-sign"
  41 
  42         # xsltDefaultRegion and xsltCalibrateTimestamps are only
  43         # used with certain preprocessor defines set.
  44         "-Wno-unused-function"

  45      )
  46 elseif (UNIX AND NOT APPLE)
  47     set(XSLT_PLATFORM_INCLUDE_DIRECTORY linux)
  48     set(XSLT_COMPILE_OPTIONS
  49         # TODO:
  50         # Following warnings are seen only with GCC 4.9.4. Remove once
  51         # we move to latest GCC
  52         "-Wno-unused-function"
  53         "-Wno-unused-parameter"
  54         "-Wno-unused-variable"
  55         "-Wno-unused-but-set-variable"
  56         "-Wno-suggest-attribute=format"
  57         "-Wno-sign-compare"
  58     )
  59 endif ()
  60 
  61 add_library(XSLTJava STATIC ${XSLT_SOURCES})
  62 
  63 target_link_libraries(XSLTJava PUBLIC XMLJava)
  64 
  65 target_include_directories(XSLTJava
  66     PUBLIC "."
  67     PRIVATE "${XSLT_PLATFORM_INCLUDE_DIRECTORY}"
  68 )
  69 
  70 if (XSLT_COMPILE_OPTIONS)
  71     target_compile_options(XSLTJava PRIVATE ${XSLT_COMPILE_OPTIONS})
  72 endif ()
  73 
  74 target_compile_definitions(XSLTJava PUBLIC "LIBXSLT_STATIC")
   1 set(XSLT_SOURCES
   2     src/libxslt/attributes.c
   3     src/libxslt/documents.c
   4     src/libxslt/extensions.c
   5     src/libxslt/extra.c
   6     src/libxslt/functions.c
   7     src/libxslt/imports.c
   8     src/libxslt/keys.c
   9     src/libxslt/namespaces.c
  10     src/libxslt/numbers.c
  11     src/libxslt/pattern.c
  12     src/libxslt/preproc.c
  13     src/libxslt/security.c
  14     src/libxslt/templates.c
  15     src/libxslt/transform.c
  16     src/libxslt/variables.c
  17     src/libxslt/xslt.c
  18     src/libxslt/xsltlocale.c
  19     src/libxslt/xsltutils.c
  20     src/libxslt/attrvt.c
  21 )
  22 
  23 # XSLT_COMPILE_OPTIONS are taken from Chromium.
  24 if (WIN32)
  25     set(XSLT_PLATFORM_INCLUDE_DIRECTORY win32)
  26     set(XSLT_COMPILE_OPTIONS
  27         "/wd4267"  # size_t to int.
  28 
  29         # TODO(brucedawson): http://crbug.com/554200 4311 is a VS
  30         # 2015 64-bit warning for pointer truncation
  31         "/wd4311"
  32 
  33         # security.c: from 'const char *' to 'LPCWSTR'
  34         "/wd4133"
  35     )
  36 elseif (APPLE)
  37     set(XSLT_PLATFORM_INCLUDE_DIRECTORY mac)
  38     set(XSLT_COMPILE_OPTIONS
  39         # numbers.c, xsltlocale.c, functions.c
  40         "-Wno-unused-parameter"
  41 
  42         # libxslt stores a char[3] in a `const unsigned char*`.
  43         "-Wno-pointer-sign"
  44 
  45         # xsltDefaultRegion and xsltCalibrateTimestamps are only
  46         # used with certain preprocessor defines set.
  47         "-Wno-unused-function"
  48         "-Wno-unused-variable"
  49      )
  50 elseif (UNIX AND NOT APPLE)
  51     set(XSLT_PLATFORM_INCLUDE_DIRECTORY linux)
  52     set(XSLT_COMPILE_OPTIONS
  53         # TODO:
  54         # Following warnings are seen only with GCC 4.9.4. Remove once
  55         # we move to latest GCC
  56         "-Wno-unused-function"
  57         "-Wno-unused-parameter"
  58         "-Wno-unused-variable"
  59         "-Wno-unused-but-set-variable"
  60         "-Wno-suggest-attribute=format"
  61         "-Wno-sign-compare"
  62     )
  63 endif ()
  64 
  65 add_library(XSLTJava STATIC ${XSLT_SOURCES})
  66 
  67 target_link_libraries(XSLTJava PUBLIC XMLJava)
  68 
  69 target_include_directories(XSLTJava
  70     PUBLIC "src"
  71     PRIVATE "${XSLT_PLATFORM_INCLUDE_DIRECTORY}"
  72 )
  73 
  74 if (XSLT_COMPILE_OPTIONS)
  75     target_compile_options(XSLTJava PRIVATE ${XSLT_COMPILE_OPTIONS})
  76 endif ()
  77 
  78 target_compile_definitions(XSLTJava PUBLIC "LIBXSLT_STATIC")
< prev index next >