[CMake] Ignore warnings in system headers
[WebKit-https.git] / Source / JavaScriptCore / PlatformGTK.cmake
1 set(JavaScriptCore_OUTPUT_NAME javascriptcoregtk-${WEBKITGTK_API_VERSION})
2
3 configure_file(javascriptcoregtk.pc.in ${CMAKE_BINARY_DIR}/Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc @ONLY)
4 configure_file(JavaScriptCore.gir.in ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir @ONLY)
5
6 add_custom_command(
7     OUTPUT ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.typelib
8     DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
9     COMMAND ${INTROSPECTION_COMPILER} ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir -o ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.typelib
10 )
11
12 ADD_TYPELIB(${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.typelib)
13
14 install(FILES "${CMAKE_BINARY_DIR}/Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc"
15         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig"
16 )
17
18 install(FILES API/JavaScript.h
19               API/JSBase.h
20               API/JSContextRef.h
21               API/JSObjectRef.h
22               API/JSStringRef.h
23               API/JSValueRef.h
24               API/WebKitAvailability.h
25         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/JavaScriptCore"
26 )
27
28 if (ENABLE_INTROSPECTION)
29     install(FILES ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
30             DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
31     )
32     install(FILES ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.typelib
33             DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
34     )
35 endif ()
36
37 add_definitions(-DSTATICALLY_LINKED_WITH_WTF)
38
39 list(APPEND JavaScriptCore_LIBRARIES
40     ${GLIB_LIBRARIES}
41 )
42 list(APPEND JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
43     ${GLIB_INCLUDE_DIRS}
44 )