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

Side by Side Diff: url/BUILD.gn

Issue 1553623003: Port cronet_package GYP target to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix issues Created 4 years, 11 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
« no previous file with comments | « components/cronet/tools/jar_src.py ('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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 } 9 }
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 deps = [ 66 deps = [
67 "//base", 67 "//base",
68 "//base/third_party/dynamic_annotations", 68 "//base/third_party/dynamic_annotations",
69 "//third_party/icu", 69 "//third_party/icu",
70 "//third_party/icu:icudata", 70 "//third_party/icu:icudata",
71 ] 71 ]
72 } 72 }
73 73
74 if (is_android) { 74 if (is_android) {
75 android_library("url_java") {
76 DEPRECATED_java_in_dir = "android/java/src"
77 deps = [
78 "//base:base_java",
79 ]
80 }
81
75 generate_jni("url_jni_headers") { 82 generate_jni("url_jni_headers") {
76 sources = [ 83 sources = [
77 "android/java/src/org/chromium/url/IDNStringUtil.java", 84 "android/java/src/org/chromium/url/IDNStringUtil.java",
78 ] 85 ]
79 jni_package = "url" 86 jni_package = "url"
80 } 87 }
81 88
82 component("url_lib_use_icu_alternatives_on_android") { 89 component("url_lib_use_icu_alternatives_on_android") {
83 sources = url_shared_sources + [ 90 sources = url_shared_sources + [
84 "android/url_jni_registrar.cc", 91 "android/url_jni_registrar.cc",
85 "android/url_jni_registrar.h", 92 "android/url_jni_registrar.h",
86 "url_canon_icu_alternatives_android.cc", 93 "url_canon_icu_alternatives_android.cc",
87 "url_canon_icu_alternatives_android.h", 94 "url_canon_icu_alternatives_android.h",
88 ] 95 ]
89 96
90 defines = [ 97 defines = [
91 "URL_IMPLEMENTATION", 98 "URL_IMPLEMENTATION",
92 "USE_ICU_ALTERNATIVES_ON_ANDROID=1", 99 "USE_ICU_ALTERNATIVES_ON_ANDROID=1",
93 ] 100 ]
94 101
95 configs += [ 102 configs += [
96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 103 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
97 "//build/config/compiler:no_size_t_to_int_warning", 104 "//build/config/compiler:no_size_t_to_int_warning",
98 ] 105 ]
99 106
100 deps = [ 107 deps = [
108 ":url_java",
101 ":url_jni_headers", 109 ":url_jni_headers",
102 "//base", 110 "//base",
103 "//base/third_party/dynamic_annotations", 111 "//base/third_party/dynamic_annotations",
104 ] 112 ]
105 } 113 }
106 } 114 }
107 115
108 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. 116 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android.
109 if (!is_android) { 117 if (!is_android) {
110 # TODO(GYP): Delete this after we've converted everything to GN. 118 # TODO(GYP): Delete this after we've converted everything to GN.
(...skipping 28 matching lines...) Expand all
139 147
140 deps = [ 148 deps = [
141 ":url", 149 ":url",
142 "//base", 150 "//base",
143 "//base/test:run_all_unittests", 151 "//base/test:run_all_unittests",
144 "//testing/gtest", 152 "//testing/gtest",
145 "//third_party/icu:icuuc", 153 "//third_party/icu:icuuc",
146 ] 154 ]
147 } 155 }
148 } 156 }
OLDNEW
« no previous file with comments | « components/cronet/tools/jar_src.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698