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 courgette64_label = ":courgette(//build/toolchain/win:x64)" |
| 133 courgette64_out_dir = get_label_info(courgette64_label, "root_out_dir") |
132 sources = [ | 134 sources = [ |
133 "$root_out_dir/x64/courgette64.exe", | 135 "$courgette64_out_dir/courgette64.exe", |
134 ] | 136 ] |
135 outputs = [ | 137 outputs = [ |
136 "$root_out_dir/courgette64.exe", | 138 "$root_out_dir/{{source_file_part}}", |
137 ] | 139 ] |
138 deps = [ | 140 deps = [ |
139 ":courgette(//build/toolchain/win:x64)", | 141 courgette64_label, |
140 ] | 142 ] |
141 } | 143 } |
142 } | 144 } |
143 } | 145 } |
144 } | 146 } |
145 | 147 |
146 test("courgette_unittests") { | 148 test("courgette_unittests") { |
147 sources = [ | 149 sources = [ |
148 "adjustment_method_unittest.cc", | 150 "adjustment_method_unittest.cc", |
149 "base_test_unittest.cc", | 151 "base_test_unittest.cc", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 "encoded_program_fuzz_unittest.cc", | 196 "encoded_program_fuzz_unittest.cc", |
195 ] | 197 ] |
196 deps = [ | 198 deps = [ |
197 ":courgette_lib", | 199 ":courgette_lib", |
198 "//base", | 200 "//base", |
199 "//base:i18n", | 201 "//base:i18n", |
200 "//base/test:test_support", | 202 "//base/test:test_support", |
201 "//testing/gtest", | 203 "//testing/gtest", |
202 ] | 204 ] |
203 } | 205 } |
OLD | NEW |