Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4d23189a
Kaydet (Commit)
4d23189a
authored
May 27, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add gen-boost-headers script
Change-Id: I02102f6c37863963efa9a312a5a0fbbc1f42f345
üst
e5c6574f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
gen-boost-headers
bin/gen-boost-headers
+57
-0
No files found.
bin/gen-boost-headers
0 → 100755
Dosyayı görüntüle @
4d23189a
#!/bin/bash
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# generate a bunch of dummy headers that wrap the crappy boost headers and
# suppress a myriad of warnings; requires GCC's #include_next extension
set
-euo
pipefail
IFS
=
$'
\n\t
'
GENDIR
=
${
SRCDIR
}
/external/boost/include
rm
-rf
${
GENDIR
}
mkdir
${
GENDIR
}
# note: clucene contains a copy of half of boost, so ignore it too
cat
<
(
cd
${
SRCDIR
}
&&
git
grep
'^# *include'
)
\
<
(
find
${
WORKDIR
}
/UnpackedTarball/
-mindepth
1
-maxdepth
1
-type
d
\
|
grep
-v
boost |
grep
-v
clucene
\
| xargs
grep
-r
'^# *include'
)
\
|
grep
-o
'\bboost.*\.\(h\|hpp\|ipp\)'
\
|
sort
|
uniq
\
|
while
read
-r
HEADER
;
do
mkdir
-p
"
$(
dirname
${
GENDIR
}
/
${
HEADER
})
"
cat
>
"
${
GENDIR
}
/
${
HEADER
}
"
<<
_EOF
/* generated by
$0
, do not edit! */
#pragma once
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-pragmas" /* first! for clang */
#pragma GCC diagnostic ignored "-Wpragmas" /* second! for GCC */
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#pragma GCC diagnostic ignored "-Wextra"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
#pragma GCC diagnostic ignored "-Wplacement-new"
#pragma GCC diagnostic ignored "-Wreturn-type"
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
#pragma GCC diagnostic ignored "-Wtype-limits"
#pragma GCC diagnostic ignored "-Wundef"
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#pragma GCC diagnostic ignored "-Wunused-macros"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#include_next <
${
HEADER
}
>
#pragma GCC diagnostic pop
_EOF
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment