Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Side by Side Diff: build/config/android/rules.gni

Issue 1498593003: GN(android): Distinguish java_binary from java_library in build_config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build_config_barriers
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/toolchain/toolchain.gni") 8 import("//build/toolchain/toolchain.gni")
9 import("//third_party/android_platform/config.gni") 9 import("//third_party/android_platform/config.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 # 882 #
883 # Example 883 # Example
884 # java_binary("foo") { 884 # java_binary("foo") {
885 # java_files = [ "org/chromium/foo/FooMain.java" ] 885 # java_files = [ "org/chromium/foo/FooMain.java" ]
886 # deps = [ ":bar_java" ] 886 # deps = [ ":bar_java" ]
887 # main_class = "org.chromium.foo.FooMain" 887 # main_class = "org.chromium.foo.FooMain"
888 # } 888 # }
889 template("java_binary") { 889 template("java_binary") {
890 set_sources_assignment_filter([]) 890 set_sources_assignment_filter([])
891 891
892 # TODO(cjhopman): This should not act like a java_library for dependents (i.e.
893 # dependents shouldn't get the jar in their classpath, etc.).
894 java_library_impl(target_name) { 892 java_library_impl(target_name) {
895 forward_variables_from(invoker, "*") 893 forward_variables_from(invoker, "*")
896 supports_android = false 894 supports_android = false
897 main_class = invoker.main_class 895 main_class = invoker.main_class
896 is_java_binary = true
898 } 897 }
899 } 898 }
900 899
901 # Declare a Junit executable target 900 # Declare a Junit executable target
902 # 901 #
903 # This target creates an executable from java code for running as a junit test 902 # This target creates an executable from java code for running as a junit test
904 # suite. The executable will be in the output folder's /bin/ directory. 903 # suite. The executable will be in the output folder's /bin/ directory.
905 # 904 #
906 # Variables 905 # Variables
907 # deps: Specifies the dependencies of this target. Java targets in this list 906 # deps: Specifies the dependencies of this target. Java targets in this list
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2214 } 2213 }
2215 2214
2216 android_library(target_name) { 2215 android_library(target_name) {
2217 java_files = [] 2216 java_files = []
2218 srcjar_deps = [ ":${_template_name}__protoc_java" ] 2217 srcjar_deps = [ ":${_template_name}__protoc_java" ]
2219 deps = [ 2218 deps = [
2220 "//third_party/android_protobuf:protobuf_nano_javalib", 2219 "//third_party/android_protobuf:protobuf_nano_javalib",
2221 ] 2220 ]
2222 } 2221 }
2223 } 2222 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698