[WebIDL] Remove the need for the generator to know about native type mapping
[WebKit.git] / Source / ThirdParty / woff2 / CMakeLists.txt
1 set(WOFF2_DIR "${THIRDPARTY_DIR}/woff2")
2
3 set(WOFF2_INCLUDE_DIRECTORIES
4   "${WOFF2_DIR}/src"
5 )
6
7 set(WOFF2_SOURCES
8   ${WOFF2_DIR}/src/table_tags.cc
9   ${WOFF2_DIR}/src/variable_length.cc
10   ${WOFF2_DIR}/src/woff2_common.cc
11   ${WOFF2_DIR}/src/woff2_dec.cc
12   ${WOFF2_DIR}/src/woff2_out.cc
13 )
14
15 include_directories("${THIRDPARTY_DIR}/brotli/dec")
16 include_directories("${WOFF2_INCLUDE_DIRECTORIES}")
17 add_library(woff2 STATIC ${WOFF2_SOURCES})
18 target_link_libraries(woff2 brotli)
19 WEBKIT_SET_EXTRA_COMPILER_FLAGS(woff2)
20
21 if (COMPILER_IS_GCC_OR_CLANG)
22     ADD_TARGET_PROPERTIES(woff2 COMPILE_FLAGS "-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter")
23 endif ()
24
25 if (CMAKE_COMPILER_IS_GNUCXX)
26     ADD_TARGET_PROPERTIES(woff2 COMPILE_FLAGS "-Wno-unused-but-set-variable")
27 endif ()