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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "courgette_minimal_tool.cc", | 101 "courgette_minimal_tool.cc", |
102 ] | 102 ] |
103 | 103 |
104 deps = [ | 104 deps = [ |
105 ":courgette_lib", | 105 ":courgette_lib", |
106 "//base", | 106 "//base", |
107 "//build/config/sanitizers:deps", | 107 "//build/config/sanitizers:deps", |
108 "//build/win:default_exe_manifest", | 108 "//build/win:default_exe_manifest", |
109 ] | 109 ] |
110 } | 110 } |
| 111 |
| 112 # The official build scripts expect courgette.exe to be in the official build |
| 113 # archives but it's not clear if they really need it, copy courgette64.exe to |
| 114 # courgette.exe to work around this. https://crbug.com/629243 |
| 115 if (is_win && current_cpu == "x64") { |
| 116 copy("copy_courgette64_to_courgette") { |
| 117 sources = [ |
| 118 "$root_out_dir/courgette64.exe", |
| 119 ] |
| 120 outputs = [ |
| 121 "$root_out_dir/courgette.exe", |
| 122 ] |
| 123 deps = [ |
| 124 ":courgette", |
| 125 ] |
| 126 } |
| 127 } |
111 } | 128 } |
112 | 129 |
113 test("courgette_unittests") { | 130 test("courgette_unittests") { |
114 sources = [ | 131 sources = [ |
115 "adjustment_method_unittest.cc", | 132 "adjustment_method_unittest.cc", |
116 "base_test_unittest.cc", | 133 "base_test_unittest.cc", |
117 "base_test_unittest.h", | 134 "base_test_unittest.h", |
118 "bsdiff_memory_unittest.cc", | 135 "bsdiff_memory_unittest.cc", |
119 "consecutive_range_visitor_unittest.cc", | 136 "consecutive_range_visitor_unittest.cc", |
120 "difference_estimator_unittest.cc", | 137 "difference_estimator_unittest.cc", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 "encoded_program_fuzz_unittest.cc", | 178 "encoded_program_fuzz_unittest.cc", |
162 ] | 179 ] |
163 deps = [ | 180 deps = [ |
164 ":courgette_lib", | 181 ":courgette_lib", |
165 "//base", | 182 "//base", |
166 "//base:i18n", | 183 "//base:i18n", |
167 "//base/test:test_support", | 184 "//base/test:test_support", |
168 "//testing/gtest", | 185 "//testing/gtest", |
169 ] | 186 ] |
170 } | 187 } |
OLD | NEW |