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