blob: dc4cb0a29421e909645e30c952761a999f2aabef [file] [log] [blame]
[email protected]c6f27f22013-08-21 21:44:591# 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
3# found in the LICENSE file.
4
[email protected]b5c19e32013-09-10 23:01:255component("url") {
[email protected]b5c19e32013-09-10 23:01:256 if (is_win) {
7 # Don't conflict with Windows' "url.dll".
8 output_name = "url_lib"
9 }
[email protected]c6f27f22013-08-21 21:44:5910 sources = [
11 "gurl.cc",
12 "gurl.h",
13 "third_party/mozilla/url_parse.cc",
14 "third_party/mozilla/url_parse.h",
15 "url_canon.h",
16 "url_canon_etc.cc",
17 "url_canon_filesystemurl.cc",
18 "url_canon_fileurl.cc",
19 "url_canon_host.cc",
20 "url_canon_icu.cc",
21 "url_canon_icu.h",
22 "url_canon_internal.cc",
23 "url_canon_internal.h",
24 "url_canon_internal_file.h",
25 "url_canon_ip.cc",
26 "url_canon_ip.h",
27 "url_canon_mailtourl.cc",
28 "url_canon_path.cc",
29 "url_canon_pathurl.cc",
30 "url_canon_query.cc",
31 "url_canon_relative.cc",
[email protected]54837522013-12-21 17:56:3832 "url_canon_stdstring.cc",
[email protected]c6f27f22013-08-21 21:44:5933 "url_canon_stdstring.h",
34 "url_canon_stdurl.cc",
[email protected]fa8d1b62014-01-05 22:49:5035 "url_export.h",
[email protected]c6f27f22013-08-21 21:44:5936 "url_file.h",
37 "url_parse_file.cc",
38 "url_parse_internal.h",
39 "url_util.cc",
40 "url_util.h",
41 ]
42
43 defines = [ "URL_IMPLEMENTATION" ]
44
[email protected]fa8d1b62014-01-05 22:49:5045 # if (is_win) {
46 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
47 # 'msvs_disabled_warnings': [ 4267, ]
48 # }
49
[email protected]c6f27f22013-08-21 21:44:5950 deps = [
51 "//base",
52 "//third_party/icu:icudata",
[email protected]cc7ec692014-04-08 17:20:3853 "//third_party/icu",
[email protected]c6f27f22013-08-21 21:44:5954 ]
55}
56
57test("url_unittests") {
58 sources = [
59 "gurl_unittest.cc",
60 "url_canon_unittest.cc",
61 "url_parse_unittest.cc",
62 "url_test_utils.h",
63 "url_util_unittest.cc",
64 ]
65
[email protected]fa8d1b62014-01-05 22:49:5066 #if (is_posix && !is_mac && !is_ios) {
[email protected]5fcce3f72014-03-05 20:07:2667 # # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
68 # if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc) {
[email protected]fa8d1b62014-01-05 22:49:5069 # deps += "//base/allocator"
70 # }
71 #}
72
73 # if (is_win) {
74 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
75 # 'msvs_disabled_warnings': [ 4267, ]
76 # }
77
[email protected]c6f27f22013-08-21 21:44:5978 deps = [
[email protected]b5c19e32013-09-10 23:01:2579 ":url",
[email protected]cc7ec692014-04-08 17:20:3880 "//base:i18n",
[email protected]54837522013-12-21 17:56:3881 "//base/test:run_all_unittests",
[email protected]23e197d2013-12-31 12:14:0182 "//testing/gtest",
[email protected]c6f27f22013-08-21 21:44:5983 "//third_party/icu:icuuc",
84 ]
85}