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 # 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/compiler/compiler.gni") |
10 import("//build/config/dcheck_always_on.gni") | 10 import("//build/config/dcheck_always_on.gni") |
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 _extra_native_libs_deps = [] | 2093 _extra_native_libs_deps = [] |
2094 assert(_extra_native_libs_deps == []) # Mark as used. | 2094 assert(_extra_native_libs_deps == []) # Mark as used. |
2095 _extra_native_libs_even_when_incremental = [] | 2095 _extra_native_libs_even_when_incremental = [] |
2096 if (_native_libs_deps != []) { | 2096 if (_native_libs_deps != []) { |
2097 if (_use_chromium_linker) { | 2097 if (_use_chromium_linker) { |
2098 _extra_native_libs = | 2098 _extra_native_libs = |
2099 [ "$root_shlib_dir/libchromium_android_linker$shlib_extension" ] | 2099 [ "$root_shlib_dir/libchromium_android_linker$shlib_extension" ] |
2100 _extra_native_libs_deps += | 2100 _extra_native_libs_deps += |
2101 [ "//base/android/linker:chromium_android_linker" ] | 2101 [ "//base/android/linker:chromium_android_linker" ] |
2102 } | 2102 } |
| 2103 |
| 2104 _create_stack_script_rule_name = "${_template_name}__stack_script" |
| 2105 _final_deps += [ ":${_create_stack_script_rule_name}" ] |
| 2106 stack_script(_create_stack_script_rule_name) { |
| 2107 stack_target_name = invoker.target_name |
| 2108 deps = _native_libs_deps |
| 2109 if (_native_libs_deps != [] && _enable_relocation_packing) { |
| 2110 packed_libraries = _native_libs_file_arg |
| 2111 deps += [ _native_libs_file_arg_dep ] |
| 2112 } |
| 2113 } |
2103 } | 2114 } |
2104 if (defined(invoker.loadable_modules) && invoker.loadable_modules != []) { | 2115 if (defined(invoker.loadable_modules) && invoker.loadable_modules != []) { |
2105 _extra_native_libs_even_when_incremental += invoker.loadable_modules | 2116 _extra_native_libs_even_when_incremental += invoker.loadable_modules |
2106 } | 2117 } |
2107 | 2118 |
2108 _final_deps += [ ":${_template_name}__create" ] | 2119 _final_deps += [ ":${_template_name}__create" ] |
2109 create_apk("${_template_name}__create") { | 2120 create_apk("${_template_name}__create") { |
2110 forward_variables_from(invoker, | 2121 forward_variables_from(invoker, |
2111 [ | 2122 [ |
2112 "aapt_locale_whitelist", | 2123 "aapt_locale_whitelist", |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2905 # because in practice they seem to contain classes required to be in the | 2916 # because in practice they seem to contain classes required to be in the |
2906 # classpath. | 2917 # classpath. |
2907 deps += _subjar_targets | 2918 deps += _subjar_targets |
2908 } | 2919 } |
2909 if (defined(_res_target_name)) { | 2920 if (defined(_res_target_name)) { |
2910 deps += [ ":$_res_target_name" ] | 2921 deps += [ ":$_res_target_name" ] |
2911 } | 2922 } |
2912 } | 2923 } |
2913 } | 2924 } |
2914 } | 2925 } |
OLD | NEW |