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