demux: heif: fix reading mdat relative extents
[vlc.git] / src / Makefile.am
blobd6bf427179ed71f003dfa2d348550ab571539515
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_cxx_helpers.hpp \
45         ../include/vlc_dialog.h \
46         ../include/vlc_demux.h \
47         ../include/vlc_epg.h \
48         ../include/vlc_es.h \
49         ../include/vlc_es_out.h \
50         ../include/vlc_events.h \
51         ../include/vlc_filter.h \
52         ../include/vlc_fourcc.h \
53         ../include/vlc_fs.h \
54         ../include/vlc_gcrypt.h \
55         ../include/vlc_opengl.h \
56         ../include/vlc_http.h \
57         ../include/vlc_httpd.h \
58         ../include/vlc_image.h \
59         ../include/vlc_inhibit.h \
60         ../include/vlc_input.h \
61         ../include/vlc_input_item.h \
62         ../include/vlc_interface.h \
63         ../include/vlc_keystore.h \
64         ../include/vlc_list.h \
65         ../include/vlc_md5.h \
66         ../include/vlc_messages.h \
67         ../include/vlc_meta.h \
68         ../include/vlc_meta_fetcher.h \
69         ../include/vlc_media_library.h \
70         ../include/vlc_memstream.h \
71         ../include/vlc_mime.h \
72         ../include/vlc_modules.h \
73         ../include/vlc_mouse.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_legacy.h \
80         ../include/vlc_player.h \
81         ../include/vlc_playlist.h \
82         ../include/vlc_plugin.h \
83         ../include/vlc_probe.h \
84         ../include/vlc_rand.h \
85         ../include/vlc_services_discovery.h \
86         ../include/vlc_fingerprinter.h \
87         ../include/vlc_interrupt.h \
88         ../include/vlc_renderer_discovery.h \
89         ../include/vlc_sout.h \
90         ../include/vlc_spu.h \
91         ../include/vlc_stream.h \
92         ../include/vlc_stream_extractor.h \
93         ../include/vlc_strings.h \
94         ../include/vlc_subpicture.h \
95         ../include/vlc_text_style.h \
96         ../include/vlc_threads.h \
97         ../include/vlc_tick.h \
98         ../include/vlc_timestamp_helper.h \
99         ../include/vlc_thumbnailer.h \
100         ../include/vlc_tls.h \
101         ../include/vlc_url.h \
102         ../include/vlc_variables.h \
103         ../include/vlc_vector.h \
104         ../include/vlc_viewpoint.h \
105         ../include/vlc_vlm.h \
106         ../include/vlc_video_splitter.h \
107         ../include/vlc_vout.h \
108         ../include/vlc_vout_display.h \
109         ../include/vlc_vout_osd.h \
110         ../include/vlc_vout_window.h \
111         ../include/vlc_xml.h \
112         ../include/vlc_xlib.h \
113         $(NULL)
114 nodist_pluginsinclude_HEADERS = ../include/vlc_about.h
116 noinst_HEADERS = \
117         ../include/vlc_codecs.h \
118         ../include/vlc_extensions.h \
119         ../include/vlc_fixups.h \
120         ../include/vlc_intf_strings.h \
121         ../include/vlc_iso_lang.h \
122         ../include/vlc_pgpkey.h \
123         ../include/vlc_update.h \
124         ../include/vlc_vod.h \
125         $(NULL)
127 ../include/vlc_about.h: Makefile.am $(top_srcdir)/COPYING $(top_srcdir)/THANKS $(top_srcdir)/AUTHORS
128         $(AM_V_at)rm -f -- "$@.tmp"
129         $(AM_V_at)mkdir -p -- ../include
130         $(AM_V_GEN)(echo "/* Automatically generated file - DO NOT EDIT */" && \
131         echo "static const char psz_license[] =" && \
132         sed 's/"/\\"/g;s/^.*$$/\"&\\n\"/' "$(top_srcdir)/COPYING" && \
133         echo ";" && \
134         echo "static const char psz_thanks[] =" && \
135         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
136                 "$(top_srcdir)/THANKS" && \
137         echo ";" && \
138         echo "static const char psz_authors[] =" && \
139         sed '/\$$Id:/d;s/"/\\"/g;s/<.*.> //;s/^.*$$/\"&\\n\"/' \
140                 "$(top_srcdir)/AUTHORS" && \
141         echo ";") >> "$@.tmp"
142         $(AM_V_at)mv -f -- "$@.tmp" "$@"
144 ###############################################################################
145 # pkg-config integration
146 ###############################################################################
148 pkgconfigdir = $(libdir)/pkgconfig
149 pkgconfig_DATA = vlc-plugin.pc
150 CLEANFILES += $(pkgconfig_DATA)
152 .pc.in.pc: $(top_builddir)/config.status
153         $(AM_V_GEN)cd "$(top_builddir)" && \
154         $(SHELL) ./config.status --file="src/$@"
156 ##############################################################################
157 # Windows resource files
158 ##############################################################################
160 if HAVE_WIN32
161 noinst_DATA = libvlc_win32_rc.rc
162 endif
163 EXTRA_DIST += libvlc_win32_rc.rc.in
165 .rc.in.rc: $(top_builddir)/config.status
166         cd "$(top_builddir)" && \
167         $(SHELL) ./config.status --file="src/$@"
169 ###############################################################################
170 # Building libvlc
171 ###############################################################################
173 lib_LTLIBRARIES = libvlccore.la
175 AM_CPPFLAGS = $(INCICONV) $(IDN_CFLAGS) \
176         -DMODULE_STRING=\"core\" \
177         -DSYSDATADIR=\"$(datadir)\" \
178         -DLIBDIR=\"$(libdir)\" \
179         -DLIBEXECDIR=\"$(libexecdir)\" \
180         -DLOCALEDIR=\"$(localedir)\" \
181         -DPKGDATADIR=\"$(pkgdatadir)\" \
182         -DPKGLIBDIR=\"$(pkglibdir)\" \
183         -DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
184 AM_CFLAGS = $(CFLAGS_libvlccore)
185 if HAVE_DYNAMIC_PLUGINS
186 AM_CPPFLAGS += -DHAVE_DYNAMIC_PLUGINS
187 endif
188 if HAVE_DBUS
189 AM_CPPFLAGS += -DHAVE_DBUS
190 AM_CFLAGS += $(DBUS_CFLAGS)
191 endif
193 libvlccore_la_SOURCES = \
194         libvlc.c \
195         libvlc.h \
196         libvlc-module.c \
197         missing.c \
198         revision.c \
199         version.c \
200         config/configuration.h \
201         config/core.c \
202         config/chain.c \
203         config/file.c \
204         config/help.c \
205         config/intf.c \
206         config/cmdline.c \
207         config/getopt.c \
208         config/vlc_getopt.h \
209         extras/libc.c \
210         modules/modules.h \
211         modules/modules.c \
212         modules/bank.c \
213         modules/cache.c \
214         modules/entry.c \
215         modules/textdomain.c \
216         interface/dialog.c \
217         interface/interface.c \
218         playlist_legacy/playlist_internal.h \
219         playlist_legacy/aout.c \
220         playlist_legacy/thread.c \
221         playlist_legacy/control.c \
222         playlist_legacy/engine.c \
223         playlist_legacy/sort.c \
224         playlist_legacy/loadsave.c \
225         playlist_legacy/tree.c \
226         playlist_legacy/item.c \
227         playlist_legacy/search.c \
228         playlist_legacy/services_discovery.c \
229         playlist_legacy/renderer.c \
230         playlist/content.c \
231         playlist/content.h \
232         playlist/control.c \
233         playlist/control.h \
234         playlist/item.c \
235         playlist/item.h \
236         playlist/notify.c \
237         playlist/notify.h \
238         playlist/player.c \
239         playlist/player.h \
240         playlist/playlist.c \
241         playlist/playlist.h \
242         playlist/preparse.c \
243         playlist/preparse.h \
244         playlist/randomizer.c \
245         playlist/randomizer.h \
246         playlist/request.c \
247         playlist/shuffle.c \
248         playlist/sort.c \
249         preparser/art.c \
250         preparser/art.h \
251         preparser/fetcher.c \
252         preparser/fetcher.h \
253         preparser/preparser.c \
254         preparser/preparser.h \
255         input/item.c \
256         input/access.c \
257         clock/clock_internal.c \
258         clock/input_clock.c \
259         input/control.c \
260         input/decoder.c \
261         input/demux.c \
262         input/demux_chained.c \
263         input/es_out.c \
264         input/es_out_timeshift.c \
265         input/input.c \
266         input/player.c \
267         input/player.h \
268         input/info.h \
269         input/meta.c \
270         clock/input_clock.h \
271         clock/clock_internal.h \
272         input/decoder.h \
273         input/demux.h \
274         input/es_out.h \
275         input/es_out_timeshift.h \
276         input/event.h \
277         input/item.h \
278         input/mrl_helpers.h \
279         input/stream.h \
280         input/input_internal.h \
281         input/input_interface.h \
282         input/vlm_internal.h \
283         input/vlm_event.h \
284         input/resource.h \
285         input/resource.c \
286         input/services_discovery.c \
287         input/stats.c \
288         input/stream.c \
289         input/stream_fifo.c \
290         input/stream_extractor.c \
291         input/stream_filter.c \
292         input/stream_memory.c \
293         input/subtitles.c \
294         input/thumbnailer.c \
295         input/var.c \
296         audio_output/aout_internal.h \
297         audio_output/common.c \
298         audio_output/dec.c \
299         audio_output/filters.c \
300         audio_output/output.c \
301         audio_output/volume.c \
302         video_output/chrono.h \
303         video_output/control.c \
304         video_output/control.h \
305         video_output/display.c \
306         video_output/display.h \
307         video_output/inhibit.c \
308         video_output/inhibit.h \
309         video_output/interlacing.c \
310         video_output/interlacing.h \
311         video_output/snapshot.c \
312         video_output/snapshot.h \
313         video_output/statistic.h \
314         video_output/video_output.c \
315         video_output/video_text.c \
316         video_output/video_epg.c \
317         video_output/video_widgets.c \
318         video_output/vout_subpictures.c \
319         video_output/vout_spuregion_helper.h \
320         video_output/vout_wrapper.h \
321         video_output/window.c \
322         video_output/window.h \
323         video_output/opengl.c \
324         video_output/vout_intf.c \
325         video_output/vout_internal.h \
326         video_output/vout_wrapper.c \
327         network/getaddrinfo.c \
328         network/http_auth.c \
329         network/httpd.c \
330         network/io.c \
331         network/tcp.c \
332         network/udp.c \
333         network/rootbind.c \
334         network/stream.c \
335         network/tls.c \
336         text/charset.c \
337         text/memstream.c \
338         text/strings.c \
339         text/unicode.c \
340         text/url.c \
341         text/filesystem.c \
342         text/iso_lang.c \
343         text/iso-639_def.h \
344         misc/actions.c \
345         misc/background_worker.c \
346         misc/background_worker.h \
347         misc/md5.c \
348         misc/probe.c \
349         misc/rand.c \
350         misc/mtime.c \
351         misc/block.c \
352         misc/fifo.c \
353         misc/fourcc.c \
354         misc/fourcc_list.h \
355         misc/es_format.c \
356         misc/picture.c \
357         misc/picture.h \
358         misc/picture_fifo.c \
359         misc/picture_pool.c \
360         misc/interrupt.h \
361         misc/interrupt.c \
362         misc/keystore.c \
363         misc/renderer_discovery.c \
364         misc/threads.c \
365         misc/cpu.c \
366         misc/epg.c \
367         misc/exit.c \
368         misc/events.c \
369         misc/image.c \
370         misc/messages.c \
371         misc/mime.c \
372         misc/objects.c \
373         misc/objres.c \
374         misc/variables.h \
375         misc/variables.c \
376         misc/error.c \
377         misc/xml.c \
378         misc/addons.c \
379         misc/filter.c \
380         misc/filter_chain.c \
381         misc/httpcookies.c \
382         misc/fingerprinter.c \
383         misc/text_style.c \
384         misc/subpicture.c \
385         misc/subpicture.h \
386         misc/medialibrary.c
387 libvlccore_la_LIBADD = $(LIBS_libvlccore) \
388         ../compat/libcompat.la \
389         $(LTLIBINTL) $(LTLIBICONV) \
390         $(IDN_LIBS) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
392 if HAVE_WIN32
393 libvlccore_la_SOURCES += \
394         win32/dirs.c \
395         win32/error.c \
396         win32/filesystem.c \
397         win32/netconf.c \
398         win32/plugin.c \
399         win32/rand.c \
400         win32/specific.c \
401         win32/thread.c \
402         win32/winsock.c
403 if HAVE_WINSTORE
404 libvlccore_la_SOURCES += posix/timer.c
405 else
406 libvlccore_la_SOURCES += win32/timer.c
407 endif
408 else
409 if HAVE_OS2
410 libvlccore_la_SOURCES += \
411         os2/dirs.c \
412         darwin/error.c \
413         os2/filesystem.c \
414         os2/getaddrinfo.c \
415         os2/netconf.c \
416         os2/plugin.c \
417         os2/specific.c \
418         os2/rand.c \
419         os2/thread.c
420 else
421 if HAVE_NACL
422 libvlccore_la_SOURCES += \
423         android/error.c \
424         posix/dirs.c \
425         posix/filesystem.c \
426         posix/netconf.c \
427         posix/rand.c \
428         posix/specific.c \
429         posix/timer.c
430 else
431 libvlccore_la_SOURCES += \
432         posix/filesystem.c \
433         posix/plugin.c \
434         posix/rand.c \
435         posix/timer.c
436 if HAVE_ANDROID
437 libvlccore_la_SOURCES += \
438         android/error.c \
439         android/specific.c \
440         android/thread.c \
441         linux/cpu.c \
442         linux/dirs.c \
443         linux/thread.c
444 else
445 if HAVE_DARWIN
446 libvlccore_la_SOURCES += \
447         darwin/dirs.c \
448         darwin/error.c \
449         darwin/specific.c \
450         darwin/thread.c
452 libvlccore_objc_la_SOURCES = \
453         darwin/netconf.m
454 noinst_LTLIBRARIES = libvlccore_objc.la
455 else
456 libvlccore_la_SOURCES += \
457         posix/dirs.c \
458         posix/error.c \
459         posix/netconf.c \
460         posix/picture.c \
461         posix/specific.c \
462         posix/thread.c
463 if HAVE_LINUX
464 libvlccore_la_SOURCES += \
465         linux/cpu.c \
466         linux/dirs.c \
467         linux/filesystem.c \
468         linux/thread.c
469 endif
470 if HAVE_LIBANL
471 libvlccore_la_SOURCES += \
472         linux/getaddrinfo.c
473 libvlccore_la_LIBADD += -lanl
474 else
475 libvlccore_la_SOURCES += \
476         posix/getaddrinfo.c
477 endif
478 endif
479 endif
480 endif
481 endif
482 endif
484 if ENABLE_SOUT
485 libvlccore_la_SOURCES += \
486         stream_output/sap.c stream_output/sdp.c \
487         stream_output/stream_output.c stream_output/stream_output.h
488 if ENABLE_VLM
489 libvlccore_la_SOURCES += input/vlm.c input/vlm_event.c input/vlmshell.c
490 endif
491 endif
493 if UPDATE_CHECK
494 libvlccore_la_SOURCES += \
495         misc/update.h misc/update.c \
496         misc/update_crypto.c
497 AM_CPPFLAGS += -DUPDATE_CHECK
498 AM_CFLAGS += $(GCRYPT_CFLAGS)
499 libvlccore_la_LIBADD += $(GCRYPT_LIBS)
500 endif
502 libvlccore_la_LDFLAGS = \
503         $(LDFLAGS_libvlccore) \
504         -no-undefined \
505         -export-symbols $(srcdir)/libvlccore.sym \
506         -version-info 9:0:0
507 libvlccore_la_DEPENDENCIES = libvlccore.sym
508 if HAVE_WIN32
509 libvlccore_la_DEPENDENCIES += libvlc_win32_rc.$(OBJEXT)
510 libvlccore_la_LDFLAGS += -Wl,libvlc_win32_rc.$(OBJEXT) -avoid-version -Wc,-static $(LIBCOM)
511 endif
512 if HAVE_OS2
513 libvlccore_la_LDFLAGS += -avoid-version
514 endif
515 if HAVE_DBUS
516 libvlccore_la_LIBADD += $(DBUS_LIBS)
517 endif
518 if HAVE_DARWIN
519 $(libvlccore_la_OBJECTS): libvlccore_objc.la
520 libvlccore_objc_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
521 libvlccore_objc_la_LDFLAGS = -static
522 libvlccore_la_LIBADD += libvlccore_objc.la
523 libvlccore_la_LDFLAGS +=  -Wl,-framework,Foundation -Xlinker -install_name -Xlinker @rpath/libvlccore.dylib
524 endif
526 libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc $(top_srcdir)/extras/package/win32/libvlc.dll.manifest
527         $(WINDRES) --include-dir $(top_srcdir)/share --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
529 # FourCC tables
530 BUILT_SOURCES += fourcc_tables.h
531 EXTRA_DIST += misc/fourcc_gen.c
532 MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
534 fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
535         $(AM_V_at)rm -f -- $@
536         $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
538 fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
539         $(AM_V_at)rm -f -- $@.tmp
540         $(AM_V_GEN)$(builddir)/fourcc_gen$(BUILDEXEEXT) > $@.tmp
541         $(AM_V_at)mv -f -- $@.tmp $@
543 # Unit/regression tests
545 check_PROGRAMS = \
546         test_block \
547         test_dictionary \
548         test_i18n_atof \
549         test_interrupt \
550         test_list \
551         test_md5 \
552         test_picture_pool \
553         test_sort \
554         test_timer \
555         test_url \
556         test_utf8 \
557         test_xmlent \
558         test_headers \
559         test_mrl_helpers \
560         test_arrays \
561         test_vector \
562         test_shared_data_ptr \
563         test_playlist \
564         test_randomizer
566 TESTS = $(check_PROGRAMS) check_symbols
568 test_block_SOURCES = test/block_test.c
569 test_block_LDADD = $(LDADD) $(LIBS_libvlccore)
570 test_block_DEPENDENCIES =
572 test_dictionary_SOURCES = test/dictionary.c
573 test_i18n_atof_SOURCES = test/i18n_atof.c
574 test_interrupt_SOURCES = test/interrupt.c
575 test_interrupt_LDADD = $(LDADD) $(LIBS_libvlccore)
576 test_list_SOURCES = test/list.c
577 test_md5_SOURCES = test/md5.c
578 test_picture_pool_SOURCES = test/picture_pool.c
579 test_sort_SOURCES = test/sort.c
580 test_timer_SOURCES = test/timer.c
581 test_url_SOURCES = test/url.c
582 test_utf8_SOURCES = test/utf8.c
583 test_xmlent_SOURCES = test/xmlent.c
584 test_headers_SOURCES = test/headers.c
585 test_mrl_helpers_SOURCES = test/mrl_helpers.c
586 test_arrays_SOURCES = test/arrays.c
587 test_vector_SOURCES = test/vector.c
588 test_shared_data_ptr_SOURCES = test/shared_data_ptr.cpp
589 test_playlist_SOURCES = playlist/test.c \
590         playlist/content.c \
591         playlist/control.c \
592         playlist/item.c \
593         playlist/notify.c \
594         playlist/player.c \
595         playlist/playlist.c \
596         playlist/preparse.c \
597         playlist/randomizer.c \
598         playlist/request.c \
599         playlist/shuffle.c \
600         playlist/sort.c
601 test_playlist_CFLAGS = -DTEST_PLAYLIST
602 test_randomizer_SOURCES = playlist/randomizer.c
603 test_randomizer_CFLAGS = -DTEST_RANDOMIZER
605 AM_LDFLAGS = -no-install
606 LDADD = libvlccore.la \
607         ../compat/libcompat.la
609 ###############################################################################
610 # GIT revision
611 ###############################################################################
613 BUILT_SOURCES += stamp-revision
614 MAINTAINERCLEANFILES = $(srcdir)/revision.txt $(srcdir)/revision.c
616 $(srcdir)/revision.c: $(srcdir)/revision.txt
617         $(AM_V_at)rm -f -- $@
618         $(AM_V_GEN)echo "const char psz_vlc_changeset[] = \"$$(cat $<)\";" \
619                 > $@
621 $(srcdir)/revision.txt:
622         $(AM_V_at)$(MAKE) stamp-revision
623         $(AM_V_GEN)touch $@
625 stamp-revision:
626         $(AM_V_at)rm -f -- revision.tmp
627         $(AM_V_GEN)if ! git \
628                         --git-dir="$(top_srcdir)/.git" describe \
629                         --tags --long --match '?.*.*' --always; then \
630                 cat $(srcdir)/revision.txt ; \
631         fi > revision.tmp
632         $(AM_V_at)if diff revision.tmp $(srcdir)/revision.txt >/dev/null 2>&1; then \
633                 rm -f -- revision.tmp; \
634         else \
635                 mv -f -- revision.tmp $(srcdir)/revision.txt; \
636         fi
637 #2>&1
639 ###############################################################################
640 # Unit/regression test
641 ###############################################################################
643 dist_check_SCRIPTS = check_headers check_symbols
645 check-local:
646         for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
647         do \
648                 echo grep - "#include <$$h>" $(srcdir)/test/headers.c ; \
649                 if ! grep -- "#include <$$h>" $(srcdir)/test/headers.c ; \
650                 then \
651                         echo "Header $$h not included in test/headers.c!"; \
652                         exit 1; \
653                 fi ; \
654         done
655         $(SHELL) $(srcdir)/check_headers $(pluginsinclude_HEADERS)
657 FORCE:
658         @echo "Generated source cannot be phony. Go away." >&2
659         @exit 1
661 .PHONY: FORCE