summaryrefslogtreecommitdiff
path: root/chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp')
-rw-r--r--chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp34
1 files changed, 34 insertions, 0 deletions
diff --git a/chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp b/chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp
new file mode 100644
index 00000000000..88537bf2acc
--- /dev/null
+++ b/chromium/third_party/jsoncpp/jsoncpp_untrusted.gyp
@@ -0,0 +1,34 @@
+# Copyright 2013 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.
+
+{
+ 'includes': [
+ '../../build/common_untrusted.gypi',
+ 'jsoncpp.gypi',
+ ],
+ 'conditions': [
+ ['disable_nacl==0 and disable_nacl_untrusted==0', {
+ 'targets': [
+ {
+ 'target_name': 'jsoncpp_untrusted',
+ 'type': 'none',
+ 'variables': {
+ 'nacl_untrusted_build': 1,
+ 'nlib_target': 'libjsoncpp_untrusted.a',
+ 'build_newlib': 1,
+ },
+ 'gcc_compile_flags': [
+ # Turn off optimizations based on strict aliasing
+ # because of the workaround at
+ # overrides/src/lib_json/json_value.cpp:38.
+ '-fno-strict-aliasing',
+ ],
+ 'dependencies': [
+ '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
+ ],
+ },
+ ],
+ }],
+ ],
+}