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

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

Issue 2361353002: Link stack frames of JNI stubs to JNI callbacks. (Closed)
Patch Set: git cl format Created 4 years, 1 month 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 | « base/debug/stack_trace.cc ('k') | no next file » | 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 # Do not add any imports to non-//build directories here. 5 # Do not add any imports to non-//build directories here.
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
7 import("//build/config/android/config.gni") 7 import("//build/config/android/config.gni")
8 import("//build/config/android/internal_rules.gni") 8 import("//build/config/android/internal_rules.gni")
9 import("//build/config/compiler/compiler.gni")
9 import("//build/config/dcheck_always_on.gni") 10 import("//build/config/dcheck_always_on.gni")
10 import("//build/toolchain/toolchain.gni") 11 import("//build/toolchain/toolchain.gni")
11 12
12 assert(is_android) 13 assert(is_android)
13 14
14 # Creates a dist directory for a native executable. 15 # Creates a dist directory for a native executable.
15 # 16 #
16 # Running a native executable on a device requires all the shared library 17 # Running a native executable on a device requires all the shared library
17 # dependencies of that executable. To make it easier to install and run such an 18 # dependencies of that executable. To make it easier to install and run such an
18 # executable, this will create a directory containing the native exe and all 19 # executable, this will create a directory containing the native exe and all
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 rebase_path(depfile, root_build_dir), 193 rebase_path(depfile, root_build_dir),
193 "--input_file={{source}}", 194 "--input_file={{source}}",
194 "--optimize_generation=1", 195 "--optimize_generation=1",
195 "--ptr_type=long", 196 "--ptr_type=long",
196 "--output_dir", 197 "--output_dir",
197 rebase_path(jni_output_dir, root_build_dir), 198 rebase_path(jni_output_dir, root_build_dir),
198 "--includes", 199 "--includes",
199 rebase_path(jni_generator_include, jni_output_dir), 200 rebase_path(jni_generator_include, jni_output_dir),
200 "--native_exports_optional", 201 "--native_exports_optional",
201 ] 202 ]
203
204 if (enable_profiling) {
205 args += [ "--enable_profiling" ]
206 }
202 } 207 }
203 208
204 config("jni_includes_${target_name}") { 209 config("jni_includes_${target_name}") {
205 # TODO(cjhopman): #includes should probably all be relative to 210 # TODO(cjhopman): #includes should probably all be relative to
206 # base_output_dir. Remove that from this config once the includes are 211 # base_output_dir. Remove that from this config once the includes are
207 # updated. 212 # updated.
208 include_dirs = [ 213 include_dirs = [
209 base_output_dir, 214 base_output_dir,
210 package_output_dir, 215 package_output_dir,
211 ] 216 ]
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 "--input_file", 303 "--input_file",
299 class, 304 class,
300 "--optimize_generation=1", 305 "--optimize_generation=1",
301 "--ptr_type=long", 306 "--ptr_type=long",
302 "--output_dir", 307 "--output_dir",
303 rebase_path(jni_output_dir, root_build_dir), 308 rebase_path(jni_output_dir, root_build_dir),
304 "--includes", 309 "--includes",
305 rebase_path(jni_generator_include, jni_output_dir), 310 rebase_path(jni_generator_include, jni_output_dir),
306 "--native_exports_optional", 311 "--native_exports_optional",
307 ] 312 ]
313
314 if (enable_profiling) {
315 args += [ "--enable_profiling" ]
316 }
308 } 317 }
309 } 318 }
310 319
311 config("jni_includes_${target_name}") { 320 config("jni_includes_${target_name}") {
312 include_dirs = [ base_output_dir ] 321 include_dirs = [ base_output_dir ]
313 } 322 }
314 323
315 group(target_name) { 324 group(target_name) {
316 public_deps = [] 325 public_deps = []
317 forward_variables_from(invoker, 326 forward_variables_from(invoker,
(...skipping 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 # because in practice they seem to contain classes required to be in the 2759 # because in practice they seem to contain classes required to be in the
2751 # classpath. 2760 # classpath.
2752 deps += _subjar_targets 2761 deps += _subjar_targets
2753 } 2762 }
2754 if (defined(_res_target_name)) { 2763 if (defined(_res_target_name)) {
2755 deps += [ ":$_res_target_name" ] 2764 deps += [ ":$_res_target_name" ]
2756 } 2765 }
2757 } 2766 }
2758 } 2767 }
2759 } 2768 }
OLDNEW
« no previous file with comments | « base/debug/stack_trace.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698