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

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

Issue 10909189: Add gyp files to build NSS in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix remaining Dartium build errors Created 8 years, 1 month 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 | Annotate | Revision Log
« runtime/bin/bin.gypi ('K') | « runtime/bin/net/zlib.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # When the NSS and related libraries gyp files are processed in
14 # Dartium, do not override the settings from Dartium. The targets will
15 # not be built.
16 'os_posix%': 1,
17 'os_bsd%': 0,
18 'chromeos%': 0,
19 'clang%': 0,
20 },
21 'target_defaults': {
22 'cflags': [
23 '-Wno-unused-variable',
24 '-Wno-unused-but-set-variable',
25 '-Wno-missing-field-initializers',
26 '-Wno-uninitialized',
27 '-Wno-sign-compare',
28 '-Wno-empty-body',
29 '-Wno-type-limits',
30 '-Wno-pointer-to-int-cast',
31 '-UHAVE_CVAR_BUILT_ON_SEM',
32 ],
33 # Removes these flags from the list cflags.
34 'cflags!': [
35 # NSS code from upstream mozilla builds with warnings,
36 # so we must allow warnings without failing.
37 '-Werror',
38 '-Wall',
39 '-ansi',
40 # This flag would let a certain assembly function be inlined,
41 # causing errors in mpcpucache.c.
42 '-fvisibility=hidden',
43 # Not supported for C, only for C++.
44 '-Wnon-virtual-dtor',
45 '-Wno-conversion-null',
46 '-fno-rtti',
47 '-fvisibility-inlines-hidden',
48 '-Woverloaded-virtual',
49 ],
50 'configurations': {
51 'Dart_Base': {
52 'xcode_settings': {
53 'WARNING_CFLAGS!': [
54 '-Wall',
55 '-Wextra',
56 ],
57 },
58 },
59 # Dart_Debug and Dart_Release are merged after Dart_Base, so we can
60 # override the 'ansi' and '-Werror' flags set at the global level in
61 # tools/gyp/configurations_xcode.gypi.
62 'Dart_Debug': {
63 'xcode_settings': {
64 # Remove 'ansi' setting.
65 'GCC_C_LANGUAGE_STANDARD': 'c99',
66 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off
67 },
68 },
69 'Dart_Release': {
70 'xcode_settings': {
71 # Remove 'ansi' setting.
72 'GCC_C_LANGUAGE_STANDARD': 'c99',
73 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror off
74 },
75 },
76 },
77 },
78 }
OLDNEW
« runtime/bin/bin.gypi ('K') | « runtime/bin/net/zlib.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698