[GTK] Move to the new web inspector
[WebKit-https.git] / Source / WebInspectorUI / GNUmakefile.am
1 ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml: GNUmakefile \
2         $(WebInspectorUI)/UserInterface/*.html \
3         $(WebInspectorUI)/UserInterface/*.js \
4         $(WebInspectorUI)/UserInterface/*.css \
5         $(WebInspectorUI)/UserInterface/Images/*.png \
6         $(WebInspectorUI)/UserInterface/Images/*.svg \
7         $(WebInspectorUI)/UserInterface/External/CodeMirror/* \
8         $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js
9         $(AM_V_GEN)
10         $(AM_V_at)mkdir -p ${GENSOURCES_WEBINSPECTOR_UI}
11         $(AM_V_at)echo '<?xml version="1.0" encoding="UTF-8"?>' > ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
12         $(AM_V_at)echo '<gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
13         $(AM_V_at)echo '  <gresource prefix="/org/webkitgtk/inspector">' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
14         $(AM_V_at)\
15                 for file in $^; do \
16                         if [ "$$file" = "GNUmakefile" ]; then continue; fi; \
17                         file=`echo $$file | sed s,$(WebInspectorUI)/,,g`; \
18                         echo "    <file>$$file</file>" >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml; \
19                 done
20         $(AM_V_at)echo '  </gresource>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
21         $(AM_V_at)echo '</gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
22
23 ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c: DerivedSources/WebInspectorUI/GResourceBundle.xml
24         $(AM_V_GEN)
25         $(AM_V_at)glib-compile-resources --generate --sourcedir=$(WebInspectorUI) \
26                 --target=${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
27
28 BUILT_SOURCES += \
29         DerivedSources/WebInspectorUI/GResourceBundle.xml
30
31 webcore_built_sources += \
32         DerivedSources/WebInspectorUI/GResourceBundle.c
33
34 EXTRA_DIST += \
35         $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js \
36         $(shell ls $(WebInspectorUI)/UserInterface/*.html) \
37         $(shell ls $(WebInspectorUI)/UserInterface/*.js) \
38         $(shell ls $(WebInspectorUI)/UserInterface/*.css) \
39         $(shell ls $(WebInspectorUI)/UserInterface/Images/*.png) \
40         $(shell ls $(WebInspectorUI)/UserInterface/Images/*.svg) \
41         $(shell ls $(WebInspectorUI)/UserInterface/External/CodeMirror/*)
42