Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'includes': [ | 6 'includes': [ |
| 7 '../../native_client/build/untrusted.gypi', | 7 '../../native_client/build/untrusted.gypi', |
| 8 ], | 8 ], |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'protobuf_lite_nacl', | 11 'target_name': 'protobuf_lite_nacl', |
| 12 'type': 'none', | 12 'type': 'none', |
| 13 'variables': { | 13 'variables': { |
| 14 'nlib_target': 'libprotobuf_lite_nacl.a', | 14 'nlib_target': 'libprotobuf_lite_nacl.a', |
| 15 'build_glibc': 0, | 15 'build_glibc': 0, |
| 16 'build_newlib': 0, | 16 'build_newlib': 0, |
| 17 'build_pnacl_newlib': 1, | 17 'build_pnacl_newlib': 1, |
| 18 'config_h_dir': '.', | |
| 19 }, | 18 }, |
| 20 'pnacl_compile_flags': [ | 19 'pnacl_compile_flags': [ |
|
Peter Kasting
2016/04/06 22:35:39
You should be able to remove this block, I think.
xyzzyz
2016/04/07 18:55:02
Done.
| |
| 21 # This disables #warning in hash_map/hash_set headers which are | 20 # This disables #warning in hash_map/hash_set headers which are |
| 22 # deprecated but still used in protobuf. | 21 # deprecated but still used in protobuf. |
| 23 # | 22 # |
| 24 # TODO(sergeyu): Migrate protobuf to unordered_man and unordered_set | 23 # TODO(sergeyu): Migrate protobuf to unordered_man and unordered_set |
| 25 # and remove this flag. | 24 # and remove this flag. |
| 26 '-Wno-#warnings', | 25 '-Wno-#warnings', |
| 27 ], | 26 ], |
| 28 'includes': [ | 27 'includes': [ |
| 29 'protobuf_lite.gypi', | 28 'protobuf_lite.gypi', |
| 30 ], | 29 ], |
| 30 'defines': [ | |
| 31 # protobuf requires these to be set manually, as it no longer | |
| 32 # uses config.h | |
| 33 'HAVE_ZLIB', | |
|
Peter Kasting
2016/04/06 22:35:39
Do you really need this?
xyzzyz
2016/04/07 18:55:02
Seems like I actually don't. Thanks!
| |
| 34 'HAVE_PTHREAD', | |
|
Peter Kasting
2016/04/06 22:35:39
In my roll attempt I set this in protobuf_lite.gyp
xyzzyz
2016/04/07 18:55:02
I set it in protobuf.gyp, and it seems you're righ
Peter Kasting
2016/04/07 23:25:38
If it affects files listed in protobuf_lit.gypi, t
xyzzyz
2016/04/11 19:34:40
Done.
| |
| 35 ], | |
| 31 }, # end of target 'protobuf_lite_nacl' | 36 }, # end of target 'protobuf_lite_nacl' |
| 32 ] | 37 ] |
| 33 } | 38 } |
| OLD | NEW |