• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14ABSEIL_DIR = get_path_info("./abseil-cpp/", "abspath")
15THIRDPARTY_ABSEIL_SUBSYS_NAME = "thirdparty"
16THIRDPARTY_ABSEIL_PART_NAME = "abseil-cpp"
17ABSL_DEFAULT_COPTS = [
18  "-Wall",
19  "-Wextra",
20  "-Weverything",
21  "-Wno-c++98-compat-pedantic",
22  "-Wno-conversion",
23  "-Wno-covered-switch-default",
24  "-Wno-deprecated",
25  "-Wno-disabled-macro-expansion",
26  "-Wno-double-promotion",
27  "-Wno-comma",
28  "-Wno-extra-semi",
29  "-Wno-extra-semi-stmt",
30  "-Wno-packed",
31  "-Wno-padded",
32  "-Wno-sign-compare",
33  "-Wno-float-conversion",
34  "-Wno-float-equal",
35  "-Wno-format-nonliteral",
36  "-Wno-gcc-compat",
37  "-Wno-global-constructors",
38  "-Wno-exit-time-destructors",
39  "-Wno-non-modular-include-in-module",
40  "-Wno-old-style-cast",
41  "-Wno-range-loop-analysis",
42  "-Wno-reserved-id-macro",
43  "-Wno-shorten-64-to-32",
44  "-Wno-switch-enum",
45  "-Wno-thread-safety-negative",
46  "-Wno-unknown-warning-option",
47  "-Wno-unreachable-code",
48  "-Wno-unused-macros",
49  "-Wno-weak-vtables",
50  "-Wno-zero-as-null-pointer-constant",
51  "-Wbitfield-enum-conversion",
52  "-Wbool-conversion",
53  "-Wconstant-conversion",
54  "-Wenum-conversion",
55  "-Wint-conversion",
56  "-Wliteral-conversion",
57  "-Wnon-literal-null-conversion",
58  "-Wnull-conversion",
59  "-Wobjc-literal-conversion",
60  "-Wno-sign-conversion",
61  "-Wstring-conversion",
62  "-DNOMINMAX",
63  "-Wno-reserved-identifier",
64  "-Wno-shadow-field-in-constructor",
65  "-Wno-unreachable-code-break",
66]
67