X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=gtk%2Fsrc%2FMakefile.am;h=aec38fcfe8c0b5f480f38339e2a578e3b9d6f846;hb=4b72a63eb61a01275493c4bfb51ba02152d1c5e1;hp=71b3ac3635a4400f81d4bc4b26544dd630ce43cb;hpb=64a48a58d954017539afc5e4f1d5c6201873149e;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/gtk/src/Makefile.am b/gtk/src/Makefile.am index 71b3ac36..aec38fcf 100644 --- a/gtk/src/Makefile.am +++ b/gtk/src/Makefile.am @@ -2,16 +2,16 @@ if MINGW HB_LIBS= \ - -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdnav -ldvdread \ + -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -lavcore -ldca -ldvdnav -ldvdread \ -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate \ - -lx264 -lxvidcore -lmp4v2 -lswscale -ltheora -lfaad -lz \ - -lbz2 -liberty -lpthreadGC2 + -lx264 -lmp4v2 -lswscale -ltheora -lfaad -lz \ + -lbz2 -liberty -lpthreadGC2 -lbluray else HB_LIBS= \ - -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdnav -ldvdread \ + -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -lavcore -ldca -ldvdnav -ldvdread \ -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate \ - -lx264 -lxvidcore -lmp4v2 -lswscale -ltheora -lfaad -lz \ - -lbz2 -lpthread + -lx264 -lmp4v2 -lswscale -ltheora -lfaad -lz \ + -lbz2 -lpthread -lbluray endif icons = \ @@ -68,6 +68,8 @@ ghb_SOURCES = \ queuehandler.h \ audiohandler.c \ audiohandler.h \ + subtitlehandler.c \ + subtitlehandler.h \ x264handler.c \ x264handler.h \ main.c \ @@ -115,23 +117,36 @@ ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a resources.o: resource_data.h -resource_data.h: quotestring resources.plist - ./quotestring resources.plist resource_data.h +resource_data.h: resources.plist + python $(srcdir)/quotestring.py resources.plist resource_data.h -widget_reverse.deps: widgetdeps -widget.deps: widgetdeps - ./widgetdeps +widget_reverse.deps: makedeps.py +widget.deps: makedeps.py + python $(srcdir)/makedeps.py resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget.deps widget_reverse.deps ./create_resources -I$(srcdir) $(srcdir)/resources.list resources.plist -ghbcellrenderertext.c: marshalers.h +CREATE_RES.c = \ + create_resources.c \ + plist.c \ + values.c + +CREATE_RES.c.o = $(patsubst %.c,%-native.o,$(CREATE_RES.c)) + +create_resources: $(CREATE_RES.c.o) + $(CC_FOR_BUILD) -o $@ $^ $(GHB_TOOLS_LIBS) + +$(CREATE_RES.c.o): %-native.o: %.c + $(CC_FOR_BUILD) $(GHB_TOOLS_CFLAGS) -c -o $@ $< + +ghbcellrenderertext.$(OBJEXT): marshalers.h -marshalers.h: marshalers.list - glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h +$(srcdir)/marshalers.h: marshalers.list + glib-genmarshal --prefix=ghb_marshal $(srcdir)/marshalers.list --header > $(srcdir)/marshalers.h -marshalers.c: marshalers.list - glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c +$(srcdir)/marshalers.c: marshalers.list + glib-genmarshal --prefix=ghb_marshal $(srcdir)/marshalers.list --body > $(srcdir)/marshalers.c gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor @@ -147,7 +162,7 @@ uninstall-local: fi; \ rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \ done - @-if test -n "$(DESTDIR)/$(datadir)"; then \ + @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ @@ -169,7 +184,7 @@ install-data-local: mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \ $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \ done - @-if test -n "$(DESTDIR)/$(datadir)"; then \ + @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \