[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
[email protected] | b5c19e3 | 2013-09-10 23:01:25 | [diff] [blame] | 5 | component("url") { |
[email protected] | 0a79fe4 | 2013-08-29 21:06:26 | [diff] [blame] | 6 | external = true |
[email protected] | b5c19e3 | 2013-09-10 23:01:25 | [diff] [blame] | 7 | if (is_win) { |
| 8 | # Don't conflict with Windows' "url.dll". |
| 9 | output_name = "url_lib" |
| 10 | } |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 11 | 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] | 5483752 | 2013-12-21 17:56:38 | [diff] [blame^] | 33 | "url_canon_stdstring.cc", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 34 | "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 | |
| 53 | test("url_unittests") { |
[email protected] | 0a79fe4 | 2013-08-29 21:06:26 | [diff] [blame] | 54 | external = true |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 55 | 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] | b5c19e3 | 2013-09-10 23:01:25 | [diff] [blame] | 64 | ":url", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 65 | "//base:base_i18n", |
[email protected] | 5483752 | 2013-12-21 17:56:38 | [diff] [blame^] | 66 | "//base/test:run_all_unittests", |
[email protected] | 0a79fe4 | 2013-08-29 21:06:26 | [diff] [blame] | 67 | "//testing:gtest", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 68 | "//third_party/icu:icuuc", |
| 69 | ] |
| 70 | } |