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

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: Addressed Misha's comments. 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_platform_icu_alternatives == 1', {
40 'sources!': [
41 'url_canon_icu.cc',
42 'url_canon_icu.h',
43 ],
44 'defines': [
45 'USE_PLATFORM_ICU_ALTERNATIVES=1',
46 ],
47 'conditions': [
48 ['OS == "android"', {
49 'dependencies': [
50 'url_java',
51 'url_jni_headers',
52 ],
53 'sources': [
54 'url_canon_icu_alternatives_android.cc',
55 'url_canon_icu_alternatives_android.h',
56 ],
57 }],
58 ['OS == "ios"', {
59 'sources': [
60 'url_canon_icu_alternatives_ios.mm',
61 ],
62 }],
63 ],
64 },
65 # 'use_platform_icu_alternatives != 1'
66 {
67 'dependencies': [
68 '../third_party/icu/icu.gyp:icui18n',
69 '../third_party/icu/icu.gyp:icuuc',
70 ],
71 }],
72 ],
38 }, 73 },
39 { 74 {
40 'target_name': 'url_unittests', 75 'target_name': 'url_unittests',
41 'type': 'executable', 76 'type': 'executable',
42 'dependencies': [ 77 'dependencies': [
43 '../base/base.gyp:test_support_base', 78 '../base/base.gyp:test_support_base',
44 '../mojo/mojo_edk.gyp:mojo_common_test_support', 79 '../mojo/mojo_edk.gyp:mojo_common_test_support',
45 '../testing/gtest.gyp:gtest', 80 '../testing/gtest.gyp:gtest',
46 '../third_party/icu/icu.gyp:icuuc', 81 '../third_party/icu/icu.gyp:icuuc',
47 'url_test_mojom', 82 'url_test_mojom',
48 'url_lib', 83 'url_lib',
49 ], 84 ],
50 'sources': [ 85 'sources': [
51 'gurl_unittest.cc', 86 'gurl_unittest.cc',
52 'origin_unittest.cc', 87 'origin_unittest.cc',
53 'run_all_unittests.cc', 88 'run_all_unittests.cc',
54 'scheme_host_port_unittest.cc', 89 'scheme_host_port_unittest.cc',
55 'url_canon_icu_unittest.cc', 90 'url_canon_icu_unittest.cc',
56 'url_canon_unittest.cc', 91 'url_canon_unittest.cc',
57 'url_parse_unittest.cc', 92 'url_parse_unittest.cc',
58 'url_test_utils.h', 93 'url_test_utils.h',
59 'url_util_unittest.cc', 94 'url_util_unittest.cc',
60 ], 95 ],
61 'conditions': [ 96 'conditions': [
62 ['OS!="ios"', { 97 ['OS!="ios"', {
63 'sources': [ 98 'sources': [
64 'mojo/url_gurl_struct_traits_unittest.cc', 99 'mojo/url_gurl_struct_traits_unittest.cc',
65 ], 100 ],
66 }], 101 }],
102 # Unit tests that are not supported by the current ICU alternatives on A ndroid.
103 ['OS == "android" and use_platform_icu_alternatives == 1', {
104 'sources!': [
105 'url_canon_icu_unittest.cc',
mef 2016/04/04 22:25:44 Strange, that this list of disabled tests is diffe
kapishnikov 2016/04/05 15:22:04 See the previous comment regarding 'url_canon_icu_
106 ],
107 }],
108 # Unit tests that are not supported by the current ICU alternatives on i OS.
109 ['OS == "ios" and use_platform_icu_alternatives == 1', {
110 'sources!': [
111 'origin_unittest.cc',
112 'scheme_host_port_unittest.cc',
113 'url_canon_icu_unittest.cc',
114 'url_canon_unittest.cc',
115 ],
116 }],
67 ], 117 ],
68 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 118 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
69 'msvs_disabled_warnings': [4267, ], 119 'msvs_disabled_warnings': [4267, ],
70 }, 120 },
71 { 121 {
72 'target_name': 'url_interfaces_mojom', 122 'target_name': 'url_interfaces_mojom',
73 'type': 'none', 123 'type': 'none',
74 'variables': { 124 'variables': {
75 'mojom_extra_generator_args': [ 125 'mojom_extra_generator_args': [
76 '--typemap', '<(DEPTH)/url/mojo/origin.typemap', 126 '--typemap', '<(DEPTH)/url/mojo/origin.typemap',
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'target_name': 'url_java', 193 'target_name': 'url_java',
144 'type': 'none', 194 'type': 'none',
145 'variables': { 195 'variables': {
146 'java_in_dir': '../url/android/java', 196 'java_in_dir': '../url/android/java',
147 }, 197 },
148 'dependencies': [ 198 'dependencies': [
149 '../base/base.gyp:base', 199 '../base/base.gyp:base',
150 ], 200 ],
151 'includes': [ '../build/java.gypi' ], 201 'includes': [ '../build/java.gypi' ],
152 }, 202 },
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 ], 203 ],
183 }], 204 }],
184 ['test_isolation_mode != "noop"', { 205 ['test_isolation_mode != "noop"', {
185 'targets': [ 206 'targets': [
186 { 207 {
187 'target_name': 'url_unittests_run', 208 'target_name': 'url_unittests_run',
188 'type': 'none', 209 'type': 'none',
189 'dependencies': [ 210 'dependencies': [
190 'url_unittests', 211 'url_unittests',
191 ], 212 ],
192 'includes': [ 213 'includes': [
193 '../build/isolate.gypi', 214 '../build/isolate.gypi',
194 ], 215 ],
195 'sources': [ 216 'sources': [
196 'url_unittests.isolate', 217 'url_unittests.isolate',
197 ], 218 ],
198 }, 219 },
199 ], 220 ],
200 }], 221 }],
201 ], 222 ],
202 } 223 }
OLDNEW
« url/features.gni ('K') | « url/features.gni ('k') | url/url_canon_icu_alternatives_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698