diff options
author | jstebbins <[email protected]> | 2015-03-27 19:18:30 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-03-27 19:18:30 +0000 |
commit | 8d9f7c7afc46a934ec492bc0253d1bea2dd6defc (patch) | |
tree | acf664c4db80f1d2eabd4d93c0890118900b59d2 /gtk/src/Makefile.am | |
parent | df41eea7c94d80d8776adb32f79466847a2fccd1 (diff) |
LinGui: move ui xml to GResource
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7024 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/Makefile.am')
-rw-r--r-- | gtk/src/Makefile.am | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/gtk/src/Makefile.am b/gtk/src/Makefile.am index 7f073e393..dc9f48941 100644 --- a/gtk/src/Makefile.am +++ b/gtk/src/Makefile.am @@ -55,6 +55,8 @@ ghb_SOURCES = \ preview.c \ data_res.c \ data_res.h \ + ui_res.c \ + ui_res.h \ icon_res.c \ icon_res.h \ icons.c \ @@ -106,30 +108,32 @@ data_res.h : data_res.gresource.xml $(srcdir)/internal_defaults.json $(srcdir)/s cp $(srcdir)/internal_defaults.json $(srcdir)/standard_presets.json . glib-compile-resources --generate --target=$@ --c-name ghb_data --manual-register $< -resources.o: resource_data.h data_res.h - -resource_data.h: resources.json - python2 $(srcdir)/quotestring.py resources.json resource_data.h +if GHB_GTK_3_14 +UI=ghb-3.14.ui +else +if GHB_GTK_3_12 +UI=ghb-3.12.ui +else +UI=ghb.ui +endif +endif -widget_reverse.deps: makedeps.py -widget.deps: makedeps.py - python2 $(srcdir)/makedeps.py +ui_res.c : ui_res.gresource.xml ui_res.h $(srcdir)/$(UI) + glib-compile-resources --generate --target=$@ --c-name ghb_ui --manual-register $< -resources.json: create_resources resources.list ghb.ui ghb-3.14.ui - ./create_resources -I$(srcdir) $(srcdir)/resources.list resources.json +ui_res.h : ui_res.gresource.xml $(srcdir)/$(UI) + cp $(srcdir)/$(UI) ghb.ui + glib-compile-resources --generate --target=$@ --c-name ghb_ui --manual-register $< -CREATE_RES.c = \ - create_resources.c \ - plist.c \ - values.c +ui_res.o: ui_res.h ui_res.c -CREATE_RES.c.o = $(patsubst %.c,%-native.o,$(CREATE_RES.c)) +main.o : ui_res.o -create_resources: $(CREATE_RES.c.o) - $(CC_FOR_BUILD) -g -o $@ $^ $(GHB_TOOLS_LIBS) +resources.o: data_res.h -$(CREATE_RES.c.o): %-native.o: %.c - $(CC_FOR_BUILD) $(GHB_TOOLS_CFLAGS) -g -c -o $@ $< +widget_reverse.deps: makedeps.py +widget.deps: makedeps.py + python2 $(srcdir)/makedeps.py ghbcellrenderertext.$(OBJEXT): marshalers.h |