chromecast: refactor out encoder option functions
[vlc.git] / modules / stream_out / Makefile.am
1 soutdir = $(pluginsdir)/stream_out
2
3 libstream_out_dummy_plugin_la_SOURCES = stream_out/dummy.c
4 libstream_out_cycle_plugin_la_SOURCES = stream_out/cycle.c
5 libstream_out_delay_plugin_la_SOURCES = stream_out/delay.c
6 libstream_out_stats_plugin_la_SOURCES = stream_out/stats.c
7 libstream_out_description_plugin_la_SOURCES = stream_out/description.c
8 libstream_out_standard_plugin_la_SOURCES = stream_out/standard.c
9 libstream_out_standard_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_access_output_srt)
10 libstream_out_standard_plugin_la_LIBADD = $(SOCKET_LIBS)
11 libstream_out_duplicate_plugin_la_SOURCES = stream_out/duplicate.c
12 libstream_out_es_plugin_la_SOURCES = stream_out/es.c
13 libstream_out_display_plugin_la_SOURCES = stream_out/display.c
14 libstream_out_gather_plugin_la_SOURCES = stream_out/gather.c
15 libstream_out_bridge_plugin_la_SOURCES = stream_out/bridge.c
16 libstream_out_mosaic_bridge_plugin_la_SOURCES = stream_out/mosaic_bridge.c
17 libstream_out_autodel_plugin_la_SOURCES = stream_out/autodel.c
18 libstream_out_record_plugin_la_SOURCES = stream_out/record.c
19 libstream_out_smem_plugin_la_SOURCES = stream_out/smem.c
20 libstream_out_setid_plugin_la_SOURCES = stream_out/setid.c
21 libstream_out_transcode_plugin_la_SOURCES = \
22         stream_out/transcode/transcode.c stream_out/transcode/transcode.h \
23         stream_out/transcode/encoder/encoder.c \
24         stream_out/transcode/encoder/encoder.h \
25         stream_out/transcode/encoder/encoder_priv.h \
26         stream_out/transcode/encoder/audio.c \
27         stream_out/transcode/encoder/spu.c \
28         stream_out/transcode/encoder/video.c \
29         stream_out/transcode/spu.c \
30         stream_out/transcode/audio.c stream_out/transcode/video.c
31 libstream_out_transcode_plugin_la_CFLAGS = $(AM_CFLAGS)
32 libstream_out_transcode_plugin_la_LIBADD = $(LIBM)
33
34 sout_LTLIBRARIES = \
35         libstream_out_dummy_plugin.la \
36         libstream_out_cycle_plugin.la \
37         libstream_out_delay_plugin.la \
38         libstream_out_stats_plugin.la \
39         libstream_out_description_plugin.la \
40         libstream_out_standard_plugin.la \
41         libstream_out_duplicate_plugin.la \
42         libstream_out_es_plugin.la \
43         libstream_out_display_plugin.la \
44         libstream_out_gather_plugin.la \
45         libstream_out_bridge_plugin.la \
46         libstream_out_mosaic_bridge_plugin.la \
47         libstream_out_autodel_plugin.la \
48         libstream_out_record_plugin.la \
49         libstream_out_smem_plugin.la \
50         libstream_out_setid_plugin.la \
51         libstream_out_transcode_plugin.la
52
53 if HAVE_DECKLINK
54 libstream_out_sdi_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(CPPFLAGS_decklinkoutput)
55 libstream_out_sdi_plugin_la_LIBADD = $(LIBS_decklink) $(LIBDL) -lpthread
56 libstream_out_sdi_plugin_la_SOURCES = stream_out/sdi/sdiout.cpp \
57         stream_out/sdi/sdiout.hpp \
58         stream_out/sdi/Ancillary.cpp \
59         stream_out/sdi/Ancillary.hpp \
60         stream_out/sdi/AES3Audio.cpp \
61         stream_out/sdi/AES3Audio.hpp \
62         stream_out/sdi/DBMSDIOutput.cpp \
63         stream_out/sdi/DBMSDIOutput.hpp \
64         stream_out/sdi/SDIAudioMultiplex.cpp \
65         stream_out/sdi/SDIAudioMultiplex.hpp \
66         stream_out/sdi/SDIOutput.cpp \
67         stream_out/sdi/SDIOutput.hpp \
68         stream_out/sdi/SDIStream.cpp \
69         stream_out/sdi/SDIStream.hpp \
70         stream_out/sdi/V210.cpp \
71         stream_out/sdi/V210.hpp
72 sout_LTLIBRARIES += libstream_out_sdi_plugin.la
73 endif
74
75 # RTP plugin
76 sout_LTLIBRARIES += libstream_out_rtp_plugin.la
77 libstream_out_rtp_plugin_la_SOURCES = \
78         stream_out/rtp.c stream_out/rtp.h stream_out/rtpfmt.c \
79         stream_out/rtcp.c stream_out/rtsp.c stream_out/vod.c
80 libstream_out_rtp_plugin_la_CFLAGS = $(AM_CFLAGS)
81 libstream_out_rtp_plugin_la_LIBADD = $(SOCKET_LIBS)
82 if HAVE_GCRYPT
83 SRTP_CFLAGS = -I$(srcdir)/access/rtp
84 SRTP_LIBS = libvlc_srtp.la
85 libstream_out_rtp_plugin_la_CFLAGS += -DHAVE_SRTP $(SRTP_CFLAGS) \
86         $(GCRYPT_CFLAGS)
87 libstream_out_rtp_plugin_la_LIBADD += $(SRTP_LIBS) $(GCRYPT_LIBS)
88 endif
89
90 # Chromaprint plugin
91 libstream_out_chromaprint_plugin_la_SOURCES = stream_out/chromaprint.c stream_out/chromaprint_data.h dummy.cpp
92 libstream_out_chromaprint_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(CHROMAPRINT_CFLAGS)
93 libstream_out_chromaprint_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(soutdir)'
94 libstream_out_chromaprint_plugin_la_LIBADD = $(CHROMAPRINT_LIBS)
95 EXTRA_LTLIBRARIES += libstream_out_chromaprint_plugin.la
96 sout_LTLIBRARIES += $(LTLIBstream_out_chromaprint)
97
98 # Chromecast plugin
99 SUFFIXES += .proto .pb.cc
100
101 %.pb.h %.pb.cc: %.proto
102         $(PROTOC) --cpp_out=. -I$(srcdir) $<
103
104 libdemux_chromecast_plugin_la_SOURCES = stream_out/chromecast/chromecast_demux.cpp stream_out/chromecast/chromecast.h \
105                                         stream_out/chromecast/chromecast_common.h
106 libdemux_chromecast_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -Istream_out/chromecast
107
108 libstream_out_chromecast_plugin_la_SOURCES = stream_out/chromecast/cast.cpp stream_out/chromecast/chromecast.h \
109                                              stream_out/chromecast/cast_channel.proto \
110                                              stream_out/renderer_common.hpp \
111                                              stream_out/renderer_common.cpp \
112                                              stream_out/chromecast/chromecast_common.h stream_out/chromecast/chromecast_ctrl.cpp \
113                                              misc/webservices/json.h misc/webservices/json.c stream_out/chromecast/chromecast_communication.cpp
114 nodist_libstream_out_chromecast_plugin_la_SOURCES = stream_out/chromecast/cast_channel.pb.cc
115 libstream_out_chromecast_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -Istream_out/chromecast $(CHROMECAST_CFLAGS)
116 libstream_out_chromecast_plugin_la_LIBADD = $(CHROMECAST_LIBS) $(SOCKET_LIBS)
117 CLEANFILES += $(nodist_libstream_out_chromecast_plugin_la_SOURCES)
118
119 if ENABLE_SOUT
120 if BUILD_CHROMECAST
121 BUILT_SOURCES += stream_out/chromecast/cast_channel.pb.h
122 sout_LTLIBRARIES += libstream_out_chromecast_plugin.la
123 demux_LTLIBRARIES += libdemux_chromecast_plugin.la
124 endif
125 endif