Update with current status
[gnash.git] / librender / Makefile.am
blob970d78defac5c3cf11320faef87c72d76aa48449
1
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
22 AUTOMAKE_OPTIONS =
24 # this is where Gnash plugins get installed
25 pluginsdir = $(libdir)/gnash/plugins
27 AM_CPPFLAGS = -I.. \
28         -I$(srcdir) \
29         -I$(top_srcdir) \
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 \
37         $(PTHREAD_CFLAGS) \
38         $(BOOST_CFLAGS) \
39         $(OPENGL_CFLAGS) \
40         $(AGG_CFLAGS) \
41         $(DIRECTFB_CFLAGS) \
42         $(CAIRO_CFLAGS) \
43         $(NULL)
45 GNASH_LIBS = \
46         $(top_builddir)/libcore/libgnashcore.la \
47         $(top_builddir)/libbase/libgnashbase.la \
48         $(NULL)
50 if BUILD_LIBMEDIA
51 GNASH_LIBS += $(top_builddir)/libmedia/libgnashmedia.la
52 endif
54 instdir = $(includedir)/gnash
56 noinst_HEADERS = \
57         Renderer.h \
58         agg/Renderer_agg.h \
59         agg/LinearRGB.h \
60         agg/Renderer_agg_bitmap.h \
61         agg/Renderer_agg_style.h \
62         cairo/Renderer_cairo.h \
63         cairo/PathParser.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 \
72         $(NULL)
74 EXTRA_DIST = $(noinst_HEADERS)
76 pkglib_LTLIBRARIES =  libgnashrender.la
78 libgnashrender_la_CPPFLAGS = $(AM_CPPFLAGS)
79 libgnashrender_la_LIBADD = \
80         ../libdevice/libgnashdevice.la \
81         $(LIBVA_LIBS) \
82         $(LIBVA_X11_LIBS) \
83         $(LIBVA_GLX_LIBS) \
84         $(GNASH_LIBS)
85 libgnashrender_la_LDFLAGS =  -release $(VERSION) 
86 libgnashrender_la_SOURCES =
88 if BUILD_OGL_RENDERER
89 libgnashrender_la_SOURCES += \
90         opengl/Renderer_ogl.cpp \
91         opengl/Renderer_ogl.h
92 libgnashrender_la_LIBADD += $(OPENGL_LIBS)
93 endif
95 if  BUILD_AGG_RENDERER
96 libgnashrender_la_SOURCES += \
97         agg/Renderer_agg.cpp \
98         agg/Renderer_agg.h
99 libgnashrender_la_LIBADD += $(AGG_LIBS) $(LIBVA)
100 endif
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 \
109         openvg/OpenVGStyle.h
110 libgnashrender_la_LIBADD += $(OPENVG_LIBS)
111 endif
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)
118 endif
120 if  BUILD_CAIRO_RENDERER
121 libgnashrender_la_SOURCES += \
122         cairo/Renderer_cairo.cpp \
123         cairo/Renderer_cairo.h \
124         cairo/PathParser.cpp
125 libgnashrender_la_LIBADD += $(CAIRO_LIBS)
126 endif
128 clean-hook:
129         -rm -f core.*
131 AM_CXXFLAGS = $(CROSS_CXXFLAGS)
132 AM_LDFLAGS = $(CROSS_LDFLAGS)
134 if ENABLE_PCH
135 AM_CXXFLAGS += $(PCH_FLAGS)
136 endif
138 # Remove libtool .la files
139 install-exec-hook:
140         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashrender.la
142 uninstall-local:
143         $(RM) $(DESTDIR)$(libdir)/gnash/libgnashrender-*.so
145 if BUILD_OGL_RENDERER
146     libgnashrender_la_SOURCES += \
147         GnashTexture.cpp \
148         $(NULL)
150 noinst_HEADERS += \
151         GnashTexture.h \
152         $(NULL)
153 endif
155 if ENABLE_DEVELOPER_TESTS
156 check_PROGRAMS = testr
158 testr_SOURCES = testr.cpp # testr_gtk.cpp
159 testr_CPPFLAGS = \
160         $(AM_CPPFLAGS) \
161         $(EGL_CFLAGS) \
162         $(OPENVG_CFLAGS) \
163         $(GLES1_CFLAGS) \
164         $(DIRECTFB_CFLAGS)
165 testr_LDADD = \
166         libgnashrender.la \
167         ../libdevice/libgnashdevice.la \
168         ../libsound/libgnashsound.la \
169         $(GTK2_LIBS) \
170         $(EXTRA_EGL_LIBS) \
171         $(EGL_LIBS) \
172         $(GNASH_LIBS) \
173         $(OPENVG_LIBS) \
174         $(GLES1_LIBS)
175 endif