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', |
11 'gtest.gypi', | 11 'gtest.gypi', |
12 ], | 12 ], |
13 'conditions': [ | 13 'conditions': [ |
14 ['disable_nacl==0 and disable_nacl_untrusted==0', { | 14 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
15 'targets': [ | 15 'targets': [ |
16 { | 16 { |
17 'target_name': 'gtest_nacl', | 17 'target_name': 'gtest_nacl', |
18 'type': 'none', | 18 'type': 'none', |
19 'variables': { | 19 'variables': { |
20 'nlib_target': 'libgtest_nacl.a', | 20 'nlib_target': 'libgtest_nacl.a', |
21 'build_glibc': 0, | 21 'build_glibc': 0, |
22 'build_newlib': 1, | 22 'build_newlib': 0, |
23 'build_pnacl_newlib': 0, | 23 'build_pnacl_newlib': 1, |
24 }, | 24 }, |
25 'sources': [ | 25 'sources': [ |
26 '<@(gtest_sources)', | 26 '<@(gtest_sources)', |
27 ], | 27 ], |
28 'include_dirs': [ | 28 'include_dirs': [ |
29 'gtest', | 29 'gtest', |
30 'gtest/include', | 30 'gtest/include', |
31 ], | 31 ], |
32 'defines': [ | 32 'defines': [ |
33 # In order to allow regex matches in gtest to be shared between | 33 # In order to allow regex matches in gtest to be shared between |
(...skipping 28 matching lines...) Expand all Loading... |
62 'gtest/include', # So that gtest headers can find themselves. | 62 'gtest/include', # So that gtest headers can find themselves. |
63 ], | 63 ], |
64 }, | 64 }, |
65 }, | 65 }, |
66 { | 66 { |
67 'target_name': 'gtest_main_nacl', | 67 'target_name': 'gtest_main_nacl', |
68 'type': 'none', | 68 'type': 'none', |
69 'variables': { | 69 'variables': { |
70 'nlib_target': 'libgtest_main_nacl.a', | 70 'nlib_target': 'libgtest_main_nacl.a', |
71 'build_glibc': 0, | 71 'build_glibc': 0, |
72 'build_newlib': 1, | 72 'build_newlib': 0, |
73 'build_pnacl_newlib': 0, | 73 'build_pnacl_newlib': 1, |
74 }, | 74 }, |
75 'dependencies': [ | 75 'dependencies': [ |
76 'gtest_nacl', | 76 'gtest_nacl', |
77 ], | 77 ], |
78 'sources': [ | 78 'sources': [ |
79 'gtest/src/gtest_main.cc', | 79 'gtest/src/gtest_main.cc', |
80 ], | 80 ], |
81 'all_dependent_settings': { | 81 'all_dependent_settings': { |
82 'link_flags': [ | 82 'link_flags': [ |
83 '-lgtest_main_nacl', | 83 '-lgtest_main_nacl', |
84 ], | 84 ], |
85 }, | 85 }, |
86 }, | 86 }, |
87 ], | 87 ], |
88 }], | 88 }], |
89 ], | 89 ], |
90 } | 90 } |
OLD | NEW |