vout: remove dead OSD code
[vlc.git] / src / Makefile.am
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
4
5 AUTOMAKE_OPTIONS = subdir-objects
6
7 NULL =
8 EXTRA_DIST = \
9         vlc-plugin.pc.in \
10         libvlccore.sym \
11         revision.txt
12
13 BUILT_SOURCES = $(nodist_pluginsinclude_HEADERS)
14 CLEANFILES = $(BUILT_SOURCES)
15
16 SUFFIXES = .pc.in .pc .rc.in .rc
17
18 ###############################################################################
19 # Headers
20 ###############################################################################
21
22 pluginsincludedir = $(pkgincludedir)/plugins
23
24 pluginsinclude_HEADERS = \
25         ../include/vlc_access.h \
26         ../include/vlc_aout.h \
27         ../include/vlc_aout_volume.h \
28         ../include/vlc_arrays.h \
29         ../include/vlc_art_finder.h \
30         ../include/vlc_atomic.h \
31         ../include/vlc_avcodec.h \
32         ../include/vlc_bits.h \
33         ../include/vlc_block.h \
34         ../include/vlc_block_helper.h \
35         ../include/vlc_charset.h \
36         ../include/vlc_codec.h \
37         ../include/vlc_common.h \
38         ../include/vlc_config.h \
39         ../include/vlc_config_cat.h \
40         ../include/vlc_configuration.h \
41         ../include/vlc_cpu.h \
42         ../include/vlc_dialog.h \
43         ../include/vlc_demux.h \
44         ../include/vlc_epg.h \
45         ../include/vlc_es.h \
46         ../include/vlc_es_out.h \
47         ../include/vlc_events.h \
48         ../include/vlc_filter.h \
49         ../include/vlc_fourcc.h \
50         ../include/vlc_fs.h \
51         ../include/vlc_gcrypt.h \
52         ../include/vlc_opengl.h \
53         ../include/vlc_http.h \
54         ../include/vlc_httpd.h \
55         ../include/vlc_image.h \
56         ../include/vlc_inhibit.h \
57         ../include/vlc_input.h \
58         ../include/vlc_input_item.h \
59         ../include/vlc_keys.h \
60         ../include/vlc_main.h \
61         ../include/vlc_md5.h \
62         ../include/vlc_messages.h \
63         ../include/vlc_meta.h \
64         ../include/vlc_media_library.h \
65         ../include/vlc_mime.h \
66         ../include/vlc_modules.h \
67         ../include/vlc_mouse.h \
68         ../include/vlc_mtime.h \
69         ../include/vlc_network.h \
70         ../include/vlc_objects.h \
71         ../include/vlc_picture.h \
72         ../include/vlc_picture_fifo.h \
73         ../include/vlc_picture_pool.h \
74         ../include/vlc_playlist.h \
75         ../include/vlc_plugin.h \
76         ../include/vlc_probe.h \
77         ../include/vlc_rand.h \
78         ../include/vlc_services_discovery.h \
79         ../include/vlc_sql.h \
80         ../include/vlc_sout.h \
81         ../include/vlc_spu.h \
82         ../include/vlc_stream.h \
83         ../include/vlc_strings.h \
84         ../include/vlc_subpicture.h \
85         ../include/vlc_text_style.h \
86         ../include/vlc_threads.h \
87         ../include/vlc_tls.h \
88         ../include/vlc_url.h \
89         ../include/vlc_variables.h \
90         ../include/vlc_vlm.h \
91         ../include/vlc_video_splitter.h \
92         ../include/vlc_vout.h \
93         ../include/vlc_vout_display.h \
94         ../include/vlc_vout_osd.h \
95         ../include/vlc_vout_window.h \
96         ../include/vlc_xml.h \
97         ../include/vlc_xlib.h \
98         $(NULL)
99 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
100
101 noinst_HEADERS = \
102         ../include/vlc_codec_synchro.h \
103         ../include/vlc_codecs.h \
104         ../include/vlc_extensions.h \
105         ../include/vlc_fixups.h \
106         ../include/vlc_interface.h \
107         ../include/vlc_intf_strings.h \
108         ../include/vlc_iso_lang.h \
109         ../include/vlc_memory.h \
110         ../include/vlc_osd.h \
111         ../include/vlc_pgpkey.h \
112         ../include/vlc_update.h \
113         ../include/vlc_vod.h \
114         ../include/vlc_vout_wrapper.h \
115         ../include/vlc_windows_interfaces.h \
116         $(NULL)
117
118 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
119         $(AM_V_at)rm -f -- "$@.tmp"
120         $(AM_V_at)mkdir -p -- ../include
121         $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
122         echo "static const char psz_license[] =" && \
123         sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
124         echo ";" && \
125         echo "static const char psz_thanks[] =" && \
126         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
127                 "$(top_srcdir)/THANKS" && \
128         echo ";" && \
129         echo "static const char psz_authors[] =" && \
130         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
131                 "$(top_srcdir)/AUTHORS" && \
132         echo ";") >> "$@.tmp"
133         $(AM_V_at)mv -f -- "$@.tmp" "$@"
134
135 ###############################################################################
136 # pkg-config integration
137 ###############################################################################
138
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = vlc-plugin.pc
141 CLEANFILES += $(pkgconfig_DATA)
142
143 .pc.in.pc: $(top_builddir)/config.status
144         $(AM_V_GEN)cd "$(top_builddir)" && \
145         $(SHELL) ./config.status --file="src/$@"
146
147 ##############################################################################
148 # Windows resource files
149 ##############################################################################
150
151 if HAVE_WIN32
152 noinst_DATA = libvlc_win32_rc.rc
153 endif
154 EXTRA_DIST += libvlc_win32_rc.rc.in
155
156 .rc.in.rc: $(top_builddir)/config.status
157         cd "$(top_builddir)" && \
158         $(SHELL) ./config.status --file="src/$@"
159
160 ###############################################################################
161 # Building libvlc
162 ###############################################################################
163
164 lib_LTLIBRARIES = libvlccore.la
165
166 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
167         -DMODULE_STRING=\"main\" \
168         -DLOCALEDIR=\"$(localedir)\" \
169         -DPKGDATADIR=\"$(vlcdatadir)\" \
170         -DPKGLIBDIR=\"$(vlclibdir)\"
171 AM_CFLAGS = $(CFLAGS_libvlccore)
172 if HAVE_DYNAMIC_PLUGINS
173 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
174 endif
175 if HAVE_DBUS
176 AM_CPPFLAGS += -DHAVE_DBUS
177 AM_CFLAGS += $(DBUS_CFLAGS)
178 endif
179
180 libvlccore_la_SOURCES = $(SOURCES_libvlc)
181 libvlccore_la_LDFLAGS = \
182         -no-undefined \
183         $(LDFLAGS_libvlccore) \
184         -no-undefined \
185         -export-symbols $(srcdir)/libvlccore.sym \
186         -version-info 5:0:0
187 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
188         ../compat/libcompat.la \
189         $(LTLIBINTL) $(LTLIBICONV) \
190         $(IDN_LIBS) $(LIBPTHREAD) $(SOCKET_LIBS) $(LIBDL) $(LIBM)
191 libvlccore_la_DEPENDENCIES = libvlccore.sym
192 if HAVE_WIN32
193 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
194 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version
195 endif
196 if HAVE_DBUS
197 libvlccore_la_LIBADD += $(DBUS_LIBS)
198 endif
199
200 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
201         $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
202
203 EXTRA_libvlccore_la_SOURCES = \
204         $(SOURCES_libvlc_darwin) \
205         $(SOURCES_libvlc_android) \
206         $(SOURCES_libvlc_linux) \
207         $(SOURCES_libvlc_win32) \
208         $(SOURCES_libvlc_os2) \
209         $(SOURCES_libvlc_other) \
210         $(SOURCES_libvlc_httpd) \
211         $(SOURCES_libvlc_sout) \
212         $(SOURCES_libvlc_vlm) \
213         $(NULL)
214 if HAVE_DARWIN
215 libvlccore_la_SOURCES += $(SOURCES_libvlc_darwin)
216 else
217 if HAVE_ANDROID
218 libvlccore_la_SOURCES += $(SOURCES_libvlc_android)
219 else
220 if HAVE_LINUX
221 libvlccore_la_SOURCES += $(SOURCES_libvlc_linux)
222 else
223 if HAVE_WIN32
224 libvlccore_la_SOURCES += $(SOURCES_libvlc_win32)
225 else
226 if HAVE_SYMBIAN
227 #libvlccore_la_SOURCES += $(SOURCES_libvlc_symbian)
228 else
229 if HAVE_OS2
230 libvlccore_la_SOURCES += $(SOURCES_libvlc_os2)
231 else
232 libvlccore_la_SOURCES += $(SOURCES_libvlc_other)
233 endif
234 endif
235 endif
236 endif
237 endif
238 endif
239 if BUILD_HTTPD
240 libvlccore_la_SOURCES += $(SOURCES_libvlc_httpd)
241 endif
242 if ENABLE_SOUT
243 libvlccore_la_SOURCES += $(SOURCES_libvlc_sout)
244 if ENABLE_VLM
245 libvlccore_la_SOURCES += $(SOURCES_libvlc_vlm)
246 endif
247 endif
248 if BUILD_OSDMENU
249 libvlccore_la_SOURCES += osd/osd.c
250 AM_CPPFLAGS += -DOSDMENU
251 endif
252
253 SOURCES_libvlc_darwin = \
254         posix/darwin_dirs.c \
255         posix/filesystem.c \
256         posix/plugin.c \
257         posix/thread.c \
258         posix/timer.c \
259         posix/darwin_specific.c \
260         posix/rand.c \
261         $(NULL)
262
263 SOURCES_libvlc_android = \
264         android/dirs.c \
265         android/thread.c \
266         posix/filesystem.c \
267         posix/plugin.c \
268         posix/timer.c \
269         posix/linux_cpu.c \
270         posix/linux_specific.c \
271         posix/specific.c \
272         posix/rand.c \
273         $(NULL)
274
275 SOURCES_libvlc_linux = \
276         posix/dirs.c \
277         posix/filesystem.c \
278         posix/plugin.c \
279         posix/thread.c \
280         posix/timer.c \
281         posix/linux_cpu.c \
282         posix/linux_specific.c \
283         posix/specific.c \
284         posix/rand.c \
285         $(NULL)
286
287 SOURCES_libvlc_win32 = \
288         win32/dirs.c \
289         win32/filesystem.c \
290         win32/plugin.c \
291         win32/thread.c \
292         win32/specific.c \
293         win32/winsock.c \
294         win32/rand.c \
295         $(NULL)
296
297 SOURCES_libvlc_symbian = \
298         symbian/path.cpp \
299         symbian/dirs.c \
300         win32/plugin.c \
301         posix/rand.c \
302         $(NULL)
303
304 SOURCES_libvlc_os2 = \
305         os2/getaddrinfo.c \
306         os2/dirs.c \
307         os2/filesystem.c \
308         os2/plugin.c \
309         os2/thread.c \
310         os2/specific.c \
311         os2/rand.c \
312         $(NULL)
313
314 SOURCES_libvlc_other = \
315         posix/dirs.c \
316         posix/filesystem.c \
317         posix/thread.c \
318         posix/timer.c \
319         posix/plugin.c \
320         posix/specific.c \
321         posix/rand.c \
322         $(NULL)
323
324 SOURCES_libvlc_common = \
325         libvlc.c \
326         libvlc.h \
327         libvlc-module.c \
328         missing.c \
329         revision.c \
330         version.c \
331         interface/dialog.c \
332         interface/interface.c \
333         playlist/playlist_internal.h \
334         playlist/art.c \
335         playlist/art.h \
336         playlist/aout.c \
337         playlist/thread.c \
338         playlist/control.c \
339         playlist/engine.c \
340         playlist/fetcher.c \
341         playlist/fetcher.h \
342         playlist/sort.c \
343         playlist/loadsave.c \
344         playlist/preparser.c \
345         playlist/preparser.h \
346         playlist/tree.c \
347         playlist/item.c \
348         playlist/search.c \
349         playlist/services_discovery.c \
350         input/item.c \
351         input/access.c \
352         input/clock.c \
353         input/control.c \
354         input/decoder.c \
355         input/decoder_synchro.c \
356         input/demux.c \
357         input/es_out.c \
358         input/es_out_timeshift.c \
359         input/event.c \
360         input/input.c \
361         input/info.h \
362         input/meta.c \
363         input/access.h \
364         input/clock.h \
365         input/decoder.h \
366         input/demux.h \
367         input/es_out.h \
368         input/es_out_timeshift.h \
369         input/event.h \
370         input/item.h \
371         input/stream.h \
372         input/input_internal.h \
373         input/input_interface.h \
374         input/vlm_internal.h \
375         input/vlm_event.h \
376         input/resource.h \
377         input/resource.c \
378         input/stats.c \
379         input/stream.c \
380         input/stream_demux.c \
381         input/stream_filter.c \
382         input/stream_memory.c \
383         input/subtitles.c \
384         input/var.c \
385         video_output/chrono.h \
386         video_output/control.c \
387         video_output/control.h \
388         video_output/display.c \
389         video_output/display.h \
390         video_output/event.h \
391         video_output/inhibit.c \
392         video_output/inhibit.h \
393         video_output/interlacing.c \
394         video_output/interlacing.h \
395         video_output/snapshot.c \
396         video_output/snapshot.h \
397         video_output/statistic.h \
398         video_output/postprocessing.c \
399         video_output/postprocessing.h \
400         video_output/video_output.c \
401         video_output/video_text.c \
402         video_output/video_epg.c \
403         video_output/video_widgets.c \
404         video_output/vout_subpictures.c \
405         video_output/window.c \
406         video_output/opengl.c \
407         video_output/vout_intf.c \
408         video_output/vout_internal.h \
409         video_output/vout_control.h \
410         video_output/vout_wrapper.c \
411         audio_output/aout_internal.h \
412         audio_output/common.c \
413         audio_output/dec.c \
414         audio_output/filters.c \
415         audio_output/output.c \
416         audio_output/volume.c \
417         network/getaddrinfo.c \
418         network/io.c \
419         network/tcp.c \
420         network/udp.c \
421         network/rootbind.c \
422         network/tls.c \
423         text/charset.c \
424         text/strings.c \
425         text/unicode.c \
426         text/url.c \
427         text/filesystem.c \
428         text/iso_lang.c \
429         text/iso-639_def.h \
430         misc/md5.c \
431         misc/probe.c \
432         misc/rand.c \
433         misc/mtime.c \
434         misc/block.c \
435         misc/fourcc.c \
436         misc/es_format.c \
437         misc/picture.c \
438         misc/picture_fifo.c \
439         misc/picture_pool.c \
440         modules/modules.h \
441         modules/modules.c \
442         modules/bank.c \
443         modules/cache.c \
444         modules/entry.c \
445         modules/textdomain.c \
446         misc/threads.c \
447         misc/cpu.c \
448         misc/epg.c \
449         misc/exit.c \
450         config/configuration.h \
451         config/core.c \
452         config/chain.c \
453         config/file.c \
454         config/help.c \
455         config/intf.c \
456         config/keys.c \
457         config/cmdline.c \
458         config/getopt.c \
459         config/vlc_getopt.h \
460         misc/events.c \
461         misc/image.c \
462         misc/messages.c \
463         misc/mime.c \
464         misc/objects.c \
465         misc/variables.h \
466         misc/variables.c \
467         misc/error.c \
468         misc/update.h \
469         misc/update.c \
470         misc/update_crypto.c \
471         misc/xml.c \
472         misc/media_library.c \
473         extras/libc.c \
474         extras/tdestroy.c \
475         misc/filter.c \
476         misc/filter_chain.c \
477         misc/http_auth.c \
478         misc/sql.c \
479         misc/text_style.c \
480         misc/subpicture.c \
481         misc/subpicture.h \
482         $(NULL)
483
484 SOURCES_libvlc_httpd = \
485         network/httpd.c \
486         $(NULL)
487
488 SOURCES_libvlc_sout = \
489         stream_output/stream_output.c \
490         stream_output/stream_output.h \
491         stream_output/announce.c \
492         stream_output/sap.c \
493         stream_output/sdp.c \
494         $(NULL)
495
496 SOURCES_libvlc_vlm = \
497         input/vlm.c \
498         input/vlm_event.c \
499         input/vlmshell.c \
500         $(NULL)
501
502 SOURCES_libvlc = \
503         $(SOURCES_libvlc_common) \
504         $(NULL)
505
506 # Unit/regression tests
507 #
508 check_PROGRAMS = \
509         test_block \
510         test_dictionary \
511         test_i18n_atof \
512         test_md5 \
513         test_timer \
514         test_url \
515         test_utf8 \
516         test_xmlent \
517         test_headers
518
519 TESTS = $(check_PROGRAMS)
520
521 test_block_SOURCES = test/block_test.c
522 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
523 test_block_DEPENDENCIES =
524
525 test_dictionary_SOURCES = test/dictionary.c
526 test_i18n_atof_SOURCES = test/i18n_atof.c
527 test_md5_SOURCES = test/md5.c
528 test_timer_SOURCES = test/timer.c
529 test_url_SOURCES = test/url.c
530 test_utf8_SOURCES = test/utf8.c
531 test_xmlent_SOURCES = test/xmlent.c
532 test_headers_SOURCES = test/headers.c
533
534 AM_LDFLAGS = -no-install
535 LDADD = libvlccore.la \
536         ../compat/libcompat.la
537
538 ###############################################################################
539 # GIT revision
540 ###############################################################################
541
542 BUILT_SOURCES += stamp-revision
543 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
544
545 $(srcdir)/revision.c: $(srcdir)/revision.txt
546         $(AM_V_at)rm -f -- $@
547         $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
548                 > $@
549
550 $(srcdir)/revision.txt:
551         $(AM_V_at)$(MAKE) stamp-revision
552         $(AM_V_GEN)touch $@
553
554 stamp-revision:
555         $(AM_V_at)rm -f -- revision.tmp
556         $(AM_V_GEN)if ! git \
557                         --git-dir="$(top_srcdir)/.git/" describe \
558                         --tags --long --match '?.*.*' --always; then \
559                 cat $(srcdir)/revision.txt ; \
560         fi > revision.tmp
561         $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
562                 rm -f -- revision.tmp; \
563         else \
564                 mv -f -- revision.tmp $(srcdir)/revision.txt; \
565         fi
566 #2>&1
567
568 ###############################################################################
569 # Unit/regression test
570 ###############################################################################
571
572 dist_check_SCRIPTS = check_headers
573
574 check-local:
575         for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
576         do \
577                 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
578                 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
579                 then \
580                         echo "Header $$h not included in test/headers.c!"; \
581                         exit 1; \
582                 fi ; \
583         done
584         $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
585
586 FORCE:
587         @echo "Generated source cannot be phony. Go away." >&2
588         @exit 1
589
590 .PHONY: FORCE