1 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
2 # Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 AUTOMAKE_OPTIONS = foreign
19 pkglib_LTLIBRARIES = libgnashbase.la
20 sysconf_DATA = gnashrc gnashpluginrc
21 EXTRA_DIST = gnashrc.in gnashpluginrc.in
23 libgnashbase_la_SOURCES = \
41 GnashFileUtilities.cpp \
42 GnashFileUtilities.h \
49 GnashSystemFDHeaders.h \
50 GnashSystemIOHeaders.h \
51 GnashSystemNetHeaders.h \
61 noseek_fd_adapter.cpp \
81 URLAccessManager.cpp \
95 libgnashbase_la_SOURCES += \
101 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
104 libgnashbase_la_SOURCES += SharedMemHaiku.cpp
107 libgnashbase_la_SOURCES += SharedMemW32.cpp
109 libgnashbase_la_SOURCES += SharedMem.cpp
115 libgnashbase_la_SOURCES += \
124 libgnashbase_la_SOURCES += \
131 libgnashbase_la_SOURCES += \
138 libgnashbase_la_SOURCES += \
139 GnashVaapiImage.cpp \
141 GnashVaapiImageProxy.h \
142 GnashVaapiTexture.cpp \
143 GnashVaapiTexture.h \
149 # this is where Gnash plugins get installed
150 pluginsdir = $(prefix)/lib/gnash/plugins
152 libgnashbase_la_CPPFLAGS = -DPLUGINSDIR=\"$(pluginsdir)\" \
153 -DSYSCONFDIR=\"$(sysconfdir)\" \
164 -I$(top_srcdir)/librender \
167 libgnashbase_la_LIBADD = \
184 libgnashbase_la_LIBADD += -lui -llog
188 libgnashbase_la_LIBADD += $(HAIKU_LIBS)
202 GnashSystemFDHeaders.h \
203 GnashSystemNetHeaders.h \
204 GnashSystemIOHeaders.h \
205 GnashFileUtilities.h \
209 noseek_fd_adapter.h \
221 inst_HEADERS += extension.h sharedlib.h
252 instdir = $(includedir)/gnash
253 inst_HEADERS += $(EXTENSIONS_API)
255 libgnashbase_la_LDFLAGS = -release $(VERSION)
256 libgnashbase_la_DEPENDENCIES =
259 libgnashbase_la_CPPFLAGS += \
260 -I$(top_srcdir)/libdevice/vaapi \
263 libgnashbase_la_LIBADD += \
264 $(top_builddir)/libdevice/libgnashvaapi.la \
267 libgnashbase_la_DEPENDENCIES += \
268 $(top_builddir)/libdevice/libgnashvaapi.la \
273 libgnashbase_la_LDFLAGS += -no-undefined
274 libgnashbase_la_LIBADD += -lws2_32 -lwinmm
277 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
278 AM_LDFLAGS = $(CROSS_LDFLAGS)
281 AM_CXXFLAGS += $(PCH_FLAGS)
285 -e 's|@DEFAULT_FLASH_PLATFORM_ID[@]|$(DEFAULT_FLASH_PLATFORM_ID)|g' \
286 -e 's|@DEFAULT_FLASH_MAJOR_VERSION[@]|$(DEFAULT_FLASH_MAJOR_VERSION)|g' \
287 -e 's|@DEFAULT_FLASH_MINOR_VERSION[@]|$(DEFAULT_FLASH_MINOR_VERSION)|g' \
288 -e 's|@DEFAULT_FLASH_REV_NUMBER[@]|$(DEFAULT_FLASH_REV_NUMBER)|g' \
289 -e 's|@DEFAULT_STREAMS_TIMEOUT[@]|$(DEFAULT_STREAMS_TIMEOUT)|g' \
290 -e 's|@DEFAULT_SOL_SAFEDIR[@]|$(DEFAULT_SOL_SAFEDIR)|g'
292 gnashrc: gnashrc.in Makefile
293 $(edit) '$(srcdir)/$@.in' >$@
295 gnashpluginrc: gnashpluginrc.in
296 $(edit) '$(srcdir)/$@.in' >$@
298 CLEANFILES = gnashrc gnashpluginrc
300 # Remove libtool .la files
302 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashbase.la
305 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashbase-*.so