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