OSDN Git Service

LinGui: Add queue save/restore
[handbrake-jp/handbrake-jp-git.git] / gtk / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## Created by Anjuta
4
5 #HB_LIBS=$(HB_DIR)/libhb/libhb.a -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdread -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lxvidcore -lmp4v2 -lswscale -ltheora -lfaad -lz -lbz2 -lpthread
6
7 HB_LIBS=\
8         $(HB_DIR)/libhb/libhb.a \
9         $(HB_DIR)/contrib/lib/liba52.a \
10         $(HB_DIR)/contrib/lib/libmkv.a \
11         $(HB_DIR)/contrib/lib/libavformat.a \
12         $(HB_DIR)/contrib/lib/libavcodec.a \
13         $(HB_DIR)/contrib/lib/libavutil.a \
14         $(HB_DIR)/contrib/lib/libdca.a \
15         $(HB_DIR)/contrib/lib/libdvdread.a \
16         $(HB_DIR)/contrib/lib/libfaac.a \
17         $(HB_DIR)/contrib/lib/libmp3lame.a \
18         $(HB_DIR)/contrib/lib/libmpeg2.a \
19         $(HB_DIR)/contrib/lib/libvorbis.a \
20         $(HB_DIR)/contrib/lib/libvorbisenc.a \
21         $(HB_DIR)/contrib/lib/libogg.a \
22         $(HB_DIR)/contrib/lib/libsamplerate.a \
23         $(HB_DIR)/contrib/lib/libx264.a \
24         $(HB_DIR)/contrib/lib/libxvidcore.a \
25         $(HB_DIR)/contrib/lib/libmp4v2.a \
26         $(HB_DIR)/contrib/lib/libswscale.a \
27         $(HB_DIR)/contrib/lib/libtheora.a \
28         $(HB_DIR)/contrib/lib/libfaad.a \
29         -lz \
30         -lbz2 \
31         -lpthread
32
33 icons = \
34         hb-activity.32.png \
35         hb-add-queue.32.png \
36         hb-canceled.16.png \
37         hb-complete.16.png \
38         hb-drawer.32.png \
39         hb-icon.128.png \
40         hb-icon.64.png \
41         hb-pause.32.png \
42         hb-play.32.png \
43         hb-queue.32.png \
44         hb-queue-delete.16.png \
45         hb-queue-job.16.png \
46         hb-queue-pass1.16.png \
47         hb-queue-pass2.16.png \
48         hb-queue-subtitle.16.png \
49         hb-remove.32.png \
50         hb-source.32.png \
51         hb-stop.32.png \
52         hb-working0.16.png \
53         hb-working1.16.png \
54         hb-working2.16.png \
55         hb-working3.16.png \
56         hb-working4.16.png \
57         hb-working5.16.png 
58
59 hb_menu = ghb.desktop
60
61 builderdir = $(datadir)/ghb/builder
62 builder_DATA = ghb.ui
63
64 AM_CPPFLAGS = \
65         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
66         -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
67         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
68         $(GHB_CFLAGS)
69
70 AM_CFLAGS =\
71          -Wall\
72          -g
73
74 bin_PROGRAMS = ghb 
75 noinst_PROGRAMS = makewidgetdeps quotestring
76
77 BUILT_SOURCES = HandBrakeCLI
78
79 HandBrakeCLI: $(HB_DIR)/HandBrakeCLI
80         /bin/cp $< $@
81
82 # Dummy file, not built.  Forces g++ linking
83 nodist_EXTRA_ghb_SOURCES = dummy.cpp
84
85 ghb_SOURCES = \
86         callbacks.c \
87         callbacks.h \
88         main.c \
89         settings.c \
90         settings.h \
91         presets.c \
92         presets.h \
93         values.c \
94         values.h \
95         plist.c \
96         plist.h \
97         hb-backend.c \
98         hb-backend.h \
99         renderer_button.h \
100         renderer_button.c \
101         ghbcellrenderertext.c \
102         ghbcellrenderertext.h \
103         ghb-dvd.c \
104         ghb-dvd.h \
105         marshalers.c \
106         marshalers.h
107
108 ghb_LDFLAGS = \
109         -Wl,--export-dynamic
110
111 ghb_LDADD = $(GHB_LIBS) $(HB_LIBS)
112
113 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
114
115 makewidgetdeps_SOURCES = \
116         plist.c \
117         plist.h \
118         values.c \
119         values.h \
120         makedeps.c 
121
122 makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
123
124 quotestring_SOURCES = preset_to_string.c
125
126 callbacks.c: widget_deps.h widget_reverse_deps.h
127
128 widget_deps.h: makewidgetdeps quotestring
129         ./makewidgetdeps
130         ./quotestring widget_deps widget_deps.h
131
132 widget_reverse_deps.h: makewidgetdeps quotestring
133         ./makewidgetdeps
134         ./quotestring widget_reverse_deps widget_reverse_deps.h
135
136 presets.c: internal_defaults.h standard_presets.h
137
138 internal_defaults.h: quotestring internal_defaults.xml
139         ./quotestring internal_defaults.xml internal_defaults.h
140
141 standard_presets.h: quotestring standard_presets.xml
142         ./quotestring standard_presets.xml standard_presets.h
143
144 ghbcellrenderertext.c: marshalers.h
145
146 marshalers.h: marshalers.list
147         glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
148
149 marshalers.c: marshalers.list
150         glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
151
152 EXTRA_DIST = $(builder_DATA) $(icons) HandBrakeCLI
153
154 uninstall-local:
155         for icon in $(icons); do \
156                 SIZE=`echo $$icon | cut -d. -f2`; \
157                 FILE=`echo $$icon | cut -d. -f1,3`; \
158                 if [ "$$SIZE" = "svg" ]; then \
159                         SIZE="scalable"; \
160                         FILE="$$FILE.svg"; \
161                 else \
162                         SIZE="$${SIZE}x$${SIZE}"; \
163                 fi; \
164                 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
165         done
166         rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
167
168 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
169
170 install-exec-local:
171         $(INSTALL_PROGRAM) $(srcdir)/HandBrakeCLI $(DESTDIR)/$(bindir)/HandBrakeCLI
172
173 install-data-local:
174         for icon in $(icons); do \
175                 SIZE=`echo $$icon | cut -d. -f2`; \
176                 FILE=`echo $$icon | cut -d. -f1,3`; \
177                 if [ "$$SIZE" = "svg" ]; then \
178                         SIZE="scalable"; \
179                         FILE="$$FILE.svg"; \
180                 else \
181                         SIZE="$${SIZE}x$${SIZE}"; \
182                 fi; \
183                 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
184                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
185         done
186         @-if test -n "$(DESTDIR)/$(datadir)"; then \
187                 echo "Updating Gtk icon cache."; \
188                 $(gtk_update_icon_cache); \
189         else \
190                 echo "*** Icon cache not updated. After install, run this:"; \
191                 echo "***   $(gtk_update_icon_cache)"; \
192         fi
193         mkdir -p $(DESTDIR)/$(datadir)/applications/; \
194         $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)