summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorAshod Nakashian <ashodnakashian@yahoo.com>2015-11-14 18:48:49 -0500
committerCaolán McNamara <caolanm@redhat.com>2015-11-15 20:31:35 +0000
commit06116bd15b1fb8b03e65e1166f5ddad929614246 (patch)
treeb2849066315c89f1bcd1d1c9bc903b82e7c00523 /starmath
parent6474336e36447b1797bdf429a5f2ad5016a34262 (diff)
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 'starmath')
-rw-r--r--starmath/inc/pch/precompiled_sm.hxx306
1 files changed, 134 insertions, 172 deletions
diff --git a/starmath/inc/pch/precompiled_sm.hxx b/starmath/inc/pch/precompiled_sm.hxx
index aef1bca08698..c4ee8a0492ec 100644
--- a/starmath/inc/pch/precompiled_sm.hxx
+++ b/starmath/inc/pch/precompiled_sm.hxx
@@ -8,205 +8,167 @@
*/
/*
- 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:37 using:
+ ./bin/update_pch starmath sm --cutoff=5 --exclude:system --exclude:module --include:local
+
+ If after updating build fails, use the following command to locate conflicting headers:
+ ./bin/update_pch_bisect ./starmath/inc/pch/precompiled_sm.hxx "/opt/lo/bin/make starmath.build" --find-conflicts
*/
-#include "svx/modctrl.hxx"
-#include "tools/rcid.h"
-#include <com/sun/star/accessibility/AccessibleEventId.hpp>
-#include <com/sun/star/accessibility/AccessibleEventObject.hpp>
-#include <com/sun/star/accessibility/AccessibleRole.hpp>
-#include <com/sun/star/accessibility/AccessibleStateType.hpp>
-#include <com/sun/star/accessibility/AccessibleTextType.hpp>
-#include <com/sun/star/accessibility/XAccessible.hpp>
-#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
-#include <com/sun/star/awt/FocusEvent.hpp>
-#include <com/sun/star/awt/Size.hpp>
-#include <com/sun/star/awt/XFocusListener.hpp>
-#include <com/sun/star/beans/PropertyAttribute.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <com/sun/star/container/XChild.hpp>
-#include <com/sun/star/container/XNameAccess.hpp>
-#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
-#include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.hpp>
-#include <com/sun/star/document/XDocumentProperties.hpp>
-#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
-#include <com/sun/star/embed/ElementModes.hpp>
-#include <com/sun/star/formula/SymbolDescriptor.hpp>
-#include <com/sun/star/frame/Desktop.hpp>
-#include <com/sun/star/frame/XFramesSupplier.hpp>
-#include <com/sun/star/i18n/UnicodeType.hpp>
-#include <com/sun/star/i18n/WordType.hpp>
-#include <com/sun/star/io/XActiveDataControl.hpp>
-#include <com/sun/star/io/XActiveDataSource.hpp>
-#include <com/sun/star/lang/Locale.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/packages/zip/ZipIOException.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
-#include <com/sun/star/script/XLibraryContainer.hpp>
-#include <com/sun/star/task/XStatusIndicatorFactory.hpp>
-#include <com/sun/star/uno/Any.h>
-#include <com/sun/star/uno/Sequence.h>
-#include <com/sun/star/util/MeasureUnit.hpp>
-#include <com/sun/star/xml/sax/InputSource.hpp>
-#include <com/sun/star/xml/sax/Parser.hpp>
-#include <com/sun/star/xml/sax/Writer.hpp>
-#include <com/sun/star/xml/sax/XDTDHandler.hpp>
-#include <com/sun/star/xml/sax/XEntityResolver.hpp>
-#include <com/sun/star/xml/sax/XErrorHandler.hpp>
-#include <com/sun/star/xml/sax/XParser.hpp>
-#include <comphelper/accessibleeventnotifier.hxx>
-#include <comphelper/accessibletexthelper.hxx>
-#include <comphelper/classids.hxx>
-#include <comphelper/genericpropertyset.hxx>
-#include <comphelper/processfactory.hxx>
-#include <comphelper/propertysetinfo.hxx>
-#include <comphelper/servicehelper.hxx>
-#include <comphelper/storagehelper.hxx>
-#include <comphelper/string.hxx>
-#include <config_options.h>
-#include <cppuhelper/supportsservice.hxx>
-#include <editeng/editdata.hxx>
-#include <editeng/editeng.hxx>
-#include <editeng/editobj.hxx>
-#include <editeng/editstat.hxx>
-#include <editeng/editview.hxx>
-#include <editeng/eeitem.hxx>
-#include <editeng/fhgtitem.hxx>
-#include <editeng/fontitem.hxx>
-#include <editeng/lrspitem.hxx>
-#include <editeng/outliner.hxx>
-#include <editeng/paperinf.hxx>
-#include <editeng/scripttypeitem.hxx>
-#include <editeng/unoedhlp.hxx>
-#include <editeng/unolingu.hxx>
-#include <editeng/wghtitem.hxx>
-#include <filter/msfilter/rtfutil.hxx>
-#include <float.h>
-#include <fstream>
-#include <i18nlangtag/lang.h>
-#include <iterator>
-#include <map>
-#include <math.h>
+#include <algorithm>
+#include <cassert>
+#include <climits>
+#include <config_features.h>
+#include <cstdarg>
+#include <cstddef>
+#include <cstdlib>
+#include <deque>
+#include <functional>
+#include <limits.h>
+#include <limits>
#include <memory>
-#include <oox/token/namespaces.hxx>
-#include <oox/token/tokens.hxx>
+#include <new>
+#include <ostream>
+#include <set>
+#include <stdlib.h>
+#include <string.h>
+#include <unordered_map>
+#include <vector>
+#include <boost/checked_delete.hpp>
+#include <boost/current_function.hpp>
+#include <boost/intrusive_ptr.hpp>
+#include <boost/optional.hpp>
+#include <boost/optional/optional.hpp>
+#include <boost/signals2/signal.hpp>
#include <osl/diagnose.h>
+#include <osl/module.hxx>
#include <osl/mutex.hxx>
+#include <osl/process.h>
#include <osl/thread.h>
+#include <rtl/alloc.h>
+#include <rtl/character.hxx>
+#include <rtl/instance.hxx>
#include <rtl/math.hxx>
+#include <rtl/ref.hxx>
+#include <rtl/string.hxx>
+#include <rtl/stringutils.hxx>
+#include <rtl/textenc.h>
+#include <rtl/ustrbuf.h>
#include <rtl/ustrbuf.hxx>
+#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
+#include <rtl/uuid.h>
#include <sal/config.h>
+#include <sal/log.hxx>
#include <sal/macros.h>
-#include <sax/tools/converter.hxx>
+#include <sal/types.h>
+#include <salhelper/singletonref.hxx>
+#include <vcl/apptypes.hxx>
+#include <vcl/cairo.hxx>
+#include <vcl/cursor.hxx>
+#include <vcl/devicecoordinate.hxx>
+#include <vcl/dllapi.h>
+#include <vcl/event.hxx>
+#include <vcl/font.hxx>
+#include <vcl/inputctx.hxx>
+#include <vcl/keycodes.hxx>
+#include <vcl/mapmod.hxx>
+#include <vcl/metaact.hxx>
+#include <vcl/metaactiontypes.hxx>
+#include <vcl/metric.hxx>
+#include <vcl/msgbox.hxx>
+#include <vcl/outdev.hxx>
+#include <vcl/outdevmap.hxx>
+#include <vcl/outdevstate.hxx>
+#include <vcl/pointr.hxx>
+#include <vcl/region.hxx>
+#include <vcl/salnativewidgets.hxx>
+#include <vcl/settings.hxx>
+#include <vcl/svapp.hxx>
+#include <vcl/vclevent.hxx>
+#include <vcl/vclptr.hxx>
+#include <vcl/wall.hxx>
+#include <vcl/window.hxx>
+#include <basegfx/color/bcolor.hxx>
+#include <basegfx/polygon/b2dpolypolygon.hxx>
+#include <basegfx/vector/b2enums.hxx>
+#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/beans/XPropertySet.hpp>
+#include <com/sun/star/drawing/LineCap.hpp>
+#include <com/sun/star/io/XInputStream.hpp>
+#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 <comphelper/comphelperdllapi.h>
+#include <comphelper/string.hxx>
+#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/weak.hxx>
+#include <cppuhelper/weakref.hxx>
+#include <dialog.hxx>
+#include <document.hxx>
+#include <editeng/editdata.hxx>
+#include <editeng/editengdllapi.h>
+#include <error.hxx>
+#include <format.hxx>
+#include <i18nlangtag/lang.h>
+#include <node.hxx>
+#include <o3tl/cow_wrapper.hxx>
+#include <o3tl/typed_flags_set.hxx>
+#include <rect.hxx>
+#include <rsc/rsc-vcl-shared-types.hxx>
#include <sfx2/app.hxx>
#include <sfx2/dispatch.hxx>
-#include <sfx2/docfac.hxx>
+#include <sfx2/dllapi.h>
#include <sfx2/docfile.hxx>
-#include <sfx2/docfilt.hxx>
-#include <sfx2/docinsert.hxx>
-#include <sfx2/event.hxx>
-#include <sfx2/fcontnr.hxx>
-#include <sfx2/filedlghelper.hxx>
-#include <sfx2/frame.hxx>
-#include <sfx2/imgmgr.hxx>
-#include <sfx2/msg.hxx>
-#include <sfx2/objface.hxx>
-#include <sfx2/printer.hxx>
-#include <sfx2/request.hxx>
-#include <sfx2/sfxmodelfactory.hxx>
-#include <sfx2/taskpane.hxx>
-#include <sfx2/viewfrm.hxx>
-#include <sfx2/viewsh.hxx>
-#include <sfx2/zoomitem.hxx>
-#include <sot/exchange.hxx>
-#include <sot/factory.hxx>
+#include <smdll.hxx>
+#include <smmod.hxx>
#include <sot/formats.hxx>
-#include <sot/storage.hxx>
-#include <stack>
+#include <svl/SfxBroadcaster.hxx>
#include <svl/eitem.hxx>
-#include <svl/fstathelper.hxx>
#include <svl/hint.hxx>
#include <svl/intitem.hxx>
-#include <svl/itempool.hxx>
-#include <svl/itemprop.hxx>
#include <svl/itemset.hxx>
+#include <svl/languageoptions.hxx>
#include <svl/poolitem.hxx>
-#include <svl/ptitem.hxx>
-#include <svl/slstitm.hxx>
#include <svl/smplhint.hxx>
#include <svl/stritem.hxx>
-#include <svl/undo.hxx>
-#include <svl/urihelper.hxx>
-#include <svl/whiter.hxx>
-#include <svtools/ctrltool.hxx>
-#include <svtools/imgdef.hxx>
-#include <svtools/miscopt.hxx>
-#include <svtools/rtfkeywd.hxx>
-#include <svtools/sfxecode.hxx>
-#include <svtools/transfer.hxx>
-#include <svx/lboxctrl.hxx>
-#include <svx/modctrl.hxx>
-#include <svx/svxdlg.hxx>
-#include <svx/ucsubset.hxx>
-#include <svx/xmlsecctrl.hxx>
-#include <svx/zoomctrl.hxx>
-#include <svx/zoomsliderctrl.hxx>
-#include <svx/zoomslideritem.hxx>
-#include <toolkit/awt/vclxdevice.hxx>
-#include <toolkit/helper/vclunohelper.hxx>
+#include <svl/svldllapi.h>
+#include <svx/svxdllapi.h>
+#include <symbol.hxx>
+#include <token.hxx>
#include <tools/color.hxx>
-#include <tools/diagnose_ex.h>
-#include <tools/fract.hxx>
+#include <tools/debug.hxx>
+#include <tools/errcode.hxx>
#include <tools/gen.hxx>
#include <tools/globname.hxx>
+#include <tools/link.hxx>
#include <tools/mapunit.hxx>
-#include <tools/stream.hxx>
-#include <tools/tenccvt.hxx>
-#include <ucbhelper/content.hxx>
-#include <unotools/accessiblerelationsethelper.hxx>
-#include <unotools/accessiblestatesethelper.hxx>
-#include <unotools/charclass.hxx>
-#include <unotools/eventcfg.hxx>
-#include <unotools/lingucfg.hxx>
-#include <unotools/linguprops.hxx>
-#include <unotools/localedatawrapper.hxx>
-#include <unotools/moduleoptions.hxx>
-#include <unotools/pathoptions.hxx>
-#include <unotools/saveopt.hxx>
-#include <unotools/streamwrap.hxx>
-#include <unotools/syslocale.hxx>
-#include <utility>
-#include <vcl/builder.hxx>
-#include <vcl/decoview.hxx>
-#include <vcl/help.hxx>
-#include <vcl/layout.hxx>
-#include <vcl/lineinfo.hxx>
-#include <vcl/mapmod.hxx>
-#include <vcl/menu.hxx>
-#include <vcl/msgbox.hxx>
-#include <vcl/outdev.hxx>
-#include <vcl/print.hxx>
-#include <vcl/settings.hxx>
-#include <vcl/status.hxx>
-#include <vcl/svapp.hxx>
-#include <vcl/unohelp2.hxx>
-#include <vcl/virdev.hxx>
-#include <vcl/waitobj.hxx>
-#include <vcl/wall.hxx>
-#include <vcl/window.hxx>
-#include <vcl/wrkwin.hxx>
-#include <vector>
-#include <xmloff/attrlist.hxx>
-#include <xmloff/nmspmap.hxx>
-#include <xmloff/xmlmetai.hxx>
-#include <xmloff/xmlnmspe.hxx>
-#include <xmloff/xmltoken.hxx>
-#include <xmloff/xmluconv.hxx>
+#include <tools/poly.hxx>
+#include <tools/rc.hxx>
+#include <tools/ref.hxx>
+#include <tools/resid.hxx>
+#include <tools/solar.h>
+#include <tools/toolsdllapi.h>
+#include <tools/wintypes.hxx>
+#include <typelib/typedescription.h>
+#include <types.hxx>
+#include <uno/sequence2.h>
+#include <unomodel.hxx>
+#include <unotools/fontdefs.hxx>
+#include <unotools/options.hxx>
+#include <unotools/unotoolsdllapi.h>
+#include <utility.hxx>
+#include <view.hxx>
+#include <visitors.hxx>
+#include <xmloff/dllapi.h>
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */