Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: courgette/BUILD.gn

Issue 2168743002: Fix the courgette64 copy rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 111
112 # The official build scripts expect courgette.exe to be in the official build 112 if (is_win) {
113 # archives but it's not clear if they really need it, copy courgette64.exe to 113 if (current_cpu == "x64") {
114 # courgette.exe to work around this. https://crbug.com/629243 114 # TODO(sebmarchand): The official build scripts expect courgette.exe to be
115 if (is_win && current_cpu == "x64") { 115 # in the official build archives, remove this once they have been updated.
116 copy("copy_courgette64_to_courgette") { 116 # https://crbug.com/629243
117 sources = [ 117 copy("copy_courgette_binaries") {
118 "$root_out_dir/courgette64.exe", 118 sources = [
119 ] 119 "$root_out_dir/courgette64.exe",
120 outputs = [ 120 ]
121 "$root_out_dir/courgette.exe", 121 outputs = [
122 ] 122 "$root_out_dir/courgette.exe",
123 deps = [ 123 ]
124 ":courgette", 124 deps = [
125 ] 125 ":courgette",
126 ]
127 }
128 } else {
129 # Make sure that we have a copy of courgette64.exe in the root out
130 # directory.
131 copy("copy_courgette_binaries") {
132 sources = [
133 "$root_out_dir/x64/courgette64.exe",
Will Harris 2016/07/20 22:23:30 where is this file emitted from?
Dirk Pranke 2016/07/20 22:37:41 The :courgette(//build/toolchain/win:x64) dependen
134 ]
135 outputs = [
136 "$root_out_dir/courgette64.exe",
137 ]
138 deps = [
139 ":courgette(//build/toolchain/win:x64)",
140 ]
141 }
126 } 142 }
127 } 143 }
128 } 144 }
129 145
130 test("courgette_unittests") { 146 test("courgette_unittests") {
131 sources = [ 147 sources = [
132 "adjustment_method_unittest.cc", 148 "adjustment_method_unittest.cc",
133 "base_test_unittest.cc", 149 "base_test_unittest.cc",
134 "base_test_unittest.h", 150 "base_test_unittest.h",
135 "bsdiff_memory_unittest.cc", 151 "bsdiff_memory_unittest.cc",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 "encoded_program_fuzz_unittest.cc", 194 "encoded_program_fuzz_unittest.cc",
179 ] 195 ]
180 deps = [ 196 deps = [
181 ":courgette_lib", 197 ":courgette_lib",
182 "//base", 198 "//base",
183 "//base:i18n", 199 "//base:i18n",
184 "//base/test:test_support", 200 "//base/test:test_support",
185 "//testing/gtest", 201 "//testing/gtest",
186 ] 202 ]
187 } 203 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698