File: Makefile.am

package info (click to toggle)
bino 1.6.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,636 kB
  • sloc: cpp: 21,288; sh: 4,849; makefile: 314; sed: 16
file content (234 lines) | stat: -rw-r--r-- 7,729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# Copyright (C) 2010, 2011, 2012
# Martin Lambers <marlam@marlam.de>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and this
# notice are preserved. This file is offered as-is, without any warranty.

SUBDIRS = base

bin_PROGRAMS = bino

bino_SOURCES = \
	media_data.h media_data.cpp \
	media_object.h media_object.cpp \
	media_input.h media_input.cpp \
	dispatch.h dispatch.cpp \
	command_file.h command_file.cpp \
	color_matrix.h color_matrix.cpp \
	video_output.h video_output.cpp \
	video_output_qt.h video_output_qt.cpp \
	subtitle_renderer.h subtitle_renderer.cpp \
	audio_output.h audio_output.cpp \
	player.h player.cpp \
	mainwindow.h mainwindow.cpp \
	gui_common.h \
	inoutwidget.h inoutwidget.cpp \
	controlswidget.h controlswidget.cpp \
	crosstalkdialog.h crosstalkdialog.cpp \
	fullscreendialog.h fullscreendialog.cpp \
	audiodialog.h audiodialog.cpp \
	opendevicedialog.h opendevicedialog.cpp \
	qualitydialog.h qualitydialog.cpp \
	subtitledialog.h subtitledialog.cpp \
	videodialog.h videodialog.cpp \
	zoomdialog.h zoomdialog.cpp \
	colordialog.h colordialog.cpp \
	preferences.h preferences.cpp \
	gui.h gui.cpp \
	lib_versions.h lib_versions.cpp \
	main.cpp

ICONS_LOCAL_IPE = \
	icons-local/input-layout-mono.ipe \
	icons-local/input-layout-separate-left-right.ipe \
	icons-local/input-layout-separate-right-left.ipe \
	icons-local/input-layout-alternating-left-right.ipe \
	icons-local/input-layout-alternating-right-left.ipe \
	icons-local/input-layout-top-bottom.ipe \
	icons-local/input-layout-top-bottom-half.ipe \
	icons-local/input-layout-bottom-top.ipe \
	icons-local/input-layout-bottom-top-half.ipe \
	icons-local/input-layout-left-right.ipe \
	icons-local/input-layout-left-right-half.ipe \
	icons-local/input-layout-right-left.ipe \
	icons-local/input-layout-right-left-half.ipe \
	icons-local/input-layout-even-odd-rows.ipe \
	icons-local/input-layout-odd-even-rows.ipe \
	icons-local/output-type-stereo.ipe \
	icons-local/output-type-alternating.ipe \
	icons-local/output-type-mono-left.ipe \
	icons-local/output-type-mono-right.ipe \
	icons-local/output-type-top-bottom.ipe \
	icons-local/output-type-top-bottom-half.ipe \
	icons-local/output-type-left-right.ipe \
	icons-local/output-type-left-right-half.ipe \
	icons-local/output-type-even-odd-rows.ipe \
	icons-local/output-type-even-odd-columns.ipe \
	icons-local/output-type-checkerboard.ipe \
	icons-local/output-type-hdmi-frame-pack.ipe \
	icons-local/output-type-red-cyan.ipe \
	icons-local/output-type-green-magenta.ipe \
	icons-local/output-type-amber-blue.ipe \
	icons-local/output-type-red-green.ipe \
	icons-local/output-type-red-blue.ipe

ICONS = \
	icons/application-exit.png \
	icons/applications-internet.png \
	icons/audio-volume-high.png \
	icons/audio-volume-low.png \
	icons/audio-volume-medium.png \
	icons/audio-volume-muted.png \
        icons/camera-web.png \
	icons/dialog-information.png \
	icons/document-open.png \
	icons/help-about.png \
	icons/help-contents.png \
	icons/media-playback-pause.png \
	icons/media-playback-start.png \
	icons/media-playback-stop.png \
	icons/media-playlist-repeat.png \
	icons/media-seek-backward.png \
	icons/media-seek-forward.png \
	icons/preferences-desktop-keyboard.png \
	icons/view-fullscreen.png \
	icons/view-restore.png \
	$(patsubst %.ipe,%.png,$(ICONS_LOCAL_IPE))

EXTRA_DIST = \
	video_output_color.fs.glsl \
	video_output_render.fs.glsl \
	logo/README \
	logo/bino_logo.ico \
	logo/bino_logo.png \
	logo/bino_logo.svg \
	icons/COPYING \
	icons/README \
	icons-local/README \
	$(ICONS) $(ICONS_LOCAL_IPE)

qt_resources.qrc:
	$(AM_V_GEN)(echo '<!DOCTYPE RCC><RCC version="1.0">'; \
	echo '<qresource>'; \
	echo '<file alias="AUTHORS">$(top_srcdir)/AUTHORS</file>'; \
	echo '<file alias="LICENSE">$(top_srcdir)/COPYING</file>'; \
	echo '<file alias="logo/bino_logo.png">$(top_srcdir)/src/logo/bino_logo.png</file>'; \
	echo '<file alias="logo/64x64/bino.png">$(top_srcdir)/src/logo/64x64/bino.png</file>'; \
	for icon in $(ICONS); do echo '<file alias="'"$${icon}"'">$(top_srcdir)/src/'"$${icon}"'</file>'; done; \
	echo '</qresource>'; \
	echo '</RCC>') > $@

qt_resources-rcc.cpp: $(filter %.png,$(EXTRA_DIST)) ../AUTHORS ../COPYING

