2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 # Free Software Foundation, Inc.
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.
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.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ## Process this file with automake to generate Makefile.in
24 # this is where Gnash plugins get installed
25 pluginsdir = $(libdir)/gnash/plugins
30 -I$(top_srcdir)/libcore \
31 -I$(top_srcdir)/libmedia \
32 -I$(top_srcdir)/libcore/parser \
33 -I$(top_srcdir)/libcore/swf \
34 -I$(top_srcdir)/libbase \
35 -I$(top_srcdir)/librender \
36 -I$(top_srcdir)/libdevice \
46 $(top_builddir)/libcore/libgnashcore.la \
47 $(top_builddir)/libbase/libgnashbase.la \
51 GNASH_LIBS += $(top_builddir)/libmedia/libgnashmedia.la
54 instdir = $(includedir)/gnash
60 agg/Renderer_agg_bitmap.h \
61 agg/Renderer_agg_style.h \
62 cairo/Renderer_cairo.h \
64 opengl/tu_opengl_includes.h \
65 opengl/Renderer_ogl.h \
66 opengles1/Renderer_gles1.h \
67 opengles1/render_handler_gles.h \
68 openvg/OpenVGRenderer.h \
69 openvg/OpenVGBitmap.h \
70 openvg/OpenVGStyle.h \
71 opengl/Renderer_ogl.h \
74 EXTRA_DIST = $(noinst_HEADERS)
76 pkglib_LTLIBRARIES = libgnashrender.la
78 libgnashrender_la_CPPFLAGS = $(AM_CPPFLAGS)
79 libgnashrender_la_LIBADD = \
80 ../libdevice/libgnashdevice.la \
85 libgnashrender_la_LDFLAGS = -release $(VERSION)
86 libgnashrender_la_SOURCES =
89 libgnashrender_la_SOURCES += \
90 opengl/Renderer_ogl.cpp \
92 libgnashrender_la_LIBADD += $(OPENGL_LIBS)
96 libgnashrender_la_SOURCES += \
97 agg/Renderer_agg.cpp \
99 libgnashrender_la_LIBADD += $(AGG_LIBS) $(LIBVA)
102 if BUILD_OVG_RENDERER
103 libgnashrender_la_CPPFLAGS += $(OPENVG_CFLAGS)
104 libgnashrender_la_SOURCES += \
105 openvg/OpenVGRenderer.cpp \
106 openvg/OpenVGRenderer.h \
107 openvg/OpenVGBitmap.h \
108 openvg/OpenVGBitmap.cpp \
110 libgnashrender_la_LIBADD += $(OPENVG_LIBS)
113 if BUILD_GLES1_RENDERER
114 libgnashrender_la_SOURCES += \
115 opengles1/Renderer_gles1.cpp \
116 opengles1/Renderer_gles1.h
117 libgnashrender_la_LIBADD += $(GLES1_LIBS)
120 if BUILD_CAIRO_RENDERER
121 libgnashrender_la_SOURCES += \
122 cairo/Renderer_cairo.cpp \
123 cairo/Renderer_cairo.h \
125 libgnashrender_la_LIBADD += $(CAIRO_LIBS)
131 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
132 AM_LDFLAGS = $(CROSS_LDFLAGS)
135 AM_CXXFLAGS += $(PCH_FLAGS)
138 # Remove libtool .la files
140 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashrender.la
143 $(RM) $(DESTDIR)$(libdir)/gnash/libgnashrender-*.so
145 if BUILD_OGL_RENDERER
146 libgnashrender_la_SOURCES += \
155 if ENABLE_DEVELOPER_TESTS
156 check_PROGRAMS = testr
158 testr_SOURCES = testr.cpp # testr_gtk.cpp
167 ../libdevice/libgnashdevice.la \
168 ../libsound/libgnashsound.la \