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" ] |
11 } | 11 } |
12 } | 12 } |
13 | 13 |
14 component("url") { | 14 component("url") { |
15 if (is_win) { | 15 if (is_win) { |
16 # Don't conflict with Windows' "url.dll". | 16 # Don't conflict with Windows' "url.dll". |
17 output_name = "url_lib" | 17 output_name = "url_lib" |
18 } | 18 } |
19 sources = [ | 19 sources = [ |
20 "android/url_jni_registrar.cc", | 20 "android/url_jni_registrar.cc", |
21 "android/url_jni_registrar.h", | 21 "android/url_jni_registrar.h", |
22 "gurl.cc", | 22 "gurl.cc", |
23 "gurl.h", | 23 "gurl.h", |
| 24 "origin.cc", |
| 25 "origin.h", |
24 "third_party/mozilla/url_parse.cc", | 26 "third_party/mozilla/url_parse.cc", |
25 "third_party/mozilla/url_parse.h", | 27 "third_party/mozilla/url_parse.h", |
26 "url_canon.h", | 28 "url_canon.h", |
27 "url_canon_etc.cc", | 29 "url_canon_etc.cc", |
28 "url_canon_filesystemurl.cc", | 30 "url_canon_filesystemurl.cc", |
29 "url_canon_fileurl.cc", | 31 "url_canon_fileurl.cc", |
30 "url_canon_host.cc", | 32 "url_canon_host.cc", |
31 "url_canon_icu.cc", | 33 "url_canon_icu.cc", |
32 "url_canon_icu.h", | 34 "url_canon_icu.h", |
33 "url_canon_internal.cc", | 35 "url_canon_internal.cc", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 "url_canon_icu_alternatives_android.h", | 86 "url_canon_icu_alternatives_android.h", |
85 ] | 87 ] |
86 } | 88 } |
87 } | 89 } |
88 | 90 |
89 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 91 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
90 if (!is_android) { | 92 if (!is_android) { |
91 test("url_unittests") { | 93 test("url_unittests") { |
92 sources = [ | 94 sources = [ |
93 "gurl_unittest.cc", | 95 "gurl_unittest.cc", |
| 96 "origin_unittest.cc", |
94 "url_canon_icu_unittest.cc", | 97 "url_canon_icu_unittest.cc", |
95 "url_canon_unittest.cc", | 98 "url_canon_unittest.cc", |
96 "url_parse_unittest.cc", | 99 "url_parse_unittest.cc", |
97 "url_test_utils.h", | 100 "url_test_utils.h", |
98 "url_util_unittest.cc", | 101 "url_util_unittest.cc", |
99 ] | 102 ] |
100 | 103 |
101 #if (is_posix && !is_mac && !is_ios) { | 104 #if (is_posix && !is_mac && !is_ios) { |
102 # if (use_allocator!="none") { | 105 # if (use_allocator!="none") { |
103 # deps += "//base/allocator" | 106 # deps += "//base/allocator" |
(...skipping 15 matching lines...) Expand all Loading... |
119 if (use_icu_alternatives_on_android) { | 122 if (use_icu_alternatives_on_android) { |
120 sources -= [ | 123 sources -= [ |
121 "url_canon_icu_unittest.cc", | 124 "url_canon_icu_unittest.cc", |
122 ] | 125 ] |
123 deps -= [ | 126 deps -= [ |
124 "//third_party/icu:icuuc", | 127 "//third_party/icu:icuuc", |
125 ] | 128 ] |
126 } | 129 } |
127 } | 130 } |
128 } | 131 } |
OLD | NEW |