| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'includes': [ | |
| 10 '../build/common_untrusted.gypi', | |
| 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': 0, | |
| 23 'build_irt': 0, | |
| 24 'build_pnacl_newlib': 1, | |
| 25 'build_nonsfi_helper': 1, | |
| 26 }, | |
| 27 'sources': [ | |
| 28 '<@(gtest_sources)', | |
| 29 ], | |
| 30 'include_dirs': [ | |
| 31 'gtest', | |
| 32 'gtest/include', | |
| 33 ], | |
| 34 'defines': [ | |
| 35 # In order to allow regex matches in gtest to be shared between | |
| 36 # Windows and other systems, we tell gtest to always use it's | |
| 37 # internal engine. | |
| 38 'GTEST_HAS_POSIX_RE=0', | |
| 39 'GTEST_LANG_CXX11=0', | |
| 40 # gtest isn't able to figure out when RTTI is disabled for gcc | |
| 41 # versions older than 4.3.2, and assumes it's enabled. Our Mac | |
| 42 # and Linux builds disable RTTI, and cannot guarantee that the | |
| 43 # compiler will be 4.3.2. or newer. The Mac, for example, uses | |
| 44 # 4.2.1 as that is the latest available on that platform. gtest | |
| 45 # must be instructed that RTTI is disabled here, and for any | |
| 46 # direct dependents that might include gtest headers. | |
| 47 'GTEST_HAS_RTTI=0', | |
| 48 ], | |
| 49 'all_dependent_settings': { | |
| 50 'defines': [ | |
| 51 'GTEST_HAS_POSIX_RE=0', | |
| 52 'GTEST_LANG_CXX11=0', | |
| 53 ], | |
| 54 'link_flags': [ | |
| 55 '-lgtest_nacl', | |
| 56 ], | |
| 57 }, | |
| 58 'direct_dependent_settings': { | |
| 59 'defines': [ | |
| 60 'UNIT_TEST', | |
| 61 'GTEST_HAS_RTTI=0', | |
| 62 ], | |
| 63 'include_dirs': [ | |
| 64 'gtest/include', # So that gtest headers can find themselves. | |
| 65 ], | |
| 66 }, | |
| 67 }, | |
| 68 { | |
| 69 'target_name': 'gtest_main_nacl', | |
| 70 'type': 'none', | |
| 71 'variables': { | |
| 72 'nlib_target': 'libgtest_main_nacl.a', | |
| 73 'build_glibc': 0, | |
| 74 'build_newlib': 0, | |
| 75 'build_irt': 0, | |
| 76 'build_pnacl_newlib': 1, | |
| 77 'build_nonsfi_helper': 1, | |
| 78 }, | |
| 79 'dependencies': [ | |
| 80 'gtest_nacl', | |
| 81 ], | |
| 82 'sources': [ | |
| 83 'gtest/src/gtest_main.cc', | |
| 84 ], | |
| 85 'all_dependent_settings': { | |
| 86 'link_flags': [ | |
| 87 '-lgtest_main_nacl', | |
| 88 ], | |
| 89 }, | |
| 90 }, | |
| 91 ], | |
| 92 }], | |
| 93 ], | |
| 94 } | |
| OLD | NEW |