diff options
author | Ashod Nakashian <ashodnakashian@yahoo.com> | 2015-11-14 18:48:49 -0500 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-15 20:31:35 +0000 |
commit | 06116bd15b1fb8b03e65e1166f5ddad929614246 (patch) | |
tree | b2849066315c89f1bcd1d1c9bc903b82e7c00523 /cppcanvas | |
parent | Ignore Visual Studio project files (diff) | |
download | core-06116bd15b1fb8b03e65e1166f5ddad929614246.tar.gz core-06116bd15b1fb8b03e65e1166f5ddad929614246.zip |
Fast PCH generator and optimized PCH files
Ported update_pch.sh to Python with improved performance
and features. The new script is invoked from the same
update_pch.sh which calls it for each library in
parallel, although it can be invoked directly.
The ported script (update_pch) updates all PCH files
in ~15 seconds where the old script took ~4500 seconds.
In addition, the new script supports 3-tiered headers
(system, module, and local) and is very flexible to
support other improvement. It has a per-library
optimal configuration settings that can be updated
using another new scripts (update_pch_autotune.sh)
which finds optimal per-PCH settings.
PCH files have been generated using the new scripts
which builds significantly faster (2-3x, depending
on module and configuration) and the intermediate
binaries are noticably smaller (by several GBs).
The new script stamps each generated PCH file with
the command that generated it to make it trivial
for users to update them, and also adds the command
to invoke another script (update_pch_bisect) that
helps find missing headers or conflicting headers
that may break the build after updating the PCH.
Finally update_pch has built-in unit-tests for
makefile parsing and other core functionality.
Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa
Reviewed-on: https://gerrit.libreoffice.org/19965
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/inc/pch/precompiled_cppcanvas.hxx | 258 |
1 files changed, 195 insertions, 63 deletions
diff --git a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx index 6d1365545a84..271bb625d52e 100644 --- a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx +++ b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx @@ -8,89 +8,221 @@ */ /* - This file has been autogenerated by update_pch.sh . It is possible to edit it - manually (such as when an include file has been moved/renamed/removed. All such + This file has been autogenerated by update_pch.sh. It is possible to edit it + manually (such as when an include file has been moved/renamed/removed). All such manual changes will be rewritten by the next run of update_pch.sh (which presumably also fixes all possible problems, so it's usually better to use it). + + Generated on 2015-11-14 14:16:28 using: + ./bin/update_pch cppcanvas cppcanvas --cutoff=11 --exclude:system --include:module --include:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./cppcanvas/inc/pch/precompiled_cppcanvas.hxx "/opt/lo/bin/make cppcanvas.build" --find-conflicts */ #include <algorithm> -#include <basegfx/matrix/b2dhommatrix.hxx> -#include <basegfx/matrix/b2dhommatrixtools.hxx> -#include <basegfx/numeric/ftools.hxx> -#include <basegfx/point/b2dpoint.hxx> -#include <basegfx/polygon/b2dlinegeometry.hxx> -#include <basegfx/polygon/b2dpolygon.hxx> -#include <basegfx/polygon/b2dpolygonclipper.hxx> -#include <basegfx/polygon/b2dpolygontools.hxx> -#include <basegfx/polygon/b2dpolypolygon.hxx> -#include <basegfx/polygon/b2dpolypolygoncutter.hxx> -#include <basegfx/polygon/b2dpolypolygontools.hxx> -#include <basegfx/range/b2drange.hxx> -#include <basegfx/range/b2drectangle.hxx> -#include <basegfx/tools/canvastools.hxx> -#include <basegfx/tools/gradienttools.hxx> -#include <basegfx/tools/tools.hxx> -#include <basegfx/tuple/b2dtuple.hxx> -#include <basegfx/vector/b2dsize.hxx> -#include <basegfx/vector/b2dvector.hxx> -#include <boost/bind.hpp> +#include <cassert> +#include <config_features.h> +#include <config_global.h> +#include <config_typesizes.h> +#include <config_vcl.h> +#include <cstddef> +#include <cstdlib> +#include <cstring> +#include <float.h> +#include <iomanip> +#include <limits.h> +#include <limits> +#include <list> +#include <math.h> #include <memory> +#include <new> +#include <ostream> +#include <sstream> +#include <stddef.h> +#include <stdlib.h> +#include <string.h> +#include <string> +#include <type_traits> +#include <utility> +#include <vector> +#include <boost/current_function.hpp> +#include <boost/functional/hash.hpp> +#include <boost/intrusive_ptr.hpp> #include <boost/noncopyable.hpp> -#include <canvas/canvastools.hxx> -#include <com/sun/star/geometry/RealPoint2D.hpp> -#include <com/sun/star/rendering/InterpolationMode.hpp> -#include <com/sun/star/rendering/PanoseProportion.hpp> -#include <com/sun/star/rendering/PathCapType.hpp> -#include <com/sun/star/rendering/PathJoinType.hpp> -#include <com/sun/star/rendering/RenderState.hpp> -#include <com/sun/star/rendering/RepaintResult.hpp> -#include <com/sun/star/rendering/StringContext.hpp> -#include <com/sun/star/rendering/TexturingMode.hpp> -#include <com/sun/star/rendering/ViewState.hpp> -#include <com/sun/star/rendering/XAnimatedSprite.hpp> -#include <com/sun/star/rendering/XBitmap.hpp> -#include <com/sun/star/rendering/XBitmapCanvas.hpp> -#include <com/sun/star/rendering/XCachedPrimitive.hpp> -#include <com/sun/star/rendering/XCanvas.hpp> -#include <com/sun/star/rendering/XCanvasFont.hpp> -#include <com/sun/star/rendering/XGraphicDevice.hpp> -#include <com/sun/star/rendering/XPolyPolygon2D.hpp> -#include <com/sun/star/rendering/XSprite.hpp> -#include <com/sun/star/uno/Sequence.hxx> -#include <comphelper/anytostring.hxx> -#include <comphelper/sequence.hxx> -#include <cppuhelper/exc_hlp.hxx> -#include <i18nlangtag/languagetag.hxx> -#include <iterator> +#include <boost/optional.hpp> +#include <boost/shared_array.hpp> #include <osl/diagnose.h> -#include <osl/getglobalmutex.hxx> +#include <osl/endian.h> +#include <osl/file.h> +#include <osl/interlck.h> +#include <osl/mutex.h> #include <osl/mutex.hxx> -#include <rtl/instance.hxx> +#include <osl/pipe.h> +#include <osl/process.h> +#include <osl/security.h> +#include <osl/socket.h> +#include <osl/thread.hxx> +#include <osl/time.h> +#include <rtl/alloc.h> +#include <rtl/byteseq.h> +#include <rtl/character.hxx> +#include <rtl/locale.h> +#include <rtl/math.h> #include <rtl/math.hxx> +#include <rtl/ref.hxx> +#include <rtl/string.h> +#include <rtl/string.hxx> +#include <rtl/stringutils.hxx> +#include <rtl/tencinfo.h> +#include <rtl/textcvt.h> +#include <rtl/textenc.h> +#include <rtl/ustrbuf.h> +#include <rtl/ustrbuf.hxx> +#include <rtl/ustring.h> #include <rtl/ustring.hxx> #include <sal/alloca.h> #include <sal/config.h> +#include <sal/detail/log.h> +#include <sal/log.hxx> +#include <sal/macros.h> +#include <sal/mathconf.h> +#include <sal/saldllapi.h> #include <sal/types.h> -#include <tools/diagnose_ex.h> -#include <tools/gen.hxx> -#include <tools/poly.hxx> -#include <tools/stream.hxx> -#include <utility> +#include <sal/typesizes.h> +#include <vcl/accel.hxx> +#include <vcl/alpha.hxx> +#include <vcl/animate.hxx> +#include <vcl/apptypes.hxx> +#include <vcl/bitmap.hxx> #include <vcl/bitmapex.hxx> -#include <vcl/canvastools.hxx> +#include <vcl/cairo.hxx> +#include <vcl/checksum.hxx> +#include <vcl/cmdevt.hxx> +#include <vcl/cursor.hxx> +#include <vcl/devicecoordinate.hxx> +#include <vcl/dllapi.h> +#include <vcl/event.hxx> +#include <vcl/fntstyle.hxx> +#include <vcl/font.hxx> #include <vcl/gdimtf.hxx> +#include <vcl/gfxlink.hxx> #include <vcl/gradient.hxx> +#include <vcl/graph.h> #include <vcl/graph.hxx> -#include <vcl/graphicfilter.hxx> -#include <vcl/graphictools.hxx> +#include <vcl/hatch.hxx> +#include <vcl/impdel.hxx> +#include <vcl/inputctx.hxx> +#include <vcl/keycod.hxx> +#include <vcl/keycodes.hxx> +#include <vcl/lineinfo.hxx> +#include <vcl/mapmod.hxx> #include <vcl/metaact.hxx> -#include <vcl/metric.hxx> +#include <vcl/metaactiontypes.hxx> #include <vcl/outdev.hxx> -#include <vcl/salbtype.hxx> -#include <vcl/svapp.hxx> -#include <vcl/virdev.hxx> +#include <vcl/outdevmap.hxx> +#include <vcl/outdevstate.hxx> +#include <vcl/pointr.hxx> +#include <vcl/ptrstyle.hxx> +#include <vcl/region.hxx> +#include <vcl/salnativewidgets.hxx> +#include <vcl/scheduler.hxx> +#include <vcl/scopedbitmapaccess.hxx> +#include <vcl/settings.hxx> +#include <vcl/svgdata.hxx> +#include <vcl/timer.hxx> +#include <vcl/vclenum.hxx> +#include <vcl/vclevent.hxx> +#include <vcl/vclptr.hxx> +#include <vcl/wall.hxx> #include <vcl/window.hxx> -#include <vector> +#include <basegfx/basegfxdllapi.h> +#include <basegfx/color/bcolor.hxx> +#include <basegfx/color/bcolormodifier.hxx> +#include <basegfx/matrix/b2dhommatrix.hxx> +#include <basegfx/numeric/ftools.hxx> +#include <basegfx/point/b2dpoint.hxx> +#include <basegfx/point/b2ipoint.hxx> +#include <basegfx/polygon/b2dpolygon.hxx> +#include <basegfx/polygon/b2dpolypolygon.hxx> +#include <basegfx/range/b2drange.hxx> +#include <basegfx/range/basicrange.hxx> +#include <basegfx/tools/canvastools.hxx> +#include <basegfx/tuple/b2dtuple.hxx> +#include <basegfx/tuple/b2ituple.hxx> +#include <basegfx/tuple/b3dtuple.hxx> +#include <basegfx/vector/b2dvector.hxx> +#include <basegfx/vector/b2enums.hxx> +#include <basegfx/vector/b2ivector.hxx> +#include <canvas/canvastools.hxx> +#include <com/sun/star/awt/Key.hpp> +#include <com/sun/star/awt/KeyGroup.hpp> +#include <com/sun/star/drawing/LineCap.hpp> +#include <com/sun/star/graphic/XPrimitive2D.hpp> +#include <com/sun/star/i18n/KCharacterType.hpp> +#include <com/sun/star/i18n/KParseTokens.hpp> +#include <com/sun/star/i18n/KParseType.hpp> +#include <com/sun/star/i18n/LocaleItem.hpp> +#include <com/sun/star/i18n/ParseResult.hpp> +#include <com/sun/star/i18n/XCharacterClassification.hpp> +#include <com/sun/star/i18n/XLocaleData4.hpp> +#include <com/sun/star/i18n/reservedWords.hpp> +#include <com/sun/star/lang/Locale.hpp> +#include <com/sun/star/rendering/XCanvas.hpp> +#include <com/sun/star/uno/Any.h> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.h> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.h> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.h> +#include <com/sun/star/uno/Type.hxx> +#include <com/sun/star/uno/TypeClass.hdl> +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/genfunc.h> +#include <com/sun/star/uno/genfunc.hxx> +#include <comphelper/fileformat.h> +#include <cppu/cppudllapi.h> +#include <cppu/unotype.hxx> +#include <cppuhelper/cppuhelperdllapi.h> +#include <cppuhelper/weakref.hxx> +#include <i18nlangtag/i18nlangtagdllapi.h> +#include <i18nlangtag/lang.h> +#include <i18nlangtag/languagetag.hxx> +#include <o3tl/cow_wrapper.hxx> +#include <o3tl/typed_flags_set.hxx> +#include <rsc/rsc-vcl-shared-types.hxx> +#include <tools/color.hxx> +#include <tools/debug.hxx> +#include <tools/errinf.hxx> +#include <tools/fontenum.hxx> +#include <tools/gen.hxx> +#include <tools/lineend.hxx> +#include <tools/link.hxx> +#include <tools/mapunit.hxx> +#include <tools/poly.hxx> +#include <tools/rc.hxx> +#include <tools/ref.hxx> +#include <tools/resid.hxx> +#include <tools/resmgr.hxx> +#include <tools/solar.h> +#include <tools/stream.hxx> +#include <tools/toolsdllapi.h> +#include <tools/wintypes.hxx> +#include <typelib/typeclass.h> +#include <typelib/typedescription.h> +#include <typelib/uik.h> +#include <uno/any2.h> +#include <uno/data.h> +#include <uno/sequence2.h> +#include <unotools/charclass.hxx> +#include <unotools/fontdefs.hxx> +#include <unotools/localedatawrapper.hxx> +#include <unotools/readwritemutexguard.hxx> +#include <unotools/syslocale.hxx> +#include <unotools/unotoolsdllapi.h> +#include <cppcanvas/color.hxx> +#include <cppcanvas/font.hxx> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |