[GTK] [CMake] Improve the way we locate gobject-introspection
[WebKit-https.git] / Source / JavaScriptCore / PlatformGTK.cmake
1 configure_file(javascriptcoregtk.pc.in ${CMAKE_BINARY_DIR}/Source/JavaScriptCore/javascriptcoregtk-3.0.pc @ONLY)
2 configure_file(JavaScriptCore.gir.in ${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.gir @ONLY)
3
4 add_custom_command(
5     OUTPUT ${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.typelib
6     DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.gir
7     COMMAND ${INTROSPECTION_COMPILER} ${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.gir -o ${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.typelib
8 )
9
10 ADD_TYPELIB(${CMAKE_BINARY_DIR}/JavaScriptCore-3.0.typelib)