blob: 4a8223cefcee66467c76d8c31d7382214b022fe4 [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]0a79fe42013-08-29 21:06:266 external = true
[email protected]b5c19e32013-09-10 23:01:257 if (is_win) {
8 # Don't conflict with Windows' "url.dll".
9 output_name = "url_lib"
10 }
[email protected]c6f27f22013-08-21 21:44:5911 sources = [
12 "gurl.cc",
13 "gurl.h",
14 "third_party/mozilla/url_parse.cc",
15 "third_party/mozilla/url_parse.h",
16 "url_canon.h",
17 "url_canon_etc.cc",
18 "url_canon_filesystemurl.cc",
19 "url_canon_fileurl.cc",
20 "url_canon_host.cc",
21 "url_canon_icu.cc",
22 "url_canon_icu.h",
23 "url_canon_internal.cc",
24 "url_canon_internal.h",
25 "url_canon_internal_file.h",
26 "url_canon_ip.cc",
27 "url_canon_ip.h",
28 "url_canon_mailtourl.cc",
29 "url_canon_path.cc",
30 "url_canon_pathurl.cc",
31 "url_canon_query.cc",
32 "url_canon_relative.cc",
[email protected]54837522013-12-21 17:56:3833 "url_canon_stdstring.cc",
[email protected]c6f27f22013-08-21 21:44:5934 "url_canon_stdstring.h",
35 "url_canon_stdurl.cc",
36 "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
45 deps = [
46 "//base",
47 "//third_party/icu:icudata",
48 "//third_party/icu:icui18n",
49 "//third_party/icu:icuuc",
50 ]
51}
52
53test("url_unittests") {
[email protected]0a79fe42013-08-29 21:06:2654 external = true
[email protected]c6f27f22013-08-21 21:44:5955 sources = [
56 "gurl_unittest.cc",
57 "url_canon_unittest.cc",
58 "url_parse_unittest.cc",
59 "url_test_utils.h",
60 "url_util_unittest.cc",
61 ]
62
63 deps = [
[email protected]b5c19e32013-09-10 23:01:2564 ":url",
[email protected]c6f27f22013-08-21 21:44:5965 "//base:base_i18n",
[email protected]54837522013-12-21 17:56:3866 "//base/test:run_all_unittests",
[email protected]0a79fe42013-08-29 21:06:2667 "//testing:gtest",
[email protected]c6f27f22013-08-21 21:44:5968 "//third_party/icu:icuuc",
69 ]
70}