GNUmakefile.am 2.07 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml: GNUmakefile \
	$(WebInspectorUI)/UserInterface/*.html \
	$(WebInspectorUI)/UserInterface/*.js \
	$(WebInspectorUI)/UserInterface/*.css \
	$(WebInspectorUI)/UserInterface/Images/*.png \
	$(WebInspectorUI)/UserInterface/Images/*.svg \
	$(WebInspectorUI)/UserInterface/External/CodeMirror/* \
	$(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js
	$(AM_V_GEN)
	$(AM_V_at)mkdir -p ${GENSOURCES_WEBINSPECTOR_UI}
	$(AM_V_at)echo '<?xml version="1.0" encoding="UTF-8"?>' > ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
	$(AM_V_at)echo '<gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
	$(AM_V_at)echo '  <gresource prefix="/org/webkitgtk/inspector">' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
	$(AM_V_at)\
15
		basepath=`echo $(WebInspectorUI)/ | sed 's,^./,,g'`; \
16
17
		for file in $^; do \
			if [ "$$file" = "GNUmakefile" ]; then continue; fi; \
18
			file=`echo $$file | sed "s,$$basepath,,g"`; \
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
			echo "    <file>$$file</file>" >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml; \
		done
	$(AM_V_at)echo '  </gresource>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
	$(AM_V_at)echo '</gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml

${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c: DerivedSources/WebInspectorUI/GResourceBundle.xml
	$(AM_V_GEN)
	$(AM_V_at)glib-compile-resources --generate --sourcedir=$(WebInspectorUI) \
		--target=${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml

BUILT_SOURCES += \
	DerivedSources/WebInspectorUI/GResourceBundle.xml

webcore_built_sources += \
	DerivedSources/WebInspectorUI/GResourceBundle.c

EXTRA_DIST += \
	$(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js \
	$(shell ls $(WebInspectorUI)/UserInterface/*.html) \
	$(shell ls $(WebInspectorUI)/UserInterface/*.js) \
	$(shell ls $(WebInspectorUI)/UserInterface/*.css) \
	$(shell ls $(WebInspectorUI)/UserInterface/Images/*.png) \
	$(shell ls $(WebInspectorUI)/UserInterface/Images/*.svg) \
	$(shell ls $(WebInspectorUI)/UserInterface/External/CodeMirror/*)