[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] | b5c19e3 | 2013-09-10 23:01:25 | [diff] [blame] | 6 | if (is_win) { |
| 7 | # Don't conflict with Windows' "url.dll". |
| 8 | output_name = "url_lib" |
| 9 | } |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 10 | 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] | 5483752 | 2013-12-21 17:56:38 | [diff] [blame] | 32 | "url_canon_stdstring.cc", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 33 | "url_canon_stdstring.h", |
| 34 | "url_canon_stdurl.cc", |
[email protected] | fa8d1b6 | 2014-01-05 22:49:50 | [diff] [blame] | 35 | "url_export.h", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 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 | |
[email protected] | fa8d1b6 | 2014-01-05 22:49:50 | [diff] [blame] | 45 | # if (is_win) { |
| 46 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 47 | # 'msvs_disabled_warnings': [ 4267, ] |
| 48 | # } |
| 49 | |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 50 | deps = [ |
| 51 | "//base", |
| 52 | "//third_party/icu:icudata", |
[email protected] | cc7ec69 | 2014-04-08 17:20:38 | [diff] [blame^] | 53 | "//third_party/icu", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 54 | ] |
| 55 | } |
| 56 | |
| 57 | test("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] | fa8d1b6 | 2014-01-05 22:49:50 | [diff] [blame] | 66 | #if (is_posix && !is_mac && !is_ios) { |
[email protected] | 5fcce3f7 | 2014-03-05 20:07:26 | [diff] [blame] | 67 | # # 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] | fa8d1b6 | 2014-01-05 22:49:50 | [diff] [blame] | 69 | # 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] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 78 | deps = [ |
[email protected] | b5c19e3 | 2013-09-10 23:01:25 | [diff] [blame] | 79 | ":url", |
[email protected] | cc7ec69 | 2014-04-08 17:20:38 | [diff] [blame^] | 80 | "//base:i18n", |
[email protected] | 5483752 | 2013-12-21 17:56:38 | [diff] [blame] | 81 | "//base/test:run_all_unittests", |
[email protected] | 23e197d | 2013-12-31 12:14:01 | [diff] [blame] | 82 | "//testing/gtest", |
[email protected] | c6f27f2 | 2013-08-21 21:44:59 | [diff] [blame] | 83 | "//third_party/icu:icuuc", |
| 84 | ] |
| 85 | } |