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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 "url_canon_icu_alternatives_android.h", | 85 "url_canon_icu_alternatives_android.h", |
84 ] | 86 ] |
85 } | 87 } |
86 } | 88 } |
87 | 89 |
88 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 90 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
89 if (!is_android) { | 91 if (!is_android) { |
90 test("url_unittests") { | 92 test("url_unittests") { |
91 sources = [ | 93 sources = [ |
92 "gurl_unittest.cc", | 94 "gurl_unittest.cc", |
| 95 "origin_unittest.cc", |
93 "url_canon_icu_unittest.cc", | 96 "url_canon_icu_unittest.cc", |
94 "url_canon_unittest.cc", | 97 "url_canon_unittest.cc", |
95 "url_parse_unittest.cc", | 98 "url_parse_unittest.cc", |
96 "url_test_utils.h", | 99 "url_test_utils.h", |
97 "url_util_unittest.cc", | 100 "url_util_unittest.cc", |
98 ] | 101 ] |
99 | 102 |
100 #if (is_posix && !is_mac && !is_ios) { | 103 #if (is_posix && !is_mac && !is_ios) { |
101 # if (use_allocator!="none") { | 104 # if (use_allocator!="none") { |
102 # deps += "//base/allocator" | 105 # deps += "//base/allocator" |
(...skipping 15 matching lines...) Expand all Loading... |
118 if (use_icu_alternatives_on_android) { | 121 if (use_icu_alternatives_on_android) { |
119 sources -= [ | 122 sources -= [ |
120 "url_canon_icu_unittest.cc", | 123 "url_canon_icu_unittest.cc", |
121 ] | 124 ] |
122 deps -= [ | 125 deps -= [ |
123 "//third_party/icu:icuuc", | 126 "//third_party/icu:icuuc", |
124 ] | 127 ] |
125 } | 128 } |
126 } | 129 } |
127 } | 130 } |
OLD | NEW |