nodist_bino_SOURCES = \
	qt_resources.qrc \
	qt_resources-rcc.cpp \
	colordialog-moc.cpp \
	inoutwidget-moc.cpp \
	controlswidget-moc.cpp \
	crosstalkdialog-moc.cpp \
	fullscreendialog-moc.cpp \
	audiodialog-moc.cpp \
	zoomdialog-moc.cpp \
	opendevicedialog-moc.cpp \
	qualitydialog-moc.cpp \
	videodialog-moc.cpp \
	subtitledialog-moc.cpp \
	mainwindow-moc.cpp \
	preferences-moc.cpp \
	video_output_qt-moc.cpp \
	video_output_color.fs.glsl.h \
	video_output_render.fs.glsl.h

BUILT_SOURCES = $(nodist_bino_SOURCES)

CLEANFILES = $(BUILT_SOURCES)

DEFS += -DHTMLDIR=\"$(htmldir)\" -DLOCALEDIR=\"$(localedir)\"

AM_CPPFLAGS = \
	$(libavformat_CFLAGS) $(libavdevice_CFLAGS) $(libswscale_CFLAGS) $(libass_CFLAGS) \
	$(libopenal_CFLAGS) $(libgl_CFLAGS) $(libglewmx_CFLAGS) $(libglew_CFLAGS) $(libqtopengl_CFLAGS)

bino_LDADD = $(top_builddir)/src/base/libbase.a $(LIBINTL) $(LIBICONV) \
	$(libavformat_LIBS) $(libavdevice_LIBS) $(libswscale_LIBS) $(libass_LIBS) \
	$(libopenal_LIBS) $(libgl_LIBS) $(libglewmx_LIBS) $(libglew_LIBS) $(libqtopengl_LIBS)

if HAVE_LIBGLEWMX
AM_CPPFLAGS += -DGLEW_MX
endif

if HAVE_LIBEQUALIZER
bino_SOURCES += player_equalizer.h player_equalizer.cpp
AM_CPPFLAGS += $(libEqualizer_CFLAGS)
bino_LDADD += $(libEqualizer_LIBS)
endif

if HAVE_LIRC
bino_SOURCES += lirc.h lirc.cpp
AM_CPPFLAGS += $(lirc_CFLAGS)
bino_LDADD += $(lirc_LIBS)
endif

if W32
bino_SOURCES += logo/bino_logo.ico
.ico.o:
	$(AM_V_GEN)echo "IDI_ICON1 ICON DISCARDABLE \"$<\"" | $(WINDRES) -o $@
endif

if HAVE_LIBXNVCTRL
bino_SOURCES += NvSDIout.cpp NvSDIout.h NvSDIutils.cpp NvSDIutils.h sdioutputdialog.cpp sdioutputdialog.h
AM_CPPFLAGS += $(xnvctrl_CFLAGS)
bino_LDADD += $(xnvctrl_LDFLAGS) -lXNVCtrl -lX11
nodist_bino_SOURCES += sdioutputdialog-moc.cpp
endif

iconsdatadir = $(datadir)/icons/hicolor
icons16dir = $(iconsdatadir)/16x16/apps
icons32dir = $(iconsdatadir)/32x32/apps
icons48dir = $(iconsdatadir)/48x48/apps
icons64dir = $(iconsdatadir)/64x64/apps
iconsscaldir = $(iconsdatadir)/scalable/apps
dist_icons16_DATA = logo/16x16/bino.png
dist_icons32_DATA = logo/32x32/bino.png
dist_icons48_DATA = logo/48x48/bino.png
dist_icons64_DATA = logo/64x64/bino.png
dist_iconsscal_DATA = logo/scalable/bino.svg
update-icon-cache:
	test -n "$(DESTDIR)" -o -z "$(GTK_UPDATE_ICON_CACHE)" || (umask 022 && $(GTK_UPDATE_ICON_CACHE) -q -f -t "$(iconsdatadir)")

appdatadir = $(datadir)/applications
dist_appdata_DATA = bino.desktop
update-desktop-database:
	test -n "$(DESTDIR)" -o -z "$(UPDATE_DESKTOP_DATABASE)" || (umask 022 && $(UPDATE_DESKTOP_DATABASE) "$(appdatadir)")

install-data-hook: update-icon-cache update-desktop-database
uninstall-hook: update-icon-cache update-desktop-database


moc_verbose = $(moc_verbose_$(V))
moc_verbose_ = $(moc_verbose_$(AM_DEFAULT_VERBOSITY))
moc_verbose_0 = @echo "  MOC     " $@;

%-moc.cpp: %.h
	$(moc_verbose)$(MOC) -o $@ $<

rcc_verbose = $(rcc_verbose_$(V))
rcc_verbose_ = $(rcc_verbose_$(AM_DEFAULT_VERBOSITY))
rcc_verbose_0 = @echo "  RCC     " $@;

%-rcc.cpp: %.qrc
	$(rcc_verbose)$(RCC) -o $@ $<

%.glsl.h: %.glsl
	$(AM_V_GEN)MACRONAME="`echo $< | sed -e s/^.*\\\/// -e s/\\\.glsl$$// -e s/[\\\.-]/_/g | tr [a-z] [A-Z]`_GLSL_STR"; \
	(echo "/* GENERATED AUTOMATICALLY FROM $< */"; \
	 echo "#ifndef $$MACRONAME"; \
	 echo "#define $$MACRONAME \\"; \
	 sed -e s/\\\\/\\\\\\\\/g \
	     -e s/\"/\\\\\"/g \
	     -e s/^/\"/ \
	     -e s/$$/\\\\n\"\\\\/ < $<; \
	 echo \"\"; \
	 echo "#endif") > $@