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 /cppuhelper/inc/pch/precompiled_cppuhelper.hxx | |
parent | 6474336e36447b1797bdf429a5f2ad5016a34262 (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 'cppuhelper/inc/pch/precompiled_cppuhelper.hxx')
-rw-r--r-- | cppuhelper/inc/pch/precompiled_cppuhelper.hxx | 148 |
1 files changed, 53 insertions, 95 deletions
diff --git a/cppuhelper/inc/pch/precompiled_cppuhelper.hxx b/cppuhelper/inc/pch/precompiled_cppuhelper.hxx index d54a695f1f14..d528e141209c 100644 --- a/cppuhelper/inc/pch/precompiled_cppuhelper.hxx +++ b/cppuhelper/inc/pch/precompiled_cppuhelper.hxx @@ -8,109 +8,35 @@ */ /* - 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 cppuhelper cppuhelper --cutoff=3 --exclude:system --exclude:module --exclude:local + + If after updating build fails, use the following command to locate conflicting headers: + ./bin/update_pch_bisect ./cppuhelper/inc/pch/precompiled_cppuhelper.hxx "/opt/lo/bin/make cppuhelper.build" --find-conflicts */ -#include <algorithm> -#include <boost/noncopyable.hpp> -#include <memory> #include <cassert> -#include <com/sun/star/beans/NamedValue.hpp> -#include <com/sun/star/beans/Property.hpp> -#include <com/sun/star/beans/PropertyAttribute.hpp> -#include <com/sun/star/beans/PropertyChangeEvent.hpp> -#include <com/sun/star/beans/PropertyValue.hpp> -#include <com/sun/star/beans/PropertyVetoException.hpp> -#include <com/sun/star/beans/UnknownPropertyException.hpp> -#include <com/sun/star/beans/XFastPropertySet.hpp> -#include <com/sun/star/beans/XPropertyAccess.hpp> -#include <com/sun/star/beans/XPropertyChangeListener.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/beans/XPropertySetInfo.hpp> -#include <com/sun/star/beans/XVetoableChangeListener.hpp> -#include <com/sun/star/bridge/UnoUrlResolver.hpp> -#include <com/sun/star/bridge/XUnoUrlResolver.hpp> -#include <com/sun/star/connection/SocketPermission.hpp> -#include <com/sun/star/container/ElementExistException.hpp> -#include <com/sun/star/container/NoSuchElementException.hpp> -#include <com/sun/star/container/XEnumeration.hpp> -#include <com/sun/star/container/XHierarchicalNameAccess.hpp> -#include <com/sun/star/container/XNameContainer.hpp> -#include <com/sun/star/io/FilePermission.hpp> -#include <com/sun/star/lang/DisposedException.hpp> -#include <com/sun/star/lang/EventObject.hpp> -#include <com/sun/star/lang/IllegalAccessException.hpp> -#include <com/sun/star/lang/IllegalArgumentException.hpp> -#include <com/sun/star/lang/WrappedTargetException.hpp> -#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> -#include <com/sun/star/lang/XComponent.hpp> -#include <com/sun/star/lang/XEventListener.hpp> -#include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/lang/XMultiComponentFactory.hpp> -#include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/lang/XSingleComponentFactory.hpp> -#include <com/sun/star/lang/XSingleServiceFactory.hpp> -#include <com/sun/star/loader/CannotActivateFactoryException.hpp> -#include <com/sun/star/loader/XImplementationLoader.hpp> -#include <com/sun/star/reflection/InvalidTypeNameException.hpp> -#include <com/sun/star/reflection/NoSuchTypeNameException.hpp> -#include <com/sun/star/reflection/TypeDescriptionSearchDepth.hpp> -#include <com/sun/star/reflection/XCompoundTypeDescription.hpp> -#include <com/sun/star/reflection/XConstantTypeDescription.hpp> -#include <com/sun/star/reflection/XConstantsTypeDescription.hpp> -#include <com/sun/star/reflection/XEnumTypeDescription.hpp> -#include <com/sun/star/reflection/XIdlClass.hpp> -#include <com/sun/star/reflection/XIdlField2.hpp> -#include <com/sun/star/reflection/XIndirectTypeDescription.hpp> -#include <com/sun/star/reflection/XInterfaceAttributeTypeDescription2.hpp> -#include <com/sun/star/reflection/XInterfaceMemberTypeDescription.hpp> -#include <com/sun/star/reflection/XInterfaceMethodTypeDescription.hpp> -#include <com/sun/star/reflection/XInterfaceTypeDescription2.hpp> -#include <com/sun/star/reflection/XMethodParameter.hpp> -#include <com/sun/star/reflection/XModuleTypeDescription.hpp> -#include <com/sun/star/reflection/XPublished.hpp> -#include <com/sun/star/reflection/XServiceTypeDescription2.hpp> -#include <com/sun/star/reflection/XSingletonTypeDescription2.hpp> -#include <com/sun/star/reflection/XStructTypeDescription.hpp> -#include <com/sun/star/reflection/XTypeDescription.hpp> -#include <com/sun/star/reflection/theCoreReflection.hpp> -#include <com/sun/star/registry/CannotRegisterImplementationException.hpp> -#include <com/sun/star/registry/InvalidRegistryException.hpp> -#include <com/sun/star/security/RuntimePermission.hpp> -#include <com/sun/star/security/XAccessController.hpp> -#include <com/sun/star/uno/Any.hxx> -#include <com/sun/star/uno/DeploymentException.hpp> -#include <com/sun/star/uno/Exception.hpp> -#include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/uno/RuntimeException.hpp> -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/Type.hxx> -#include <com/sun/star/uno/TypeClass.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/uno/XInterface.hpp> -#include <com/sun/star/uno/XUnloadingPreference.hpp> -#include <com/sun/star/util/XMacroExpander.hpp> -#include <config_features.h> -#include <config_folders.h> -#include <cppu/unotype.hxx> #include <cstddef> #include <cstdlib> -#include <cstring> #include <exception> -#include <map> #include <memory> +#include <new> +#include <vector> +#include <boost/noncopyable.hpp> #include <osl/diagnose.h> #include <osl/doublecheckedlocking.h> +#include <osl/file.h> #include <osl/file.hxx> -#include <osl/module.h> +#include <osl/interlck.h> #include <osl/module.hxx> #include <osl/mutex.hxx> #include <osl/security.hxx> #include <osl/thread.hxx> -#include <registry/registry.hxx> #include <rtl/alloc.h> #include <rtl/bootstrap.hxx> #include <rtl/byteseq.hxx> @@ -122,6 +48,8 @@ #include <rtl/strbuf.hxx> #include <rtl/string.h> #include <rtl/string.hxx> +#include <rtl/tencinfo.h> +#include <rtl/textcvt.h> #include <rtl/textenc.h> #include <rtl/unload.h> #include <rtl/uri.h> @@ -134,18 +62,48 @@ #include <sal/config.h> #include <sal/log.hxx> #include <sal/macros.h> +#include <sal/saldllapi.h> #include <sal/types.h> #include <salhelper/simplereferenceobject.hxx> -#include <set> -#include <stack> -#include <string.h> +#include <com/sun/star/beans/PropertyAttribute.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/XSingleComponentFactory.hpp> +#include <com/sun/star/lang/XSingleServiceFactory.hpp> +#include <com/sun/star/reflection/XIndirectTypeDescription.hpp> +#include <com/sun/star/reflection/XInterfaceAttributeTypeDescription2.hpp> +#include <com/sun/star/reflection/XInterfaceTypeDescription2.hpp> +#include <com/sun/star/reflection/XStructTypeDescription.hpp> +#include <com/sun/star/reflection/XTypeDescription.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/DeploymentException.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#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/XComponentContext.hpp> +#include <cppu/cppudllapi.h> +#include <cppu/unotype.hxx> +#include <typelib/typeclass.h> #include <typelib/typedescription.h> -#include <uno/dispatcher.hxx> -#include <uno/environment.hxx> +#include <typelib/uik.h> #include <uno/lbnames.h> #include <uno/mapping.hxx> -#include <unoidl/unoidl.hxx> -#include <unordered_map> -#include <vector> +#include <cppuhelper/bootstrap.hxx> +#include <cppuhelper/compbase_ex.hxx> +#include <cppuhelper/component_context.hxx> +#include <cppuhelper/cppuhelperdllapi.h> +#include <cppuhelper/exc_hlp.hxx> +#include <cppuhelper/factory.hxx> +#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase_ex.hxx> +#include <cppuhelper/interfacecontainer.h> +#include <cppuhelper/propshlp.hxx> +#include <cppuhelper/queryinterface.hxx> +#include <cppuhelper/supportsservice.hxx> +#include <cppuhelper/typeprovider.hxx> +#include <cppuhelper/weak.hxx> /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |