[WebIDL] Remove the need for the generator to know about native type mapping
[WebKit.git] / Source / ThirdParty / brotli / CMakeLists.txt
1 set(BROTLI_DIR "${THIRDPARTY_DIR}/brotli")
2
3 set(BROTLI_INCLUDE_DIRECTORIES
4   "${BROTLI_DIR}/dec"
5 )
6
7 set(BROTLI_SOURCES
8     ${BROTLI_DIR}/dec/bit_reader.c
9     ${BROTLI_DIR}/dec/decode.c
10     ${BROTLI_DIR}/dec/dictionary.c
11     ${BROTLI_DIR}/dec/huffman.c
12     ${BROTLI_DIR}/dec/state.c
13 )
14
15 include_directories("${BROTLI_INCLUDE_DIRECTORIES}")
16 add_definitions(-DBROTLI_BUILD_PORTABLE)
17 add_library(brotli STATIC ${BROTLI_SOURCES})
18 WEBKIT_SET_EXTRA_COMPILER_FLAGS(brotli)
19
20 if (COMPILER_IS_CLANG)
21     ADD_TARGET_PROPERTIES(brotli COMPILE_FLAGS "-Wno-cast-align")
22 endif ()