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

Side by Side Diff: build/android/BUILD.gn

Issue 1812383003: [Devil] Replace generated Devil config with jinja template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed android platform name. Created 4 years, 8 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 | « no previous file | build/android/android.isolate » ('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/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//third_party/ijar/ijar.gni") 6 import("//third_party/ijar/ijar.gni")
7 7
8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar" 8 sun_tools_jar_path = "$root_gen_dir/sun_tools_jar/tools.jar"
9 9
10 # Create or update the API versions cache if necessary by running a 10 # Create or update the API versions cache if necessary by running a
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 _rebased_output_so = rebase_path(_output_so, root_out_dir) 77 _rebased_output_so = rebase_path(_output_so, root_out_dir)
78 args = [ 78 args = [
79 _rebased_strip_bin, 79 _rebased_strip_bin,
80 "--strip-unneeded", 80 "--strip-unneeded",
81 "-o", 81 "-o",
82 _rebased_output_so, 82 _rebased_output_so,
83 _rebased_input_so, 83 _rebased_input_so,
84 ] 84 ]
85 } 85 }
86 86
87 jinja_template("devil_chromium_config") {
88 input = "//build/android/devil_chromium.jinja"
89 output = "$root_gen_dir/devil_chromium.json"
90
91 _rebased_android_sdk_root =
92 rebase_path(default_android_sdk_root, root_gen_dir)
93 _rebased_output_dir = rebase_path(root_build_dir, root_gen_dir)
94
95 variables = [
96 "android_app_abi=$android_app_abi",
97 "android_sdk_root=$_rebased_android_sdk_root",
98 "build_tools_version=$default_android_sdk_build_tools_version",
99 "output_dir=$_rebased_output_dir",
100 ]
101 }
102
87 group("test_runner_py") { 103 group("test_runner_py") {
88 _py_files = read_file("test_runner.pydeps", "list lines") 104 _py_files = read_file("test_runner.pydeps", "list lines")
89 105
90 # Filter out comments. 106 # Filter out comments.
91 set_sources_assignment_filter([ "#*" ]) 107 set_sources_assignment_filter([ "#*" ])
92 sources = _py_files 108 sources = _py_files
93 109
94 data = sources + [ 110 data = sources + [
95 "devil_chromium.json",
96 "//third_party/android_tools/sdk/build-tools/23.0.1/aapt", 111 "//third_party/android_tools/sdk/build-tools/23.0.1/aapt",
97 "//third_party/android_tools/sdk/build-tools/23.0.1/dexdump", 112 "//third_party/android_tools/sdk/build-tools/23.0.1/dexdump",
98 "//third_party/android_tools/sdk/build-tools/23.0.1/lib/libc++.so", 113 "//third_party/android_tools/sdk/build-tools/23.0.1/lib/libc++.so",
99 "//third_party/android_tools/sdk/build-tools/23.0.1/split-select", 114 "//third_party/android_tools/sdk/build-tools/23.0.1/split-select",
100 "//third_party/android_tools/sdk/platform-tools/adb", 115 "//third_party/android_tools/sdk/platform-tools/adb",
101 "//third_party/catapult/third_party/gsutil/", 116 "//third_party/catapult/third_party/gsutil/",
102 "//third_party/catapult/devil/devil/devil_dependencies.json", 117 "//third_party/catapult/devil/devil/devil_dependencies.json",
118 "$root_gen_dir/devil_chromium.json",
103 ] 119 ]
104 data_deps = [ 120 data_deps = [
105 "//tools/swarming_client:isolate_py", 121 "//tools/swarming_client:isolate_py",
106 ] 122 ]
123 deps = [
124 "//build/android:devil_chromium_config",
125 ]
107 } 126 }
108 127
109 # Create wrapper scripts in out/bin that takes care of setting the 128 # Create wrapper scripts in out/bin that takes care of setting the
110 # --output-directory. 129 # --output-directory.
111 _scripts_to_wrap = [ 130 _scripts_to_wrap = [
112 # TODO(agrieve): Once GYP is no more, delete the checked-in adb_gdb_* scripts 131 # TODO(agrieve): Once GYP is no more, delete the checked-in adb_gdb_* scripts
113 # and generated a script for each android_apk() that has a native library. 132 # and generated a script for each android_apk() that has a native library.
114 "adb_gdb_android_webview_shell", 133 "adb_gdb_android_webview_shell",
115 "adb_gdb_blimp_client", 134 "adb_gdb_blimp_client",
116 "adb_gdb_chrome_public", 135 "adb_gdb_chrome_public",
117 "adb_gdb_content_shell", 136 "adb_gdb_content_shell",
118 "adb_gdb_cronet_sample", 137 "adb_gdb_cronet_sample",
119 "adb_gdb_mojo_shell", 138 "adb_gdb_mojo_shell",
120 "asan_symbolize.py", 139 "asan_symbolize.py",
121 "tombstones.py", 140 "tombstones.py",
122 ] 141 ]
123 142
124 _wrapper_targets = [] 143 _wrapper_targets = []
125 foreach(script, _scripts_to_wrap) { 144 foreach(script, _scripts_to_wrap) {
126 _target_name = get_path_info(script, "name") + "_wrapper" 145 _target_name = get_path_info(script, "name") + "_wrapper"
127 _wrapper_targets += [ ":$_target_name" ] 146 _wrapper_targets += [ ":$_target_name" ]
128 wrapper_script(_target_name) { 147 wrapper_script(_target_name) {
129 target = script 148 target = script
130 } 149 }
131 } 150 }
132 151
133 group("wrapper_scripts") { 152 group("wrapper_scripts") {
134 deps = _wrapper_targets 153 deps = _wrapper_targets
135 } 154 }
OLDNEW
« no previous file with comments | « no previous file | build/android/android.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698