OLD | NEW |
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("//url/config.gni") | 5 import("//url/config.gni") |
6 | 6 |
7 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. | 7 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. |
8 config("url_icu_config") { | 8 config("url_icu_config") { |
9 if (use_icu_alternatives_on_android) { | 9 if (use_icu_alternatives_on_android) { |
10 defines = [ "USE_ICU_ALTERNATIVES_ON_ANDROID=1" ] | 10 defines = [ "USE_ICU_ALTERNATIVES_ON_ANDROID=1" ] |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 "url_parse_internal.h", | 53 "url_parse_internal.h", |
54 "url_util.cc", | 54 "url_util.cc", |
55 "url_util.h", | 55 "url_util.h", |
56 ] | 56 ] |
57 | 57 |
58 defines = [ "URL_IMPLEMENTATION" ] | 58 defines = [ "URL_IMPLEMENTATION" ] |
59 | 59 |
60 configs += [ ":url_icu_config" ] | 60 configs += [ ":url_icu_config" ] |
61 | 61 |
62 if (is_win) { | 62 if (is_win) { |
63 cflags = [ | 63 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t
runcations. |
64 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
65 ] | |
66 } | 64 } |
67 | 65 |
68 deps = [ | 66 deps = [ |
69 "//base", | 67 "//base", |
70 "//base/third_party/dynamic_annotations", | 68 "//base/third_party/dynamic_annotations", |
71 "//third_party/icu:icudata", | 69 "//third_party/icu:icudata", |
72 "//third_party/icu", | 70 "//third_party/icu", |
73 ] | 71 ] |
74 | 72 |
75 if (use_icu_alternatives_on_android) { | 73 if (use_icu_alternatives_on_android) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 115 |
118 deps = [ | 116 deps = [ |
119 ":url", | 117 ":url", |
120 "//base", | 118 "//base", |
121 "//base/test:run_all_unittests", | 119 "//base/test:run_all_unittests", |
122 "//testing/gtest", | 120 "//testing/gtest", |
123 "//third_party/icu:icuuc", | 121 "//third_party/icu:icuuc", |
124 ] | 122 ] |
125 | 123 |
126 if (use_icu_alternatives_on_android) { | 124 if (use_icu_alternatives_on_android) { |
127 sources -= [ | 125 sources -= [ "url_canon_icu_unittest.cc" ] |
128 "url_canon_icu_unittest.cc", | 126 deps -= [ "//third_party/icu:icuuc" ] |
129 ] | |
130 deps -= [ | |
131 "//third_party/icu:icuuc", | |
132 ] | |
133 } | 127 } |
134 } | 128 } |
135 } | 129 } |
OLD | NEW |