gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11996: Add support for GCC precompi


From: Bastiaan Jacques
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11996: Add support for GCC precompiled headers.
Date: Tue, 09 Mar 2010 01:10:22 +0100
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 11996
committer: Bastiaan Jacques <address@hidden>
branch nick: trunk
timestamp: Tue 2010-03-09 01:10:22 +0100
message:
  Add support for GCC precompiled headers.
added:
  pch/
  pch/Makefile.am
modified:
  backend/Makefile.am
  configure.ac
  gui/Makefile.am
  libamf/Makefile.am
  libbase/Makefile.am
  libcore/Makefile.am
  libcore/asobj/Makefile.am
  libcore/parser/Makefile.am
  libcore/vm/Makefile.am
  libmedia/Makefile.am
  libnet/Makefile.am
  libsound/Makefile.am
  utilities/Makefile.am
=== modified file 'backend/Makefile.am'
--- a/backend/Makefile.am       2010-03-08 06:29:39 +0000
+++ b/backend/Makefile.am       2010-03-09 00:10:22 +0000
@@ -114,3 +114,8 @@
 #      for i in $(plugins_LTLIBRARIES); do \
 #        $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$i 
"$(DESTDIR)$(pluginsdir)/$$i" ; \
 #      done
+
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif

=== modified file 'configure.ac'
--- a/configure.ac      2010-03-08 19:32:13 +0000
+++ b/configure.ac      2010-03-09 00:10:22 +0000
@@ -2234,6 +2234,10 @@
   CFLAGS="$save_CFLAGS"
 fi
 
+AC_ARG_ENABLE([pch],
+  AC_HELP_STRING([--enable-pch], [Enable precompiled header support]), [], 
[enable_pch=no])
+
+AM_CONDITIONAL([ENABLE_PCH], [test x"$enable_pch" != x"no"])
 
 GNASH_PATH_PTHREADS
 
@@ -2514,6 +2518,7 @@
 cygnal/cgi-bin/fitcDemo/Makefile
 cygnal/testsuite/Makefile
 cygnal/testsuite/cygnal.all/Makefile
+pch/Makefile
 )
 
 ###

=== modified file 'gui/Makefile.am'
--- a/gui/Makefile.am   2010-03-08 06:29:39 +0000
+++ b/gui/Makefile.am   2010-03-09 00:10:22 +0000
@@ -25,6 +25,11 @@
 # Build the current directory first. It's hard to see, but there is a '.' dot 
here.
 SUBDIRS = .
 
+if ENABLE_PCH
+SUBDIRS += ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 localedir = $(datadir)/locale
 
 # this is where Gnash plugins get installed

=== modified file 'libamf/Makefile.am'
--- a/libamf/Makefile.am        2010-02-08 20:38:34 +0000
+++ b/libamf/Makefile.am        2010-03-09 00:10:22 +0000
@@ -60,6 +60,11 @@
        protocol.h \
        sol.h
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # Rebuild with GCC 4.x Mudflap support
 mudflap:
        @echo "Rebuilding with GCC Mudflap support"

=== modified file 'libbase/Makefile.am'
--- a/libbase/Makefile.am       2010-02-26 03:34:11 +0000
+++ b/libbase/Makefile.am       2010-03-09 00:10:22 +0000
@@ -224,6 +224,11 @@
   libgnashbase_la_LIBADD += -lws2_32 -lwinmm
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 CLEANFILES = libltdl.la libltdlc.la gnashrc gnashpluginrc
 
 # Rebuild with GCC 4.x Mudflap support

=== modified file 'libcore/Makefile.am'
--- a/libcore/Makefile.am       2010-03-08 06:29:39 +0000
+++ b/libcore/Makefile.am       2010-03-09 00:10:22 +0000
@@ -19,6 +19,11 @@
 
 SUBDIRS = parser vm
 
+if ENABLE_PCH
+SUBDIRS += ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # noinst_LTLIBRARIES = libserver.la 
 pkglib_LTLIBRARIES = libgnashcore.la
 # noinst_SCRIPTS = gen-files.sh

=== modified file 'libcore/asobj/Makefile.am'
--- a/libcore/asobj/Makefile.am 2010-03-08 06:29:39 +0000
+++ b/libcore/asobj/Makefile.am 2010-03-09 00:10:22 +0000
@@ -139,6 +139,11 @@
                                $(SDL_LIBS)
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # These makefile fragments build the ActionScript library for
 # Gnash, and supports both AS2 as well as AS3, so we always
 # want to build.

=== modified file 'libcore/parser/Makefile.am'
--- a/libcore/parser/Makefile.am        2010-03-08 06:29:39 +0000
+++ b/libcore/parser/Makefile.am        2010-03-09 00:10:22 +0000
@@ -94,6 +94,11 @@
                -I$(top_srcdir)/libmedia/ffmpeg
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # Rebuild with GCC 4.x Mudflap support
 mudflap:
        @echo "Rebuilding with GCC Mudflap support"

=== modified file 'libcore/vm/Makefile.am'
--- a/libcore/vm/Makefile.am    2010-03-08 06:29:39 +0000
+++ b/libcore/vm/Makefile.am    2010-03-09 00:10:22 +0000
@@ -96,6 +96,11 @@
   libgnashvm_la_LDFLAGS += -no-undefined
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # Rebuild with GCC 4.x Mudflap support
 mudflap:
        @echo "Rebuilding with GCC Mudflap support"

