summaryrefslogtreecommitdiffstats
path: root/gtk/module.rules
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-06-17 22:59:19 +0000
committerjstebbins <[email protected]>2010-06-17 22:59:19 +0000
commit66e0b095b658b047bb155ec9cdcb0a3d1b4fa466 (patch)
tree6e98da80c6ffd30832b89cd3ef55bba4c64ead7e /gtk/module.rules
parent39628d490ff1c87c8ec45f24bb128a52e7fd2fbd (diff)
LinGui: revert part of the resource management changes of r3382
Since fedora's pygtk is broken, I can't parse gdk_pixbuf's with python. So revert to doing this in C code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3386 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/module.rules')
-rw-r--r--gtk/module.rules28
1 files changed, 24 insertions, 4 deletions
diff --git a/gtk/module.rules b/gtk/module.rules
index a1c1eb76f..09a8c34c7 100644
--- a/gtk/module.rules
+++ b/gtk/module.rules
@@ -1,10 +1,10 @@
$(eval $(call import.MODULE.rules,GTK))
-build: gtk.build
+build: hgtk.build gtk.build
install: gtk.install
install-strip: gtk.install-strip
uninstall: gtk.uninstall
-clean: gtk.clean
+clean: hgtk.clean gtk.clean
xclean: gtk.xclean
gtk.configure: $(GTK.CONFIGURE.stamp)
@@ -35,11 +35,31 @@ gtk.install:
gtk.uninstall:
$(MAKE) -C $(GTK.build/) uninstall
-gtk.clean:
+gtk.clean: hgtk.clean
$(MAKE) -C $(GTK.build/) clean
-gtk.xclean:
+gtk.xclean: hgtk.clean
$(MAKE) -C $(GTK.build/) distclean
$(RM.exe) -f $(GTK.out)
$(RM.exe) -fr $(GTK.build/)
+###############################################################################
+###############################################################################
+$(eval $(call import.MODULE.rules,HGTK))
+
+hgtk.build: $(CREATE_RES.exe)
+
+$(CREATE_RES.exe): | $(dir $(CREATE_RES.exe))
+$(CREATE_RES.exe): $(CREATE_RES.c.o) $(HGTKCOMMON.c.o)
+ $(call HGTK.GCC.EXE,$@,$^)
+
+$(HGTKCOMMON.c.o): | $(dir $(HGTKCOMMON.c.o))
+$(HGTKCOMMON.c.o): $(BUILD/)%-native.o: $(SRC/)%.c
+ $(call HGTK.GCC.C_O,$@,$<)
+
+$(CREATE_RES.c.o): | $(dir $(CREATE_RES.c.o))
+$(CREATE_RES.c.o): $(BUILD/)%-native.o: $(SRC/)%.c
+ $(call HGTK.GCC.C_O,$@,$<)
+
+hgtk.clean:
+ $(RM.exe) -f $(HGTK.out)