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

Side by Side Diff: url/BUILD.gn

Issue 2347233002: Add src_files to src_jar GN template (Closed)
Patch Set: Build base_java, net_java, url_java from srcjar. Add support for srsjar_deps to jar_src template. Created 4 years, 3 months 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
« components/cronet/android/BUILD.gn ('K') | « net/android/BUILD.gn ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("features.gni") 7 import("features.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 sources += [ 92 sources += [
93 "url_canon_icu.cc", 93 "url_canon_icu.cc",
94 "url_canon_icu.h", 94 "url_canon_icu.h",
95 ] 95 ]
96 deps += [ "//third_party/icu" ] 96 deps += [ "//third_party/icu" ]
97 } 97 }
98 } 98 }
99 99
100 if (is_android) { 100 if (is_android) {
101 android_library("url_java") { 101 android_library("url_java") {
102 java_files = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ] 102 srcjar_deps = [ ":url_java_srcjar" ]
103 deps = [ 103 deps = [
104 "//base:base_java", 104 "//base:base_java",
105 ] 105 ]
106 } 106 }
107 107
108 # Creates srcjar that contains sources for "url_java".
109 zip("url_java_srcjar") {
110 inputs = [
111 "android/java/src/org/chromium/url/IDNStringUtil.java",
112 ]
113 output = "$target_gen_dir/$target_name.srcjar"
114 base_dir = rebase_path("//url")
115 }
116
108 generate_jni("url_jni_headers") { 117 generate_jni("url_jni_headers") {
109 sources = [ 118 sources = [
110 "android/java/src/org/chromium/url/IDNStringUtil.java", 119 "android/java/src/org/chromium/url/IDNStringUtil.java",
111 ] 120 ]
112 jni_package = "url" 121 jni_package = "url"
113 } 122 }
114 } 123 }
115 124
116 test("url_unittests") { 125 test("url_unittests") {
117 sources = [ 126 sources = [
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 173 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
165 174
166 if (!is_ios) { 175 if (!is_ios) {
167 deps += [ 176 deps += [
168 "//mojo/edk/system", 177 "//mojo/edk/system",
169 "//mojo/edk/test:test_support", 178 "//mojo/edk/test:test_support",
170 "//url/mojo:test_url_mojom_gurl", 179 "//url/mojo:test_url_mojom_gurl",
171 ] 180 ]
172 } 181 }
173 } 182 }
OLDNEW
« components/cronet/android/BUILD.gn ('K') | « net/android/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698