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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/android/internal_rules.gni") | 6 import("//build/config/android/internal_rules.gni") |
7 import("//tools/grit/grit_rule.gni") | 7 import("//tools/grit/grit_rule.gni") |
8 | 8 |
9 assert(is_android) | 9 assert(is_android) |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 if (defined(invoker.public_deps)) { | 179 if (defined(invoker.public_deps)) { |
180 public_deps = invoker.public_deps | 180 public_deps = invoker.public_deps |
181 } | 181 } |
182 public_configs = [ ":jni_includes_${target_name}" ] | 182 public_configs = [ ":jni_includes_${target_name}" ] |
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 | 186 |
187 # Declare a target for c-preprocessor-generated java files | 187 # Declare a target for c-preprocessor-generated java files |
188 # | 188 # |
| 189 # NOTE: For generating Java conterparts to enums prefer using the java_cpp_enum |
| 190 # rule instead. |
| 191 # |
189 # This target generates java files using the host C pre-processor. Each file in | 192 # This target generates java files using the host C pre-processor. Each file in |
190 # sources will be compiled using the C pre-processor. If include_path is | 193 # sources will be compiled using the C pre-processor. If include_path is |
191 # specified, it will be passed (with --I) to the pre-processor. | 194 # specified, it will be passed (with --I) to the pre-processor. |
192 # | 195 # |
193 # This target will create a single .srcjar. Adding this target to an | 196 # This target will create a single .srcjar. Adding this target to an |
194 # android_library target's srcjar_deps will make the generated java files be | 197 # android_library target's srcjar_deps will make the generated java files be |
195 # included in that library's final outputs. | 198 # included in that library's final outputs. |
196 # | 199 # |
197 # Variables | 200 # Variables |
198 # sources: list of files to be processed by the C pre-processor. For each | 201 # sources: list of files to be processed by the C pre-processor. For each |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 } | 1199 } |
1197 | 1200 |
1198 android_library(target_name) { | 1201 android_library(target_name) { |
1199 java_files = [] | 1202 java_files = [] |
1200 srcjar_deps = [ ":${_template_name}__protoc_java" ] | 1203 srcjar_deps = [ ":${_template_name}__protoc_java" ] |
1201 deps = [ | 1204 deps = [ |
1202 "//third_party/android_protobuf:protobuf_nano_javalib", | 1205 "//third_party/android_protobuf:protobuf_nano_javalib", |
1203 ] | 1206 ] |
1204 } | 1207 } |
1205 } | 1208 } |
OLD | NEW |