OLD | NEW |
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("//base/android/linker/config.gni") | 5 import("//base/android/linker/config.gni") |
6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
7 import("//build/config/android/internal_rules.gni") | 7 import("//build/config/android/internal_rules.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 foreach(class, invoker.classes) { | 156 foreach(class, invoker.classes) { |
157 _classname_list = [] | 157 _classname_list = [] |
158 _classname_list = process_file_template([ class ], "{{source_name_part}}") | 158 _classname_list = process_file_template([ class ], "{{source_name_part}}") |
159 classname = _classname_list[0] | 159 classname = _classname_list[0] |
160 jni_target_name = "${target_name}__jni_${classname}" | 160 jni_target_name = "${target_name}__jni_${classname}" |
161 jni_actions += [ ":$jni_target_name" ] | 161 jni_actions += [ ":$jni_target_name" ] |
162 action(jni_target_name) { | 162 action(jni_target_name) { |
163 depfile = "$target_gen_dir/$target_name.d" | 163 depfile = "$target_gen_dir/$target_name.d" |
164 script = "//base/android/jni_generator/jni_generator.py" | 164 script = "//base/android/jni_generator/jni_generator.py" |
165 sources = [ | 165 sources = [ |
| 166 jar_file, |
166 jni_generator_include, | 167 jni_generator_include, |
167 jar_file, | |
168 ] | 168 ] |
169 outputs = [ | 169 outputs = [ |
170 depfile, | 170 depfile, |
171 "${jni_output_dir}/${classname}_jni.h", | 171 "${jni_output_dir}/${classname}_jni.h", |
172 ] | 172 ] |
173 | 173 |
174 args = [ | 174 args = [ |
175 "--depfile", | 175 "--depfile", |
176 rebase_path(depfile, root_build_dir), | 176 rebase_path(depfile, root_build_dir), |
177 "--jar_file", | 177 "--jar_file", |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 template("uiautomator_test") { | 1736 template("uiautomator_test") { |
1737 set_sources_assignment_filter([]) | 1737 set_sources_assignment_filter([]) |
1738 if (defined(invoker.testonly)) { | 1738 if (defined(invoker.testonly)) { |
1739 testonly = invoker.testonly | 1739 testonly = invoker.testonly |
1740 } | 1740 } |
1741 assert(target_name != "") | 1741 assert(target_name != "") |
1742 assert(invoker.deps != [] || true) | 1742 assert(invoker.deps != [] || true) |
1743 group(target_name) { | 1743 group(target_name) { |
1744 } | 1744 } |
1745 } | 1745 } |
OLD | NEW |