Simplify commit extraction, and use abbreviated commit id
[gnash.git] / gui / pythonmod / Makefile.am
blob929632c1e403ad02060c1916866d520be7ce04e2
1 ## Process this file with automake to generate Makefile.in
2
3 #   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 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 pkgpythondir = $(pyexecdir)/gtk-2.0
19 pkgpyexecdir = $(pyexecdir)/gtk-2.0
21 GNASH_INCLUDES = \
22         -I$(top_srcdir)/gui \
23         -I$(top_srcdir)/gui/gtk \
24         -I$(top_srcdir)/gui/pythonmod \
25         -I$(top_srcdir)/libbase \
26         -I$(top_srcdir)/librender       \
27         -I$(top_srcdir)/librender/opengl \
28         -I$(top_srcdir)/librender/cairo \
29         -I$(top_srcdir)/librender/agg \
30         -I$(top_srcdir)/libcore \
31         -I$(top_srcdir)/libcore/swf \
32         -I$(top_srcdir)/libcore/vm \
33         -I$(top_srcdir)/libcore/parser \
34         -I$(top_srcdir)/libcore/asobj \
35         -I$(top_srcdir)/libmedia \
36         -I$(top_srcdir)/libvaapi \
37         -I$(top_srcdir)/libsound
39 INCLUDES = \
40         $(PYTHON_CFLAGS) \
41         $(PYGTK_CFLAGS) \
42         $(GTK2_CFLAGS) \
43         $(GNASH_INCLUDES)
45 pkgpyexec_LTLIBRARIES = gnash.la
47 GNASH_LIBS = \
48         $(top_builddir)/libmedia/libgnashmedia.la \
49         $(top_builddir)/libsound/libgnashsound.la \
50         $(top_builddir)/libcore/libgnashcore.la \
51         $(top_builddir)/libbase/libgnashbase.la \
52         $(RENDERER_LIBS)
54 gnash_la_LDFLAGS = -module -avoid-version initgnash -export-dynamic #-no-undefined
55 gnash_la_LIBADD = \
56         $(GNASH_LIBS) \
57         $(GTK2_LIBS) \
58         $(DEPS_LIBS) \
59         $(LIBVA_LIBS) $(LIBVA_X11_LIBS) 
61 instdir = $(includedir)/gnash
62 inst_HEADERS = gnash-view.h
64 if BUILD_OGL_RENDERER
65 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_gtkglext.cpp
66 INCLUDES += $(GLEXT_CFLAGS)
67 endif
68 if BUILD_AGG_RENDERER
69 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_agg.cpp
70 endif
71 if BUILD_CAIRO_RENDERER
72 RENDERER_GLUE = $(top_srcdir)/gui/gtk/gtk_glue_cairo.cpp
73 endif
75 if USE_PYTHON
76 BUILT_SOURCES = gen-gnash.c
77 else
78 BUILT_SOURCES = 
79 endif
81 nodist_gnash_la_SOURCES = $(BUILT_SOURCES)
82 gnash_la_SOURCES = \
83         gnashmodule.c \
84         gnash-view.cpp \
85         $(top_srcdir)/gui/gtk/gtk_canvas.cpp \
86         $(RENDERER_GLUE)
88 gnash.c: gnash.defs gnash.override
90 CLEANFILES = 
91 EXTRA_DIST = gnash.override gnash.defs
93 gen-gnash.c:   gnash.override gnash.defs
94 if HAS_PYTHON
95         if test x"$(PYGOBJECT_CODEGEN)" != xno; then \
96           $(PYGOBJECT_CODEGEN) \
97             --register $(PYGTK_DEFSDIR)/gdk-types.defs \
98             --register $(PYGTK_DEFSDIR)/gtk-types.defs \
99             --override $(srcdir)/gnash.override \
100             --prefix pygnash $(srcdir)/gnash.defs > gen-gnash.c; \
101         else if test x"$(PYGTK_CODEGEN)" != xno; then \
102           $(PYGTK_CODEGEN) \
103             --register $(PYGTK_DEFSDIR)/gdk-types.defs \
104             --register $(PYGTK_DEFSDIR)/gtk-types.defs \
105             --override $(srcdir)/gnash.override \
106             --prefix pygnash $(srcdir)/gnash.defs > gen-gnash.c; \
107          fi; fi
108 endif