summaryrefslogtreecommitdiffstats
path: root/build/external_code.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/external_code.gypi')
-rw-r--r--build/external_code.gypi33
1 files changed, 33 insertions, 0 deletions
diff --git a/build/external_code.gypi b/build/external_code.gypi
new file mode 100644
index 0000000..ca16f86
--- /dev/null
+++ b/build/external_code.gypi
@@ -0,0 +1,33 @@
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'conditions': [
+ [ 'OS=="win"', {
+ 'target_defaults': {
+ 'defines': [
+ '_CRT_SECURE_NO_DEPRECATE',
+ '_CRT_NONSTDC_NO_WARNINGS',
+ '_CRT_NONSTDC_NO_DEPRECATE',
+ '_SCL_SECURE_NO_DEPRECATE',
+ ],
+ 'msvs_disabled_warnings': [4800],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'WarnAsError': 'false',
+ 'Detect64BitPortabilityProblems': 'false',
+ },
+ },
+ },
+ }],
+ [ 'OS=="mac"', {
+ 'target_defaults': {
+ 'xcode_settings': {
+ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO',
+ 'WARNING_CFLAGS!': ['-Wall'],
+ },
+ },
+ }],
+ ],
+}