Make automated FSCommand invocation tests show player-side output.
[gnash.git] / libsound / Makefile.am
blobf351eff116b2bb011a1c760d71fea02d902dbfd6
1
2 #   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2016
3 #    Free Software Foundation, Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 AUTOMAKE_OPTIONS = foreign
20 pkglib_LTLIBRARIES = libgnashsound.la
22 libgnashsound_la_SOURCES = \
23         AuxStream.h \
24         EmbedSound.cpp \
25         EmbedSound.h \
26         StreamingSoundData.cpp \
27         StreamingSoundData.h \
28         StreamingSound.cpp \
29         StreamingSound.h \
30         LiveSound.cpp \
31         LiveSound.h \
32         EmbedSoundInst.cpp \
33         EmbedSoundInst.h \
34         SoundUtils.h \
35         InputStream.h \
36         sound_handler.cpp \
37         sound_handler.h \
38         SoundEnvelope.h \
39         WAVWriter.cpp \
40         WAVWriter.h \
41         $(NULL)
43 if USE_SOUND_SDL
44 libgnashsound_la_SOURCES += \
45         sdl/sound_handler_sdl.cpp \
46         sdl/sound_handler_sdl.h \
47         $(NULL)
48 endif
50 if USE_SOUND_AHI
51 libgnashsound_la_SOURCES += \
52         aos4/sound_handler_ahi.cpp \
53         aos4/sound_handler_ahi.h \
54         $(NULL)
55 endif
57 if USE_SOUND_MKIT
58 libgnashsound_la_SOURCES += \
59         mkit/sound_handler_mkit.cpp \
60         mkit/sound_handler_mkit.h \
61         $(NULL)
62 endif
64 noinst_HEADERS = \
65         NullSoundHandler.h \
66         $(NULL)
68 libgnashsound_la_CPPFLAGS = \
69         -I$(top_srcdir)/libbase \
70         -I$(top_srcdir)/libmedia \
71         -I$(top_srcdir)/libcore \
72         $(PTHREAD_CFLAGS) \
73         $(BOOST_CFLAGS) \
74         $(SDL_CFLAGS) \
75         $(NULL)
77 if BUILD_LIBMEDIA
78 libgnashsound_la_LIBADD = $(top_builddir)/libmedia/libgnashmedia.la
79 else
80 libgnashsound_la_LIBADD =
81 endif
83 libgnashsound_la_LIBADD += \
84         $(top_builddir)/libbase/libgnashbase.la \
85         $(BOOST_LIBS) \
86         $(SDL_LIBS) \
87         $(NULL)
89 if USE_SOUND_MKIT
90 libgnashsound_la_LIBADD += -lmedia
91 endif
93 libgnashsound_la_LDFLAGS = -release $(VERSION)
95 if WIN32
96 libgnashsound_la_LDFLAGS += -no-undefined
97 libgnashsound_la_LIBADD += -lintl
98 endif
100 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
101 AM_LDFLAGS = $(CROSS_LDFLAGS)
103 if ENABLE_PCH
104 AM_CXXFLAGS += $(PCH_FLAGS)
105 endif
107 # Remove libtool .la files
108 install-exec-hook:
109         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashsound.la
111 uninstall-local:
112         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashsound-*.so