| 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 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 '../build/common_untrusted.gypi', | 10 '../build/common_untrusted.gypi', |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 'build_glibc': 0, | 21 'build_glibc': 0, |
| 22 'build_newlib': 0, | 22 'build_newlib': 0, |
| 23 'build_irt': 0, | 23 'build_irt': 0, |
| 24 'build_pnacl_newlib': 1, | 24 'build_pnacl_newlib': 1, |
| 25 'build_nonsfi_helper': 1, | 25 'build_nonsfi_helper': 1, |
| 26 }, | 26 }, |
| 27 'sources': [ | 27 'sources': [ |
| 28 '<@(gtest_sources)', | 28 '<@(gtest_sources)', |
| 29 ], | 29 ], |
| 30 'include_dirs': [ | 30 'include_dirs': [ |
| 31 'gtest', | 31 'third_party/googletest/googletest', |
| 32 'gtest/include', | 32 'third_party/googletest/googletest/include', |
| 33 ], | 33 ], |
| 34 'defines': [ | 34 'defines': [ |
| 35 # In order to allow regex matches in gtest to be shared between | 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 | 36 # Windows and other systems, we tell gtest to always use it's |
| 37 # internal engine. | 37 # internal engine. |
| 38 'GTEST_HAS_POSIX_RE=0', | 38 'GTEST_HAS_POSIX_RE=0', |
| 39 'GTEST_LANG_CXX11=0', | 39 'GTEST_LANG_CXX11=0', |
| 40 # gtest isn't able to figure out when RTTI is disabled for gcc | 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 | 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 | 42 # and Linux builds disable RTTI, and cannot guarantee that the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 54 'link_flags': [ | 54 'link_flags': [ |
| 55 '-lgtest_nacl', | 55 '-lgtest_nacl', |
| 56 ], | 56 ], |
| 57 }, | 57 }, |
| 58 'direct_dependent_settings': { | 58 'direct_dependent_settings': { |
| 59 'defines': [ | 59 'defines': [ |
| 60 'UNIT_TEST', | 60 'UNIT_TEST', |
| 61 'GTEST_HAS_RTTI=0', | 61 'GTEST_HAS_RTTI=0', |
| 62 ], | 62 ], |
| 63 'include_dirs': [ | 63 'include_dirs': [ |
| 64 'gtest/include', # So that gtest headers can find themselves. | 64 'third_party/googletest/googletest/include', # So that gtest head
ers can find themselves. |
| 65 ], | 65 ], |
| 66 }, | 66 }, |
| 67 }, | 67 }, |
| 68 { | 68 { |
| 69 'target_name': 'gtest_main_nacl', | 69 'target_name': 'gtest_main_nacl', |
| 70 'type': 'none', | 70 'type': 'none', |
| 71 'variables': { | 71 'variables': { |
| 72 'nlib_target': 'libgtest_main_nacl.a', | 72 'nlib_target': 'libgtest_main_nacl.a', |
| 73 'build_glibc': 0, | 73 'build_glibc': 0, |
| 74 'build_newlib': 0, | 74 'build_newlib': 0, |
| 75 'build_irt': 0, | 75 'build_irt': 0, |
| 76 'build_pnacl_newlib': 1, | 76 'build_pnacl_newlib': 1, |
| 77 'build_nonsfi_helper': 1, | 77 'build_nonsfi_helper': 1, |
| 78 }, | 78 }, |
| 79 'dependencies': [ | 79 'dependencies': [ |
| 80 'gtest_nacl', | 80 'gtest_nacl', |
| 81 ], | 81 ], |
| 82 'sources': [ | 82 'sources': [ |
| 83 'gtest/src/gtest_main.cc', | 83 'third_party/googletest/googletest/src/gtest_main.cc', |
| 84 ], | 84 ], |
| 85 'all_dependent_settings': { | 85 'all_dependent_settings': { |
| 86 'link_flags': [ | 86 'link_flags': [ |
| 87 '-lgtest_main_nacl', | 87 '-lgtest_main_nacl', |
| 88 ], | 88 ], |
| 89 }, | 89 }, |
| 90 }, | 90 }, |
| 91 ], | 91 ], |
| 92 }], | 92 }], |
| 93 ], | 93 ], |
| 94 } | 94 } |
| OLD | NEW |