diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-01-10 11:09:42 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-01-11 03:55:46 +0000 |
commit | 24ef3924d885a37fb15442208c027c77781175b8 (patch) | |
tree | e0f65212139149d3792b2a1a1c92d3eb85d5ce56 /bin/update_pch | |
parent | 09a1566bf18cdf98b111d4979e4f4ad52ce65b07 (diff) |
PCH support on Linux
Fixes and improvements to support Precompiled Headers
on Linux.
Change-Id: I8145c146b0dba56c7a4d0fdf9c330164b67ada53
Reviewed-on: https://gerrit.libreoffice.org/21307
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'bin/update_pch')
-rwxr-xr-x | bin/update_pch | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/update_pch b/bin/update_pch index a21b0692b6d1..18eba85368da 100755 --- a/bin/update_pch +++ b/bin/update_pch @@ -88,7 +88,7 @@ DEFAULTS = \ 'reportdesign.rpt' : ( 9, EXCLUDE, INCLUDE, INCLUDE), # 9.4 'reportdesign.rptui' : ( 4, EXCLUDE, INCLUDE, INCLUDE), # 13.1 'reportdesign.rptxml' : ( 2, EXCLUDE, EXCLUDE, INCLUDE), # 7.6 - 'sal.sal' : ( 5, EXCLUDE, INCLUDE, INCLUDE), # 4.2 + 'sal.sal' : ( 2, EXCLUDE, EXCLUDE, INCLUDE), # 4.2 'sc.sc' : (12, EXCLUDE, INCLUDE, INCLUDE), # 92.6 'sc.scfilt' : ( 4, EXCLUDE, EXCLUDE, INCLUDE), # 39.9 'sc.scui' : ( 1, EXCLUDE, EXCLUDE, INCLUDE), # 15.0 @@ -407,6 +407,7 @@ def filter_ignore(line, module): 'vcl/jobset.hxx', 'vcl/oldprintadaptor.hxx', 'vcl/opengl/OpenGLContext.hxx', + 'vcl/opengl/OpenGLHelper.hxx', # Conflicts with X header on *ix 'vcl/print.hxx', 'vcl/prntypes.hxx', # redefines Orientation from filter/jpeg/Exif.hxx 'vcl/sysdata.hxx', @@ -418,6 +419,11 @@ def filter_ignore(line, module): 'XMLEventImportHelper.hxx', # NameMap redefined in XMLEventExport.hxx 'xmloff/XMLEventExport.hxx', # enums redefined ] + if module == 'xmlsecurity': + ignore_list += [ + 'xmlsec/crypto.h', + 'xmlsecurity/xmlsec-wrapper.h', + ] for i in ignore_list: if line.startswith(i): @@ -737,7 +743,7 @@ def generate(includes, libname, filename, module): f.write('\n Generated on {} using:\n {}\n'.format( datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), make_command_line())) - f.write('\n If after updating build fails, use the following command to locate conflicting headers:\n ./bin/update_pch_bisect {} "/opt/lo/bin/make {}.build" --find-conflicts\n*/\n'.format( + f.write('\n If after updating build fails, use the following command to locate conflicting headers:\n ./bin/update_pch_bisect {} "make {}.build" --find-conflicts\n*/\n'.format( filename, module)) # svx needs this (sendreportw32.cxx) @@ -760,7 +766,7 @@ def generate(includes, libname, filename, module): (module == 'xmlsecurity' and libname == 'xsec_xmlsec'): ado_define = """ // Cleanup windows header macro pollution. -#ifdef WNT +#if defined(WNT) && defined(WINAPI) # include <postwin.h> # undef RGB #endif |