diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-26 10:40:40 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-26 10:40:40 +0000 |
commit | 5c4a3165bcdd2ab1b341b3ffc339c0461aa5c3de (patch) | |
tree | b6980a1d1a3d0d65e6af1b96aee713e32e9fb058 /third_party/protobuf | |
parent | 44495c48060e337c767b8a2ac3c5ee2a69500852 (diff) | |
download | chromium_src-5c4a3165bcdd2ab1b341b3ffc339c0461aa5c3de.zip chromium_src-5c4a3165bcdd2ab1b341b3ffc339c0461aa5c3de.tar.gz chromium_src-5c4a3165bcdd2ab1b341b3ffc339c0461aa5c3de.tar.bz2 |
Build protobuf for PNacl.
This adds protobuf_lite_nacl that compiles protobuf_lite for PNaCl.
BUG=276739
Review URL: https://codereview.chromium.org/137533018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/protobuf')
-rw-r--r-- | third_party/protobuf/protobuf_nacl.gyp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/third_party/protobuf/protobuf_nacl.gyp b/third_party/protobuf/protobuf_nacl.gyp new file mode 100644 index 0000000..e8741c2 --- /dev/null +++ b/third_party/protobuf/protobuf_nacl.gyp @@ -0,0 +1,36 @@ +# Copyright 2014 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': [ + '../../native_client/build/untrusted.gypi', + ], + 'targets': [ + { + 'target_name': 'protobuf_lite_nacl', + 'type': 'none', + 'variables': { + 'nlib_target': 'libprotobuf_lite_nacl.a', + 'build_glibc': 0, + 'build_newlib': 0, + 'build_pnacl_newlib': 1, + 'config_h_dir': '.', + }, + 'dependencies': [ + '../../native_client/tools.gyp:prep_toolchain', + ], + 'pnacl_compile_flags': [ + # This disables #warning in hash_map/hash_set headers which are + # deprecated but still used in protobuf. + # + # TODO(sergeyu): Migrate protobuf to unordered_man and unordered_set + # and remove this flag. + '-Wno-#warnings', + ], + 'includes': [ + 'protobuf_lite.gypi', + ], + }, # end of target 'protobuf_lite_nacl' + ] +} |