OSDN Git Service

forgot to checkin the new icon for picutre settings
[handbrake-jp/handbrake-jp-git.git] / gtk / src / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 HB_LIBS=\
4         $(HB_DIR)/libhb/libhb.a \
5         $(HB_DIR)/contrib/lib/liba52.a \
6         $(HB_DIR)/contrib/lib/libmkv.a \
7         $(HB_DIR)/contrib/lib/libavformat.a \
8         $(HB_DIR)/contrib/lib/libavcodec.a \
9         $(HB_DIR)/contrib/lib/libavutil.a \
10         $(HB_DIR)/contrib/lib/libdca.a \
11         $(HB_DIR)/contrib/lib/libdvdread.a \
12         $(HB_DIR)/contrib/lib/libfaac.a \
13         $(HB_DIR)/contrib/lib/libmp3lame.a \
14         $(HB_DIR)/contrib/lib/libmpeg2.a \
15         $(HB_DIR)/contrib/lib/libvorbis.a \
16         $(HB_DIR)/contrib/lib/libvorbisenc.a \
17         $(HB_DIR)/contrib/lib/libogg.a \
18         $(HB_DIR)/contrib/lib/libsamplerate.a \
19         $(HB_DIR)/contrib/lib/libx264.a \
20         $(HB_DIR)/contrib/lib/libxvidcore.a \
21         $(HB_DIR)/contrib/lib/libmp4v2.a \
22         $(HB_DIR)/contrib/lib/libswscale.a \
23         $(HB_DIR)/contrib/lib/libtheora.a \
24         $(HB_DIR)/contrib/lib/libfaad.a \
25         -lz \
26         -lbz2 \
27         -lpthread
28
29 icons = \
30         hb-icon.128.png 
31
32 icons_dep =     \
33         hb-activity.32.png \
34         hb-add-queue.32.png \
35         hb-canceled.16.png \
36         hb-complete.16.png \
37         hb-drawer.32.png \
38         hb-icon.128.png \
39         hb-icon.64.png \
40         hb-pause.32.png \
41         hb-play.32.png \
42         hb-pref.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 AM_CPPFLAGS = \
62         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
63         -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
64         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
65         $(GHB_CFLAGS)
66
67 AM_CFLAGS =\
68          -Wall\
69          -g
70
71 bin_PROGRAMS = ghb 
72 noinst_PROGRAMS = makewidgetdeps quotestring create_resources preset_xlat
73
74 BUILT_SOURCES = HandBrakeCLI
75
76 HandBrakeCLI: $(HB_DIR)/HandBrakeCLI
77         /bin/cp $< $@
78
79 # Dummy file, not built.  Forces g++ linking
80 nodist_EXTRA_ghb_SOURCES = dummy.cpp
81
82 ghb_SOURCES = \
83         callbacks.c \
84         callbacks.h \
85         queuehandler.c \
86         queuehandler.h \
87         audiohandler.c \
88         audiohandler.h \
89         x264handler.c \
90         x264handler.h \
91         main.c \
92         settings.c \
93         settings.h \
94         resources.c \
95         resources.h \
96         presets.c \
97         presets.h \
98         preview.c \
99         icons.c \
100         icons.h \
101         icon_tools.c \
102         icon_tools.h \
103         values.c \
104         values.h \
105         appcast.c \
106         appcast.h \
107         plist.c \
108         plist.h \
109         hb-backend.c \
110         hb-backend.h \
111         renderer_button.h \
112         renderer_button.c \
113         ghbcellrenderertext.c \
114         ghbcellrenderertext.h \
115         ghb-dvd.c \
116         ghb-dvd.h \
117         marshalers.c \
118         marshalers.h
119
120 ghb_LDFLAGS = \
121         -Wl,--export-dynamic -Wl,--exclude-libs,ALL
122
123 ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
124
125 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
126
127 makewidgetdeps_SOURCES = \
128         plist.c \
129         plist.h \
130         values.c \
131         values.h \
132         makedeps.c 
133
134 makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
135
136 create_resources_SOURCES = \
137         create_resources.c \
138         plist.c \
139         plist.h \
140         values.c \
141         values.h \
142         icon_tools.c \
143         icon_tools.h
144
145 create_resources_LDADD = $(GHBTOOLS_LIBS)
146
147 preset_xlat_SOURCES = \
148         preset_xlat.c \
149         plist.c \
150         plist.h \
151         values.c \
152         values.h
153
154 preset_xlat_LDADD = $(GHBTOOLS_LIBS)
155
156 quotestring_SOURCES = quotestring.c
157
158 dumbell: preset_xlat
159
160 resources.c: resource_data.h
161
162 resource_data.h: quotestring resources.plist
163         ./quotestring resources.plist resource_data.h
164
165 widget_deps: makewidgetdeps
166         ./makewidgetdeps
167
168 resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget_deps widget_reverse_deps
169         ./create_resources resources.list resources.plist
170
171 ghbcellrenderertext.c: marshalers.h
172
173 marshalers.h: marshalers.list
174         glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
175
176 marshalers.c: marshalers.list
177         glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
178
179 EXTRA_DIST = HandBrakeCLI
180
181 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
182
183 uninstall-local:
184         for icon in $(icons); do \
185                 SIZE=`echo $$icon | cut -d. -f2`; \
186                 FILE=`echo $$icon | cut -d. -f1,3`; \
187                 if [ "$$SIZE" = "svg" ]; then \
188                         SIZE="scalable"; \
189                         FILE="$$FILE.svg"; \
190                 else \
191                         SIZE="$${SIZE}x$${SIZE}"; \
192                 fi; \
193                 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
194         done
195         @-if test -n "$(DESTDIR)/$(datadir)"; then \
196                 echo "Updating Gtk icon cache."; \
197                 $(gtk_update_icon_cache); \
198         else \
199                 echo "*** Icon cache not updated. After install, run this:"; \
200                 echo "***   $(gtk_update_icon_cache)"; \
201         fi
202         rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
203
204 install-exec-local:
205         $(INSTALL_PROGRAM) $(srcdir)/HandBrakeCLI $(DESTDIR)/$(bindir)/HandBrakeCLI
206
207 install-data-local:
208         for icon in $(icons); do \
209                 SIZE=`echo $$icon | cut -d. -f2`; \
210                 FILE=`echo $$icon | cut -d. -f1,3`; \
211                 if [ "$$SIZE" = "svg" ]; then \
212                         SIZE="scalable"; \
213                         FILE="$$FILE.svg"; \
214                 else \
215                         SIZE="$${SIZE}x$${SIZE}"; \
216                 fi; \
217                 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
218                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
219         done
220         @-if test -n "$(DESTDIR)/$(datadir)"; then \
221                 echo "Updating Gtk icon cache."; \
222                 $(gtk_update_icon_cache); \
223         else \
224                 echo "*** Icon cache not updated. After install, run this:"; \
225                 echo "***   $(gtk_update_icon_cache)"; \
226         fi
227         mkdir -p $(DESTDIR)/$(datadir)/applications/; \
228         $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)