OSDN Git Service

LinGui:
[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         -lhb \
5         -la52 \
6         -lmkv \
7         -lavformat \
8         -lavcodec \
9         -lavutil \
10         -ldca \
11         -ldvdread \
12         -lfaac \
13         -lmp3lame \
14         -lmpeg2 \
15         -lvorbis \
16         -lvorbisenc \
17         -logg \
18         -lsamplerate \
19         -lx264 \
20         -lxvidcore \
21         -lmp4v2 \
22         -lswscale \
23         -ltheora \
24         -lfaad \
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         resource_data.h resources.plist widget.deps widget_reverse.deps
74
75 # Dummy file, not built.  Forces g++ linking
76 nodist_EXTRA_ghb_SOURCES = dummy.cpp
77
78 ghb_SOURCES = \
79         callbacks.c \
80         callbacks.h \
81         queuehandler.c \
82         queuehandler.h \
83         audiohandler.c \
84         audiohandler.h \
85         x264handler.c \
86         x264handler.h \
87         main.c \
88         settings.c \
89         settings.h \
90         resources.c \
91         resources.h \
92         presets.c \
93         presets.h \
94         preview.c \
95         icons.c \
96         icons.h \
97         icon_tools.c \
98         icon_tools.h \
99         values.c \
100         values.h \
101         appcast.c \
102         appcast.h \
103         plist.c \
104         plist.h \
105         hb-backend.c \
106         hb-backend.h \
107         renderer_button.h \
108         renderer_button.c \
109         ghbcellrenderertext.c \
110         ghbcellrenderertext.h \
111         ghb-dvd.c \
112         ghb-dvd.h \
113         marshalers.c \
114         marshalers.h
115
116 ghb_LDFLAGS = \
117         -Wl,--export-dynamic -Wl,--exclude-libs,ALL
118
119 ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
120
121 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
122
123 makewidgetdeps_SOURCES = \
124         plist.c \
125         plist.h \
126         values.c \
127         values.h \
128         makedeps.c 
129
130 makewidgetdeps_LDADD = $(GHBTOOLS_LIBS)
131
132 create_resources_SOURCES = \
133         create_resources.c \
134         plist.c \
135         plist.h \
136         values.c \
137         values.h \
138         icon_tools.c \
139         icon_tools.h
140
141 create_resources_LDADD = $(GHBTOOLS_LIBS)
142
143 preset_xlat_SOURCES = \
144         preset_xlat.c \
145         plist.c \
146         plist.h \
147         values.c \
148         values.h
149
150 preset_xlat_LDADD = $(GHBTOOLS_LIBS)
151
152 quotestring_SOURCES = quotestring.c
153
154 dumbell: preset_xlat
155
156 resources.o: resource_data.h
157
158 resource_data.h: quotestring resources.plist
159         ./quotestring resources.plist resource_data.h
160
161 widget_reverse.deps: makewidgetdeps
162 widget.deps: makewidgetdeps
163         ./makewidgetdeps
164
165 resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget.deps widget_reverse.deps
166         ./create_resources -I$(srcdir) $(srcdir)/resources.list resources.plist
167
168 ghbcellrenderertext.c: marshalers.h
169
170 marshalers.h: marshalers.list
171         glib-genmarshal --prefix=ghb_marshal marshalers.list --header > marshalers.h
172
173 marshalers.c: marshalers.list
174         glib-genmarshal --prefix=ghb_marshal marshalers.list --body > marshalers.c
175
176 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
177
178 uninstall-local:
179         for icon in $(icons); do \
180                 SIZE=`echo $$icon | cut -d. -f2`; \
181                 FILE=`echo $$icon | cut -d. -f1,3`; \
182                 if [ "$$SIZE" = "svg" ]; then \
183                         SIZE="scalable"; \
184                         FILE="$$FILE.svg"; \
185                 else \
186                         SIZE="$${SIZE}x$${SIZE}"; \
187                 fi; \
188                 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
189         done
190         @-if test -n "$(DESTDIR)/$(datadir)"; then \
191                 echo "Updating Gtk icon cache."; \
192                 $(gtk_update_icon_cache); \
193         else \
194                 echo "*** Icon cache not updated. After install, run this:"; \
195                 echo "***   $(gtk_update_icon_cache)"; \
196         fi
197         rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
198
199 install-data-local:
200         for icon in $(icons); do \
201                 SIZE=`echo $$icon | cut -d. -f2`; \
202                 FILE=`echo $$icon | cut -d. -f1,3`; \
203                 if [ "$$SIZE" = "svg" ]; then \
204                         SIZE="scalable"; \
205                         FILE="$$FILE.svg"; \
206                 else \
207                         SIZE="$${SIZE}x$${SIZE}"; \
208                 fi; \
209                 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
210                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
211         done
212         @-if test -n "$(DESTDIR)/$(datadir)"; then \
213                 echo "Updating Gtk icon cache."; \
214                 $(gtk_update_icon_cache); \
215         else \
216                 echo "*** Icon cache not updated. After install, run this:"; \
217                 echo "***   $(gtk_update_icon_cache)"; \
218         fi
219         mkdir -p $(DESTDIR)/$(datadir)/applications/; \
220         $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)