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

Side by Side Diff: build/config/android/internal_rules.gni

Issue 2161063003: 🎫 Fail write_build_config.py if current_toolchain != default_toolchain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build deps 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/android/gyp/write_build_config.py ('k') | device/vr/BUILD.gn » ('j') | 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("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 7
8 assert(is_android) 8 assert(is_android)
9 9
10 # These identify targets that have .build_config files (except for android_apk, 10 # These identify targets that have .build_config files (except for android_apk,
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 args += [ 326 args += [
327 "--srcjar", 327 "--srcjar",
328 rebase_path(invoker.srcjar, root_build_dir), 328 rebase_path(invoker.srcjar, root_build_dir),
329 ] 329 ]
330 } 330 }
331 if (defined(invoker.bundled_srcjars)) { 331 if (defined(invoker.bundled_srcjars)) {
332 _rebased_bundled_srcjars = 332 _rebased_bundled_srcjars =
333 rebase_path(invoker.bundled_srcjars, root_build_dir) 333 rebase_path(invoker.bundled_srcjars, root_build_dir)
334 args += [ "--bundled-srcjars=$_rebased_bundled_srcjars" ] 334 args += [ "--bundled-srcjars=$_rebased_bundled_srcjars" ]
335 } 335 }
336 if (current_toolchain != default_toolchain) {
337 _msg = [
brettw 2016/07/26 20:29:48 Can you add a comment here about why we fail with
agrieve 2016/07/27 02:27:13 Good point. Future me would be tempted to do the s
338 "Tried to build an Android target in a non-default toolchain.",
339 "target: " + get_label_info(":$target_name", "label_with_toolchain"),
340 "default_toolchain: $default_toolchain",
341 ]
342 args += [ "--fail=$_msg" ]
343 }
336 } 344 }
337 } 345 }
338 346
339 template("copy_ex") { 347 template("copy_ex") {
340 set_sources_assignment_filter([]) 348 set_sources_assignment_filter([])
341 action(target_name) { 349 action(target_name) {
342 forward_variables_from(invoker, 350 forward_variables_from(invoker,
343 [ 351 [
344 "data", 352 "data",
345 "deps", 353 "deps",
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 outputs = [ 2566 outputs = [
2559 depfile, 2567 depfile,
2560 invoker.out_manifest, 2568 invoker.out_manifest,
2561 ] 2569 ]
2562 inputs = [ 2570 inputs = [
2563 invoker.main_manifest, 2571 invoker.main_manifest,
2564 ] 2572 ]
2565 } 2573 }
2566 } 2574 }
2567 } 2575 }
OLDNEW
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | device/vr/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698