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

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

Issue 532423003: Add the "testonly" flag to the GN test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pullgn
Patch Set: android Created 6 years, 3 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/config/BUILDCONFIG.gn ('k') | build/config/android/rules.gni » ('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 6
7 assert(is_android) 7 assert(is_android)
8 8
9 9
10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) 10 rebased_android_sdk = rebase_path(android_sdk, root_build_dir)
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 assert(type == "android_apk" || type == "android_library" || type == "android_ resources") 72 assert(type == "android_apk" || type == "android_library" || type == "android_ resources")
73 73
74 action(target_name) { 74 action(target_name) {
75 script = "//build/android/gyp/write_build_config.py" 75 script = "//build/android/gyp/write_build_config.py"
76 depfile = "$target_gen_dir/$target_name.d" 76 depfile = "$target_gen_dir/$target_name.d"
77 77
78 deps = [] 78 deps = []
79 if (defined(invoker.deps)) { 79 if (defined(invoker.deps)) {
80 deps += invoker.deps 80 deps += invoker.deps
81 } 81 }
82 if (defined(invoker.testonly)) {
83 testonly = invoker.testonly
84 }
82 85
83 outputs = [ 86 outputs = [
84 depfile, 87 depfile,
85 build_config 88 build_config
86 ] 89 ]
87 90
88 possible_deps_configs = [] 91 possible_deps_configs = []
89 foreach(d, deps) { 92 foreach(d, deps) {
90 dep_gen_dir = get_label_info(d, "target_gen_dir") 93 dep_gen_dir = get_label_info(d, "target_gen_dir")
91 dep_name = get_label_info(d, "name") 94 dep_name = get_label_info(d, "name")
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 "--dest", rebase_path(invoker.dest, root_build_dir), 674 "--dest", rebase_path(invoker.dest, root_build_dir),
672 ] 675 ]
673 if (defined(invoker.args)) { 676 if (defined(invoker.args)) {
674 args += invoker.args 677 args += invoker.args
675 } 678 }
676 if (defined(invoker.clear_dir) && invoker.clear_dir) { 679 if (defined(invoker.clear_dir) && invoker.clear_dir) {
677 args += ["--clear"] 680 args += ["--clear"]
678 } 681 }
679 } 682 }
680 } 683 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698