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("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 import("//third_party/android_platform/config.gni") | 10 import("//third_party/android_platform/config.gni") |
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 } | 1921 } |
1922 if (_load_library_from_apk) { | 1922 if (_load_library_from_apk) { |
1923 args += [ "--dont-even-try=Incremental builds do not work with load_librar
y_from_apk. Try setting is_component_build=true in your GN args." ] | 1923 args += [ "--dont-even-try=Incremental builds do not work with load_librar
y_from_apk. Try setting is_component_build=true in your GN args." ] |
1924 } | 1924 } |
1925 } | 1925 } |
1926 | 1926 |
1927 group(target_name) { | 1927 group(target_name) { |
1928 forward_variables_from(invoker, [ "data_deps" ]) | 1928 forward_variables_from(invoker, [ "data_deps" ]) |
1929 public_deps = _final_deps | 1929 public_deps = _final_deps |
1930 } | 1930 } |
| 1931 group("${target_name}__data") { |
| 1932 deps = process_file_template(_final_deps, [ "{{source_name_part}}__data" ]) |
| 1933 } |
1931 group("${target_name}_incremental") { | 1934 group("${target_name}_incremental") { |
1932 data_deps = [] | 1935 data_deps = [] |
1933 forward_variables_from(invoker, [ "data_deps" ]) | 1936 forward_variables_from(invoker, [ "data_deps" ]) |
1934 | 1937 |
1935 # device/commands is used by the installer script to push files via .zip. | 1938 # device/commands is used by the installer script to push files via .zip. |
1936 data_deps += [ "//build/android/pylib/device/commands" ] + | 1939 data_deps += [ "//build/android/pylib/device/commands" ] + |
1937 _native_libs_deps + _extra_native_libs_deps | 1940 _native_libs_deps + _extra_native_libs_deps |
1938 | 1941 |
1939 # Since the _incremental.apk does not include use .so nor .dex from the | 1942 # Since the _incremental.apk does not include use .so nor .dex from the |
1940 # actual target, but instead loads them at runtime, we need to explicitly | 1943 # actual target, but instead loads them at runtime, we need to explicitly |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 "--target", | 2419 "--target", |
2417 rebase_path(invoker.target, root_build_dir), | 2420 rebase_path(invoker.target, root_build_dir), |
2418 "--output-directory", | 2421 "--output-directory", |
2419 rebase_path(root_out_dir, root_build_dir), | 2422 rebase_path(root_out_dir, root_build_dir), |
2420 ] | 2423 ] |
2421 if (defined(invoker.flag_name)) { | 2424 if (defined(invoker.flag_name)) { |
2422 args += [ "--flag-name=${invoker.flag_name}" ] | 2425 args += [ "--flag-name=${invoker.flag_name}" ] |
2423 } | 2426 } |
2424 } | 2427 } |
2425 } | 2428 } |
OLD | NEW |