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 5 component("url") { 6 external = true 7 if (is_win) { 8 # Don't conflict with Windows' "url.dll". 9 output_name = "url_lib" 10 } 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", 33 "url_canon_stdstring.h", 34 "url_canon_stdurl.cc", 35 "url_file.h", 36 "url_parse_file.cc", 37 "url_parse_internal.h", 38 "url_util.cc", 39 "url_util.h", 40 ] 41 42 defines = [ "URL_IMPLEMENTATION" ] 43 44 deps = [ 45 "//base", 46 "//third_party/icu:icudata", 47 "//third_party/icu:icui18n", 48 "//third_party/icu:icuuc", 49 ] 50 } 51 52 test("url_unittests") { 53 external = true 54 sources = [ 55 "gurl_unittest.cc", 56 "url_canon_unittest.cc", 57 "url_parse_unittest.cc", 58 "url_test_utils.h", 59 "url_util_unittest.cc", 60 ] 61 62 deps = [ 63 ":url", 64 "//base:base_i18n", 65 "//base:run_all_unittests", 66 "//testing:gtest", 67 "//third_party/icu:icuuc", 68 ] 69 } 70 71