Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: runtime/tools/gyp/nss_configurations.gypi

Issue 2992593002: [infra] Begin removing gyp (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file.
4
5 # This file is included to modify the configurations to build third-party
6 # code from Mozilla's NSS and NSPR libraries, modified by the Chromium project.
7 # This code is C code, not C++, and is not warning-free, so we need to remove
8 # C++-specific flags, and add flags to supress the warnings in the code.
9 # This file is included from gyp files in the runtime/bin/net directory.
10 {
11 'variables': {
12 # Used by third_party/nss, which is from Chromium.
13 # Include the built-in set of root certificate authorities.
14 'exclude_nss_root_certs': 0,
15 'os_posix%': 1,
16 'os_bsd%': 0,
17 'chromeos%': 0,
18 'clang%': 0,
19 },
20 'target_defaults': {
21 'cflags': [
22 '-w',
23 '-UHAVE_CVAR_BUILT_ON_SEM',
24 ],
25 # Removes these flags from the list cflags.
26 'cflags!': [
27 # NSS code from upstream mozilla builds with warnings,
28 # so we must allow warnings without failing.
29 '-Werror',
30 '-Wall',
31 '-ansi',
32 # Not supported for C, only for C++.
33 '-Wnon-virtual-dtor',
34 '-Wno-conversion-null',
35 '-fno-rtti',
36 '-fvisibility-inlines-hidden',
37 '-Woverloaded-virtual',
38 ],
39 'configurations': {
40 'Dart_Base': {
41 'xcode_settings': {
42 'WARNING_CFLAGS': [
43 '-w',
44 ],
45 'WARNING_CFLAGS!': [
46 '-Wall',
47 '-Wextra',
48 ],
49 },
50 },
51 # Dart_Macos_Debug and Dart_Macos_Release are merged after
52 # Dart_Macos_Base, so we can override the 'ansi' and '-Werror' flags set
53 # at the global level in tools/gyp/configurations_xcode.gypi.
54 'Dart_Macos_Debug': {
55 'abstract': 1,
56 'xcode_settings': {
57 # Remove 'ansi' setting.
58 'GCC_C_LANGUAGE_STANDARD': 'c99',
59 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off
60 },
61 },
62 'Dart_Macos_Release': {
63 'abstract': 1,
64 'xcode_settings': {
65 # Remove 'ansi' setting.
66 'GCC_C_LANGUAGE_STANDARD': 'c99',
67 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off
68 },
69 },
70 # When being built for Android nss expects __linux__ to be defined.
71 'Dart_Android_Base': {
72 'target_conditions': [
73 ['_toolset=="host"', {
74 'defines!': [
75 'ANDROID',
76 ],
77 # Define __linux__ on Android build for NSS.
78 'defines': [
79 '__linux__',
80 ],
81 'cflags!': [
82 '-U__linux__',
83 ],
84 }],
85 ['_toolset=="target"', {
86 'defines': [
87 '__linux__',
88 'CHECK_FORK_GETPID', # Android does not provide pthread_atfork.
89 '__USE_LARGEFILE64',
90 ],
91 # Define __linux__ on Android build for NSS.
92 'cflags!': [
93 '-U__linux__',
94 ],
95 }]
96 ],
97 },
98 },
99 },
100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698