summaryrefslogtreecommitdiffstats
path: root/gtk/src/Makefile.am
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-26 23:08:36 +0000
committerjstebbins <[email protected]>2015-03-26 23:08:36 +0000
commitdf41eea7c94d80d8776adb32f79466847a2fccd1 (patch)
treeacb0a416a096bc5eca3fb62d5ae391eeda5b6660 /gtk/src/Makefile.am
parent213c51f63a58d76f07c1a5e518877d32365b5d06 (diff)
LinGui: build icon resources from icons
...instead of committing 22MB icon resource file to svn git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7023 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/Makefile.am')
-rw-r--r--gtk/src/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/gtk/src/Makefile.am b/gtk/src/Makefile.am
index 52ab1499a..7f073e393 100644
--- a/gtk/src/Makefile.am
+++ b/gtk/src/Makefile.am
@@ -90,11 +90,19 @@ ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhandbrake.a
-data_res.c : data_res.gresource.xml internal_defaults.json standard_presets.json
+icon_res.c : icon_res.gresource.xml $(icons_dep)
+ glib-compile-resources --generate --target=$@ --c-name ghb_icons --manual-register --sourcedir=$(srcdir) $<
+
+icon_res.h : icon_res.gresource.xml $(icons_dep)
+ glib-compile-resources --generate --target=$@ --c-name ghb_icons --manual-register --sourcedir=$(srcdir) $<
+
+icon_res.o: icon_res.c icon_res.h
+
+data_res.c : data_res.gresource.xml $(srcdir)/internal_defaults.json $(srcdir)/standard_presets.json widget.deps widget_reverse.deps
cp $(srcdir)/internal_defaults.json $(srcdir)/standard_presets.json .
glib-compile-resources --generate --target=$@ --c-name ghb_data --manual-register $<
-data_res.h : data_res.gresource.xml internal_defaults.json standard_presets.json
+data_res.h : data_res.gresource.xml $(srcdir)/internal_defaults.json $(srcdir)/standard_presets.json widget.deps widget_reverse.deps
cp $(srcdir)/internal_defaults.json $(srcdir)/standard_presets.json .
glib-compile-resources --generate --target=$@ --c-name ghb_data --manual-register $<
@@ -107,7 +115,7 @@ widget_reverse.deps: makedeps.py
widget.deps: makedeps.py
python2 $(srcdir)/makedeps.py
-resources.json: create_resources resources.list $(icons_dep) internal_defaults.json standard_presets.json ghb.ui ghb-3.14.ui widget.deps widget_reverse.deps
+resources.json: create_resources resources.list ghb.ui ghb-3.14.ui
./create_resources -I$(srcdir) $(srcdir)/resources.list resources.json
CREATE_RES.c = \