Add a test for swipe-start hysteresis
[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/JSValueRef.h
28               API/WebKitAvailability.h
29         DESTINATION "${WEBKITGTK_HEADER_INSTALL_DIR}/JavaScriptCore"
30 )
31
32 if (ENABLE_INTROSPECTION)
33     install(FILES ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
34             DESTINATION ${INTROSPECTION_INSTALL_GIRDIR}
35     )
36     install(FILES ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.typelib
37             DESTINATION ${INTROSPECTION_INSTALL_TYPELIBDIR}
38     )
39 endif ()
40
41 add_definitions(-DSTATICALLY_LINKED_WITH_WTF)
42
43 list(APPEND JavaScriptCore_LIBRARIES
44     ${GLIB_LIBRARIES}
45 )
46 list(APPEND JavaScriptCore_SYSTEM_INCLUDE_DIRECTORIES
47     ${GLIB_INCLUDE_DIRS}
48 )