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

Side by Side Diff: url/url.gyp

Issue 1839803002: Remove net & url small, iOS ICU alternatives, unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GN on iOS Created 4 years, 8 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 'url_srcs.gypi', 10 'url_srcs.gypi',
11 ], 11 ],
12 'targets': [ 12 'targets': [
13 { 13 {
14 # Note, this target_name cannot be 'url', because that will generate 14 # Note, this target_name cannot be 'url', because that will generate
15 # 'url.dll' for a Windows component build, and that will confuse Windows, 15 # 'url.dll' for a Windows component build, and that will confuse Windows,
16 # which has a system DLL with the same name. 16 # which has a system DLL with the same name.
17 'target_name': 'url_lib', 17 'target_name': 'url_lib',
18 'type': '<(component)', 18 'type': '<(component)',
19 'dependencies': [ 19 'dependencies': [
20 '../base/base.gyp:base', 20 '../base/base.gyp:base',
21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 21 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
22 '../third_party/icu/icu.gyp:icui18n',
23 '../third_party/icu/icu.gyp:icuuc',
24 ], 22 ],
25 'sources': [ 23 'sources': [
26 '<@(gurl_sources)', 24 '<@(gurl_sources)',
27 ], 25 ],
28 'direct_dependent_settings': { 26 'direct_dependent_settings': {
29 'include_dirs': [ 27 'include_dirs': [
30 '..', 28 '..',
31 ], 29 ],
32 }, 30 },
33 'defines': [ 31 'defines': [
34 'URL_IMPLEMENTATION', 32 'URL_IMPLEMENTATION',
35 ], 33 ],
36 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 34 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
37 'msvs_disabled_warnings': [4267, ], 35 'msvs_disabled_warnings': [4267, ],
36
37 # ICU Alternatives for Android & iOS
38 'conditions': [
39 ['use_icu_alternatives == 1', {
40 'sources!': [
41 'url_canon_icu.cc',
42 'url_canon_icu.h',
43 ],
44 'conditions': [
45 ['OS == "android"', {
46 'dependencies': [
47 'url_java',
48 'url_jni_headers',
49 ],
50 'sources': [
51 'url_canon_icu_alternatives_android.cc',
52 'url_canon_icu_alternatives_android.h',
53 ],
54 'defines': [
55 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
56 ],
57 }],
58 ['OS == "ios"', {
59 'sources': [
60 'url_canon_icu_alternatives_ios.mm',
61 ],
62 'defines': [
63 'USE_ICU_ALTERNATIVES_ON_IOS=1',
64 ],
65 }],
66 ],
67 },
68 # 'use_icu_alternatives != 1'
69 {
70 'dependencies': [
71 '../third_party/icu/icu.gyp:icui18n',
72 '../third_party/icu/icu.gyp:icuuc',
73 ],
74 }],
75 ],
38 }, 76 },
39 { 77 {
40 'target_name': 'url_unittests', 78 'target_name': 'url_unittests',
41 'type': 'executable', 79 'type': 'executable',
42 'dependencies': [ 80 'dependencies': [
43 '../base/base.gyp:test_support_base', 81 '../base/base.gyp:test_support_base',
44 '../mojo/mojo_edk.gyp:mojo_common_test_support', 82 '../mojo/mojo_edk.gyp:mojo_common_test_support',
45 '../testing/gtest.gyp:gtest', 83 '../testing/gtest.gyp:gtest',
46 '../third_party/icu/icu.gyp:icuuc', 84 '../third_party/icu/icu.gyp:icuuc',
47 'url_test_mojom', 85 'url_test_mojom',
48 'url_lib', 86 'url_lib',
49 ], 87 ],
50 'sources': [ 88 'sources': [
51 'gurl_unittest.cc', 89 'gurl_unittest.cc',
52 'origin_unittest.cc', 90 'origin_unittest.cc',
53 'run_all_unittests.cc', 91 'run_all_unittests.cc',
54 'scheme_host_port_unittest.cc', 92 'scheme_host_port_unittest.cc',
55 'url_canon_icu_unittest.cc', 93 'url_canon_icu_unittest.cc',
56 'url_canon_unittest.cc', 94 'url_canon_unittest.cc',
57 'url_parse_unittest.cc', 95 'url_parse_unittest.cc',
58 'url_test_utils.h', 96 'url_test_utils.h',
59 'url_util_unittest.cc', 97 'url_util_unittest.cc',
60 ], 98 ],
61 'conditions': [ 99 'conditions': [
62 ['OS!="ios"', { 100 ['OS!="ios"', {
63 'sources': [ 101 'sources': [
64 'mojo/url_gurl_struct_traits_unittest.cc', 102 'mojo/url_gurl_struct_traits_unittest.cc',
65 ], 103 ],
66 }], 104 }],
105 # Unit tests that are not supported by the current ICU alternatives on A ndroid.
106 ['OS == "android" and use_icu_alternatives == 1', {
107 'sources!': [
108 'url_canon_icu_unittest.cc',
109 ],
110 }],
111 # Unit tests that are not supported by the current ICU alternatives on i OS.
112 ['OS == "ios" and use_icu_alternatives == 1', {
113 'sources!': [
114 'origin_unittest.cc',
115 'scheme_host_port_unittest.cc',
116 'url_canon_icu_unittest.cc',
117 'url_canon_unittest.cc',
118 ],
119 }],
67 ], 120 ],
68 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 121 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
69 'msvs_disabled_warnings': [4267, ], 122 'msvs_disabled_warnings': [4267, ],
70 }, 123 },
71 { 124 {
72 'target_name': 'url_interfaces_mojom', 125 'target_name': 'url_interfaces_mojom',
73 'type': 'none', 126 'type': 'none',
74 'variables': { 127 'variables': {
75 'mojom_extra_generator_args': [ 128 'mojom_extra_generator_args': [
76 '--typemap', '<(DEPTH)/url/mojo/origin.typemap', 129 '--typemap', '<(DEPTH)/url/mojo/origin.typemap',
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'target_name': 'url_java', 196 'target_name': 'url_java',
144 'type': 'none', 197 'type': 'none',
145 'variables': { 198 'variables': {
146 'java_in_dir': '../url/android/java', 199 'java_in_dir': '../url/android/java',
147 }, 200 },
148 'dependencies': [ 201 'dependencies': [
149 '../base/base.gyp:base', 202 '../base/base.gyp:base',
150 ], 203 ],
151 'includes': [ '../build/java.gypi' ], 204 'includes': [ '../build/java.gypi' ],
152 }, 205 },
153 {
154 # Same as url_lib but using ICU alternatives on Android.
155 'target_name': 'url_lib_use_icu_alternatives_on_android',
156 'type': '<(component)',
157 'dependencies': [
158 '../base/base.gyp:base',
159 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
160 'url_java',
161 'url_jni_headers',
162 ],
163 'sources': [
164 '<@(gurl_sources)',
165 'url_canon_icu_alternatives_android.cc',
166 'url_canon_icu_alternatives_android.h',
167 ],
168 'sources!': [
169 'url_canon_icu.cc',
170 'url_canon_icu.h',
171 ],
172 'direct_dependent_settings': {
173 'include_dirs': [
174 '..',
175 ],
176 },
177 'defines': [
178 'URL_IMPLEMENTATION',
179 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
180 ],
181 },
182 ], 206 ],
183 }], 207 }],
184 ['test_isolation_mode != "noop"', { 208 ['test_isolation_mode != "noop"', {
185 'targets': [ 209 'targets': [
186 { 210 {
187 'target_name': 'url_unittests_run', 211 'target_name': 'url_unittests_run',
188 'type': 'none', 212 'type': 'none',
189 'dependencies': [ 213 'dependencies': [
190 'url_unittests', 214 'url_unittests',
191 ], 215 ],
192 'includes': [ 216 'includes': [
193 '../build/isolate.gypi', 217 '../build/isolate.gypi',
194 ], 218 ],
195 'sources': [ 219 'sources': [
196 'url_unittests.isolate', 220 'url_unittests.isolate',
197 ], 221 ],
198 }, 222 },
199 ], 223 ],
200 }], 224 }],
201 ], 225 ],
202 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698