1169845c189e1cc0b1cc3bfba114999ccdba0202
[WebKit.git] / Source / WebKit / InspectorGResources.cmake
1 macro(WEBKIT_BUILD_INSPECTOR_GRESOURCES _derived_sources_dir)
2     add_custom_command(
3         OUTPUT ${_derived_sources_dir}/InspectorGResourceBundle.xml
4         DEPENDS ${CMAKE_BINARY_DIR}/inspector-resources.stamp
5                 ${TOOLS_DIR}/glib/generate-inspector-gresource-manifest.py
6         COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/glib/generate-inspector-gresource-manifest.py --input=${_derived_sources_dir}/InspectorResources --output=${_derived_sources_dir}/InspectorGResourceBundle.xml
7         VERBATIM
8     )
9
10     add_custom_command(
11         OUTPUT ${_derived_sources_dir}/InspectorGResourceBundle.c
12         DEPENDS ${_derived_sources_dir}/InspectorGResourceBundle.xml
13         COMMAND glib-compile-resources --generate --sourcedir=${_derived_sources_dir}/InspectorResources/WebInspectorUI --target=${_derived_sources_dir}/InspectorGResourceBundle.c ${_derived_sources_dir}/InspectorGResourceBundle.xml
14         VERBATIM
15     )
16 endmacro()