| 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("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
| 9 import("//tools/relocation_packer/config.gni") | 9 import("//tools/relocation_packer/config.gni") |
| 10 | 10 |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 template("java_cpp_enum") { | 338 template("java_cpp_enum") { |
| 339 set_sources_assignment_filter([]) | 339 set_sources_assignment_filter([]) |
| 340 if (defined(invoker.testonly)) { | 340 if (defined(invoker.testonly)) { |
| 341 testonly = invoker.testonly | 341 testonly = invoker.testonly |
| 342 } | 342 } |
| 343 | 343 |
| 344 assert(defined(invoker.sources)) | 344 assert(defined(invoker.sources)) |
| 345 assert(defined(invoker.outputs)) | 345 assert(defined(invoker.outputs)) |
| 346 | 346 |
| 347 action("${target_name}__generate_enum") { | 347 action("${target_name}__generate_enum") { |
| 348 # The sources aren't compiled so don't check their dependencies. |
| 349 # TODO(brettw) uncomment after GN binary rolled pas 314974 (which added |
| 350 # support for this value on actions). |
| 351 #check_includes = false |
| 352 |
| 348 sources = invoker.sources | 353 sources = invoker.sources |
| 349 script = "//build/android/gyp/java_cpp_enum.py" | 354 script = "//build/android/gyp/java_cpp_enum.py" |
| 350 gen_dir = "${target_gen_dir}/${target_name}/enums" | 355 gen_dir = "${target_gen_dir}/${target_name}/enums" |
| 351 outputs = | 356 outputs = |
| 352 get_path_info(rebase_path(invoker.outputs, ".", gen_dir), "abspath") | 357 get_path_info(rebase_path(invoker.outputs, ".", gen_dir), "abspath") |
| 353 | 358 |
| 354 args = [ | 359 args = [ |
| 355 "--output_dir", | 360 "--output_dir", |
| 356 rebase_path(gen_dir, root_build_dir), | 361 rebase_path(gen_dir, root_build_dir), |
| 357 ] | 362 ] |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 } | 996 } |
| 992 if (defined(invoker.testonly)) { | 997 if (defined(invoker.testonly)) { |
| 993 testonly = invoker.testonly | 998 testonly = invoker.testonly |
| 994 } | 999 } |
| 995 if (defined(invoker.visibility)) { | 1000 if (defined(invoker.visibility)) { |
| 996 visibility = invoker.visibility | 1001 visibility = invoker.visibility |
| 997 } | 1002 } |
| 998 if (defined(invoker.dex_path)) { | 1003 if (defined(invoker.dex_path)) { |
| 999 dex_path = invoker.dex_path | 1004 dex_path = invoker.dex_path |
| 1000 } | 1005 } |
| 1006 if (defined(invoker.manifest_entries)) { |
| 1007 manifest_entries = invoker.manifest_entries |
| 1008 } |
| 1001 | 1009 |
| 1002 supports_android = true | 1010 supports_android = true |
| 1003 requires_android = true | 1011 requires_android = true |
| 1004 | 1012 |
| 1005 if (!defined(jar_excluded_patterns)) { | 1013 if (!defined(jar_excluded_patterns)) { |
| 1006 jar_excluded_patterns = [] | 1014 jar_excluded_patterns = [] |
| 1007 } | 1015 } |
| 1008 jar_excluded_patterns += [ | 1016 jar_excluded_patterns += [ |
| 1009 "*/R.class", | 1017 "*/R.class", |
| 1010 "*/R##*.class", | 1018 "*/R##*.class", |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 template("uiautomator_test") { | 1735 template("uiautomator_test") { |
| 1728 set_sources_assignment_filter([]) | 1736 set_sources_assignment_filter([]) |
| 1729 if (defined(invoker.testonly)) { | 1737 if (defined(invoker.testonly)) { |
| 1730 testonly = invoker.testonly | 1738 testonly = invoker.testonly |
| 1731 } | 1739 } |
| 1732 assert(target_name != "") | 1740 assert(target_name != "") |
| 1733 assert(invoker.deps != [] || true) | 1741 assert(invoker.deps != [] || true) |
| 1734 group(target_name) { | 1742 group(target_name) { |
| 1735 } | 1743 } |
| 1736 } | 1744 } |
| OLD | NEW |