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("//third_party/android_platform/config.gni") |
8 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
9 import("//tools/relocation_packer/config.gni") | |
10 | 10 |
11 assert(is_android) | 11 assert(is_android) |
12 | 12 |
13 # Declare a jni target | 13 # Declare a jni target |
14 # | 14 # |
15 # This target generates the native jni bindings for a set of .java files. | 15 # This target generates the native jni bindings for a set of .java files. |
16 # | 16 # |
17 # See base/android/jni_generator/jni_generator.py for more info about the | 17 # See base/android/jni_generator/jni_generator.py for more info about the |
18 # format of generating JNI bindings. | 18 # format of generating JNI bindings. |
19 # | 19 # |
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1565 enable_packing_arg = 0 | 1565 enable_packing_arg = 0 |
1566 if (_enable_relocation_packing) { | 1566 if (_enable_relocation_packing) { |
1567 enable_packing_arg = 1 | 1567 enable_packing_arg = 1 |
1568 deps += [ relocation_packer_target ] | 1568 deps += [ relocation_packer_target ] |
1569 } | 1569 } |
1570 | 1570 |
1571 args = [ | 1571 args = [ |
1572 "--depfile", | 1572 "--depfile", |
1573 rebase_path(depfile, root_build_dir), | 1573 rebase_path(depfile, root_build_dir), |
1574 "--enable-packing=$enable_packing_arg", | 1574 "--enable-packing=$enable_packing_arg", |
1575 "--has-relocations-with-addends=$relocations_have_addends", | |
1576 "--exclude-packing-list=$skip_packing_list", | 1575 "--exclude-packing-list=$skip_packing_list", |
1577 "--android-pack-relocations", | 1576 "--android-pack-relocations", |
1578 rebase_path(relocation_packer_exe, root_build_dir), | 1577 rebase_path(relocation_packer_exe, root_build_dir), |
1579 "--android-objcopy", | |
1580 rebase_path(android_objcopy, root_build_dir), | |
1581 "--stripped-libraries-dir", | 1578 "--stripped-libraries-dir", |
1582 rebase_path(root_build_dir, root_build_dir), | 1579 rebase_path(root_build_dir, root_build_dir), |
1583 "--packed-libraries-dir", | 1580 "--packed-libraries-dir", |
1584 rebase_path(packed_libraries_dir, root_build_dir), | 1581 rebase_path(packed_libraries_dir, root_build_dir), |
1585 "--libraries=@FileArg(${_rebased_build_config}:native:libraries)", | 1582 "--libraries=@FileArg(${_rebased_build_config}:native:libraries)", |
1586 "--clear-dir", | 1583 "--clear-dir", |
1587 ] | 1584 ] |
1588 | 1585 |
1589 if (defined(invoker.deps)) { | 1586 if (defined(invoker.deps)) { |
1590 deps += invoker.deps | 1587 deps += invoker.deps |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 template("uiautomator_test") { | 2112 template("uiautomator_test") { |
2116 set_sources_assignment_filter([]) | 2113 set_sources_assignment_filter([]) |
2117 if (defined(invoker.testonly)) { | 2114 if (defined(invoker.testonly)) { |
2118 testonly = invoker.testonly | 2115 testonly = invoker.testonly |
2119 } | 2116 } |
2120 assert(target_name != "") | 2117 assert(target_name != "") |
2121 assert(invoker.deps != [] || true) | 2118 assert(invoker.deps != [] || true) |
2122 group(target_name) { | 2119 group(target_name) { |
2123 } | 2120 } |
2124 } | 2121 } |
OLD | NEW |