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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 static_library("courgette_lib") { | 7 static_library("courgette_lib") { |
8 sources = [ | 8 sources = [ |
9 "adjustment_method.cc", | 9 "adjustment_method.cc", |
10 "adjustment_method.h", | 10 "adjustment_method.h", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 "$root_out_dir/courgette.exe", | 122 "$root_out_dir/courgette.exe", |
123 ] | 123 ] |
124 deps = [ | 124 deps = [ |
125 ":courgette", | 125 ":courgette", |
126 ] | 126 ] |
127 } | 127 } |
128 } else { | 128 } else { |
129 # Make sure that we have a copy of courgette64.exe in the root out | 129 # Make sure that we have a copy of courgette64.exe in the root out |
130 # directory. | 130 # directory. |
131 copy("copy_courgette_binaries") { | 131 copy("copy_courgette_binaries") { |
132 sources = [ | 132 if (is_clang) { |
133 "$root_out_dir/x64/courgette64.exe", | 133 sources = [ |
134 ] | 134 "$root_out_dir/courgette64.exe", |
etienneb
2016/07/28 15:35:39
Just in case you missed it, with this "is_clang" h
| |
135 ] | |
136 } else { | |
137 sources = [ | |
138 "$root_out_dir/x64/courgette64.exe", | |
139 ] | |
140 } | |
135 outputs = [ | 141 outputs = [ |
136 "$root_out_dir/courgette64.exe", | 142 "$root_out_dir/courgette64.exe", |
137 ] | 143 ] |
138 deps = [ | 144 if (is_clang) { |
139 ":courgette(//build/toolchain/win:x64)", | 145 deps = [ |
140 ] | 146 ":courgette(//build/toolchain/win:clang_x64)", |
147 ] | |
148 } else { | |
149 deps = [ | |
150 ":courgette(//build/toolchain/win:x64)", | |
151 ] | |
152 } | |
141 } | 153 } |
142 } | 154 } |
143 } | 155 } |
144 } | 156 } |
145 | 157 |
146 test("courgette_unittests") { | 158 test("courgette_unittests") { |
147 sources = [ | 159 sources = [ |
148 "adjustment_method_unittest.cc", | 160 "adjustment_method_unittest.cc", |
149 "base_test_unittest.cc", | 161 "base_test_unittest.cc", |
150 "base_test_unittest.h", | 162 "base_test_unittest.h", |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 "encoded_program_fuzz_unittest.cc", | 206 "encoded_program_fuzz_unittest.cc", |
195 ] | 207 ] |
196 deps = [ | 208 deps = [ |
197 ":courgette_lib", | 209 ":courgette_lib", |
198 "//base", | 210 "//base", |
199 "//base:i18n", | 211 "//base:i18n", |
200 "//base/test:test_support", | 212 "//base/test:test_support", |
201 "//testing/gtest", | 213 "//testing/gtest", |
202 ] | 214 ] |
203 } | 215 } |
OLD | NEW |