OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/ios/rules.gni") | 6 import("//build/config/ios/rules.gni") |
7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 import("//build/mac/tweak_info_plist.gni") | 8 import("//build/mac/tweak_info_plist.gni") |
9 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
10 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 ] | 139 ] |
140 } | 140 } |
141 | 141 |
142 if (additional_toolchains == [] || current_toolchain == default_toolchain) { | 142 if (additional_toolchains == [] || current_toolchain == default_toolchain) { |
143 _package_dir = "$root_out_dir/cronet" | 143 _package_dir = "$root_out_dir/cronet" |
144 | 144 |
145 action("generate_license") { | 145 action("generate_license") { |
146 _license_path = "$_package_dir/LICENSE" | 146 _license_path = "$_package_dir/LICENSE" |
147 | 147 |
148 script = "//components/cronet/tools/cronet_licenses.py" | 148 script = "//components/cronet/tools/cronet_licenses.py" |
| 149 inputs = [ |
| 150 "//build/util/LASTCHANGE", |
| 151 "//buildtools/$host_os/gn", |
| 152 ] |
149 outputs = [ | 153 outputs = [ |
150 _license_path, | 154 _license_path, |
151 ] | 155 ] |
152 args = [ | 156 args = [ |
153 "license", | 157 "license", |
154 rebase_path(_license_path, root_build_dir), | 158 rebase_path(_license_path, root_build_dir), |
155 "--gn", | 159 "--gn", |
| 160 "--gn-path", |
| 161 rebase_path("//buildtools/$host_os/gn", root_build_dir), |
156 ] | 162 ] |
157 } | 163 } |
158 | 164 |
159 copy("cronet_package_copy") { | 165 copy("cronet_package_copy") { |
160 sources = [ | 166 sources = [ |
161 "$root_out_dir/Cronet.framework", | 167 "$root_out_dir/Cronet.framework", |
162 "//AUTHORS", | 168 "//AUTHORS", |
163 "//chrome/VERSION", | 169 "//chrome/VERSION", |
164 ] | 170 ] |
165 outputs = [ | 171 outputs = [ |
166 "$_package_dir/{{source_file_part}}", | 172 "$_package_dir/{{source_file_part}}", |
167 ] | 173 ] |
168 | 174 |
169 deps = [ | 175 deps = [ |
170 ":cronet_framework", | 176 ":cronet_framework", |
171 ] | 177 ] |
172 } | 178 } |
173 | 179 |
174 group("cronet_package") { | 180 group("cronet_package") { |
175 deps = [ | 181 deps = [ |
176 ":cronet_package_copy", | 182 ":cronet_package_copy", |
177 ":generate_license", | 183 ":generate_license", |
178 ] | 184 ] |
179 } | 185 } |
180 } | 186 } |
OLD | NEW |