drop mysql/ from the include path for MySQL headers.
[gnash.git] / pch.am
blob2b34a18078687fd551502c1558798519bb05ab86
1
2 #   Copyright (C) 2010 Free Software Foundation, Inc.
3
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.
8
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
16
19 # PCH is precompiled headers, which can spead up builds.
20
21 if ENABLE_PCH
22 BUILT_SOURCES += all-includes.h.gch
24 PCHHEADERS = \
25         $(top_srcdir)/libcore/asobj/Global_as.h \
26         $(top_srcdir)/libcore/builtin_function.h \
27         $(top_srcdir)/libcore/NativeFunction.h \
28         $(top_srcdir)/libcore/Shape.h \
29         $(top_srcdir)/libcore/SWFStream.h \
30         $(top_srcdir)/libcore/ObjectURI.h \
31         $(top_srcdir)/libcore/PropertyList.h \
32         $(top_srcdir)/libcore/movie_root.h \
33         $(top_srcdir)/libcore/SWFRect.h \
34         $(top_srcdir)/libcore/MovieClip.h \
35         $(top_srcdir)/libcore/SWFMatrix.h \
36         $(top_srcdir)/libcore/DisplayList.h     \
37         $(top_srcdir)/libcore/DynamicShape.h    \
38         $(top_srcdir)/libcore/Geometry.h        \
39         $(top_srcdir)/libbase/SimpleBuffer.h \
40         $(top_srcdir)/libbase/GnashNumeric.h \
41         $(top_srcdir)/libbase/tu_file.h \
42         $(top_srcdir)/libbase/GnashAlgorithm.h \
43         $(top_srcdir)/libbase/smart_ptr.h \
44         $(top_srcdir)/libbase/GC.h \
45         $(top_srcdir)/libbase/log.h \
46         $(top_srcdir)/libbase/rc.h \
47         $(top_srcdir)/libbase/URL.h \
48         $(top_srcdir)/libbase/snappingrange.h \
49         $(top_srcdir)/libbase/GnashImage.h \
50         $(NULL)
52 PCHFLAGS = \
53         -I$(top_builddir) \
54         -I$(srcdir) \
55         -I$(top_srcdir) \
56         -I$(top_srcdir)/libamf \
57         -I$(top_srcdir)/libnet \
58         -I$(top_srcdir)/libcore \
59         -I$(top_srcdir)/libcore/parser \
60         -I$(top_srcdir)/libcore/swf \
61         -I$(top_srcdir)/libcore/vm \
62         -I$(top_srcdir)/libbase \
63         -I$(top_srcdir)/backend \
64         -I$(top_srcdir)/libcore/abc \
65         -I$(top_srcdir)/libcore/asobj \
66         -I$(top_srcdir)/libcore/asobj/flash \
67         -I$(top_srcdir)/libltdl \
68         -I$(top_srcdir)/libcore/vm \
69         -I$(top_srcdir)/libmedia \
70         -I$(top_srcdir)/libsound \
71         $(PTHREAD_CFLAGS) \
72         $(NULL)
74 all-includes.h.gch: $(PCHHEADERS)
75         for i in $(PCHHEADERS); do \
76           file=`basename $$i`; \
77           echo "#include \"$$file\"" >> all-includes.h ; \
78         done; \
79         $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
80           $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -fPIC -DPIC \
81           $(PCHFLAGS)  -x c++-header -c -o all-includes.h.gch all-includes.h; \
82         rm all-includes.h;
84 $(PCHHEADERS): all-includes.h.gch
86 CLEANFILES += all-includes.h.gch
88 endif