Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'includes': [ | |
| 10 '../build/common_untrusted.gypi', | |
|
Nick Bray (chromium)
2014/07/18 21:55:57
Should this go inside the condition?
bradn
2014/07/18 22:56:10
No, I think includes can't be conditional.
| |
| 11 'gtest.gypi', | |
| 12 ], | |
| 13 'conditions': [ | |
| 14 ['disable_nacl==0 and disable_nacl_untrusted==0', { | |
| 15 'targets': [ | |
| 16 { | |
| 17 'target_name': 'gtest_nacl', | |
| 18 'type': 'none', | |
| 19 'variables': { | |
| 20 'nlib_target': 'libgtest_nacl.a', | |
| 21 'build_glibc': 0, | |
| 22 'build_newlib': 1, | |
| 23 'build_pnacl_newlib': 0, | |
| 24 }, | |
| 25 'sources': [ | |
| 26 '<@(gtest_sources)', | |
| 27 ], | |
| 28 'include_dirs': [ | |
| 29 'gtest', | |
| 30 'gtest/include', | |
| 31 ], | |
| 32 'defines': [ | |
| 33 # In order to allow regex matches in gtest to be shared between Wind ows | |
|
bradn
2014/07/18 22:56:10
>80
| |
| 34 # and other systems, we tell gtest to always use it's internal engin e. | |
| 35 'GTEST_HAS_POSIX_RE=0', | |
| 36 ], | |
| 37 'all_dependent_settings': { | |
| 38 'defines': [ | |
| 39 'GTEST_HAS_POSIX_RE=0', | |
| 40 ], | |
| 41 'link_flags': [ | |
| 42 '-lgtest_nacl', | |
| 43 ], | |
| 44 }, | |
| 45 'defines': [ | |
| 46 # gtest isn't able to figure out when RTTI is disabled for gcc | |
| 47 # versions older than 4.3.2, and assumes it's enabled. Our Mac | |
| 48 # and Linux builds disable RTTI, and cannot guarantee that the | |
| 49 # compiler will be 4.3.2. or newer. The Mac, for example, uses | |
| 50 # 4.2.1 as that is the latest available on that platform. gtest | |
| 51 # must be instructed that RTTI is disabled here, and for any | |
| 52 # direct dependents that might include gtest headers. | |
| 53 'GTEST_HAS_RTTI=0', | |
| 54 ], | |
| 55 'direct_dependent_settings': { | |
| 56 'defines': [ | |
| 57 'UNIT_TEST', | |
| 58 'GTEST_HAS_RTTI=0', | |
| 59 ], | |
| 60 'include_dirs': [ | |
| 61 'gtest/include', # So that gtest headers can find themselves. | |
| 62 ], | |
| 63 }, | |
| 64 }, | |
| 65 { | |
| 66 'target_name': 'gtest_main_nacl', | |
| 67 'type': 'none', | |
| 68 'variables': { | |
| 69 'nlib_target': 'libgtest_main_nacl.a', | |
| 70 'build_glibc': 0, | |
| 71 'build_newlib': 1, | |
| 72 'build_pnacl_newlib': 0, | |
| 73 }, | |
| 74 'dependencies': [ | |
| 75 'gtest_nacl', | |
| 76 ], | |
| 77 'sources': [ | |
| 78 'gtest/src/gtest_main.cc', | |
| 79 ], | |
| 80 'all_dependent_settings': { | |
| 81 'link_flags': [ | |
| 82 '-lgtest_main_nacl', | |
| 83 ], | |
| 84 }, | |
| 85 }, | |
| 86 ], | |
| 87 }], | |
| 88 ], | |
| 89 } | |
| OLD | NEW |