| 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/gtest/googletest', |
| 32 'gtest/include', | 32 '../third_party/gtest/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 ], | 39 ], |
| 40 'all_dependent_settings': { | 40 'all_dependent_settings': { |
| 41 'defines': [ | 41 'defines': [ |
| 42 'GTEST_HAS_POSIX_RE=0', | 42 'GTEST_HAS_POSIX_RE=0', |
| 43 ], | 43 ], |
| 44 'link_flags': [ | 44 'link_flags': [ |
| 45 '-lgtest_nacl', | 45 '-lgtest_nacl', |
| 46 ], | 46 ], |
| 47 }, | 47 }, |
| 48 'direct_dependent_settings': { | 48 'direct_dependent_settings': { |
| 49 'defines': [ | 49 'defines': [ |
| 50 'UNIT_TEST', | 50 'UNIT_TEST', |
| 51 ], | 51 ], |
| 52 'include_dirs': [ | 52 'include_dirs': [ |
| 53 'gtest/include', # So that gtest headers can find themselves. | 53 '../third_party/gtest/googletest/include', # So that gtest header
s can find themselves. |
| 54 ], | 54 ], |
| 55 }, | 55 }, |
| 56 }, | 56 }, |
| 57 { | 57 { |
| 58 'target_name': 'gtest_main_nacl', | 58 'target_name': 'gtest_main_nacl', |
| 59 'type': 'none', | 59 'type': 'none', |
| 60 'variables': { | 60 'variables': { |
| 61 'nlib_target': 'libgtest_main_nacl.a', | 61 'nlib_target': 'libgtest_main_nacl.a', |
| 62 'build_glibc': 0, | 62 'build_glibc': 0, |
| 63 'build_newlib': 0, | 63 'build_newlib': 0, |
| 64 'build_irt': 0, | 64 'build_irt': 0, |
| 65 'build_pnacl_newlib': 1, | 65 'build_pnacl_newlib': 1, |
| 66 'build_nonsfi_helper': 1, | 66 'build_nonsfi_helper': 1, |
| 67 }, | 67 }, |
| 68 'dependencies': [ | 68 'dependencies': [ |
| 69 'gtest_nacl', | 69 'gtest_nacl', |
| 70 ], | 70 ], |
| 71 'sources': [ | 71 'sources': [ |
| 72 'gtest/src/gtest_main.cc', | 72 '../third_party/gtest/googletest/src/gtest_main.cc', |
| 73 ], | 73 ], |
| 74 'all_dependent_settings': { | 74 'all_dependent_settings': { |
| 75 'link_flags': [ | 75 'link_flags': [ |
| 76 '-lgtest_main_nacl', | 76 '-lgtest_main_nacl', |
| 77 ], | 77 ], |
| 78 }, | 78 }, |
| 79 }, | 79 }, |
| 80 ], | 80 ], |
| 81 }], | 81 }], |
| 82 ], | 82 ], |
| 83 } | 83 } |
| OLD | NEW |