=== modified file 'libmedia/Makefile.am'
--- a/libmedia/Makefile.am      2010-02-26 03:34:11 +0000
+++ b/libmedia/Makefile.am      2010-03-09 00:10:22 +0000
@@ -205,6 +205,11 @@
        -lintl
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # Rebuild with GCC 4.x Mudflap support
 mudflap:
        @echo "Rebuilding with GCC Mudflap support"

=== modified file 'libnet/Makefile.am'
--- a/libnet/Makefile.am        2010-01-21 00:27:19 +0000
+++ b/libnet/Makefile.am        2010-03-09 00:10:22 +0000
@@ -88,6 +88,11 @@
   AM_LDFLAGS += -no-undefined
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 # Rebuild with GCC 4.x Mudflap support
 mudflap:
        @echo "Rebuilding with GCC Mudflap support"

=== modified file 'libsound/Makefile.am'
--- a/libsound/Makefile.am      2010-02-26 03:34:11 +0000
+++ b/libsound/Makefile.am      2010-03-09 00:10:22 +0000
@@ -69,6 +69,11 @@
 endif
 EXTRA_DIST += mkit
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 libgnashsound_la_LDFLAGS = -release $(VERSION)
 
 if WIN32

=== added directory 'pch'
=== added file 'pch/Makefile.am'
--- a/pch/Makefile.am   1970-01-01 00:00:00 +0000
+++ b/pch/Makefile.am   2010-03-09 00:10:22 +0000
@@ -0,0 +1,62 @@
+BUILT_SOURCES = all-includes.h.gch
+
+PCHHEADERS = \
+       $(top_srcdir)/libcore/as_object.h \
+       $(top_srcdir)/libcore/Shape.h \
+       $(top_srcdir)/libcore/SWFStream.h \
+       $(top_srcdir)/libcore/ObjectURI.h \
+       $(top_srcdir)/libcore/PropertyList.h \
+       $(top_srcdir)/libcore/movie_root.h \
+       $(top_srcdir)/libcore/SWFRect.h \
+       $(top_srcdir)/libcore/MovieClip.h \
+       $(top_srcdir)/libcore/SWFMatrix.h \
+       $(top_srcdir)/libcore/DisplayList.h     \
+       $(top_srcdir)/libcore/DynamicShape.h    \
+       $(top_srcdir)/libcore/Geometry.h        \
+       $(top_srcdir)/libbase/SimpleBuffer.h \
+       $(top_srcdir)/libbase/GnashNumeric.h \
+       $(top_srcdir)/libbase/tu_file.h \
+       $(top_srcdir)/libbase/GnashAlgorithm.h \
+       $(top_srcdir)/libbase/smart_ptr.h \
+       $(top_srcdir)/libbase/GC.h \
+       $(top_srcdir)/libbase/GnashException.h \
+       $(top_srcdir)/libbase/log.h \
+       $(top_srcdir)/libbase/rc.h \
+       $(top_srcdir)/libbase/URL.h \
+       $(top_srcdir)/libbase/snappingrange.h \
+       $(top_srcdir)/libbase/GnashImage.h \
+       $(NULL)
+
+PCHFLAGS = \
+       -I$(top_builddir) \
+       -I$(srcdir) \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/libamf \
+       -I$(top_srcdir)/libnet \
+       -I$(top_srcdir)/libcore \
+       -I$(top_srcdir)/libcore/parser \
+       -I$(top_srcdir)/libcore/swf \
+       -I$(top_srcdir)/libcore/vm \
+       -I$(top_srcdir)/libbase \
+       -I$(top_srcdir)/backend \
+       -I$(top_srcdir)/libcore/abc \
+       -I$(top_srcdir)/libcore/asobj \
+       -I$(top_srcdir)/libcore/asobj/flash \
+       -I$(top_srcdir)/libltdl \
+       -I$(top_srcdir)/libcore/vm \
+       -I$(top_srcdir)/libmedia \
+       -I$(top_srcdir)/libsound \
+       $(NULL)
+
+all-includes.h.gch: $(PCHHEADERS)
+       for i in $(PCHHEADERS); do \
+         file=`basename $$i`; \
+         echo "#include \"$$file\"" >> all-includes.h ; \
+       done; \
+       $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+         $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -fPIC -DPIC \
+         $(PCHFLAGS)  -x c++-header -c -o all-includes.h.gch all-includes.h; \
+       rm all-includes.h;
+
+CLEANFILES = all-includes.h.gch
+

=== modified file 'utilities/Makefile.am'
--- a/utilities/Makefile.am     2010-02-24 06:45:26 +0000
+++ b/utilities/Makefile.am     2010-03-09 00:10:22 +0000
@@ -112,6 +112,11 @@
 endif
 endif
 
+if ENABLE_PCH
+SUBDIRS = ../pch
+AM_CXXFLAGS = -I$(top_builddir)/pch -include all-includes.h
+endif
+
 gprocessor_SOURCES = processor.cpp
 # export our symbols so they can be used by Gnash plugins
 gprocessor_LDFLAGS = -export-dynamic


reply via email to

[Prev in Thread] Current Thread [Next in Thread]