Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / url / BUILD.gn
blob6445bfbb3d7dcbad895021085c7f3d14f11ccf69
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.
5 component("url") {
6   if (is_win) {
7     # Don't conflict with Windows' "url.dll".
8     output_name = "url_lib"
9   }
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",
32     "url_canon_stdstring.cc",
33     "url_canon_stdstring.h",
34     "url_canon_stdurl.cc",
35     "url_export.h",
36     "url_file.h",
37     "url_parse_file.cc",
38     "url_parse_internal.h",
39     "url_util.cc",
40     "url_util.h",
41   ]
43   defines = [ "URL_IMPLEMENTATION" ]
45   # if (is_win) {
46   #   TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
47   #   'msvs_disabled_warnings': [ 4267, ]
48   # }
50   deps = [
51     "//base",
52     "//third_party/icu:icudata",
53     "//third_party/icu",
54   ]
57 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android.
58 if (!is_android) {
59   test("url_unittests") {
60     sources = [
61       "gurl_unittest.cc",
62       "url_canon_unittest.cc",
63       "url_parse_unittest.cc",
64       "url_test_utils.h",
65       "url_util_unittest.cc",
66     ]
68     #if (is_posix && !is_mac && !is_ios) {
69     #  # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
70     #  if ((use_allocator!="none" && use_allocator!="see_use_tcmalloc") || (use_allocator=="see_use_tcmalloc" && linux_use_tcmalloc) {
71     #    deps += "//base/allocator"
72     #  }
73     #}
75     # if (is_win) {
76     #   TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
77     #   'msvs_disabled_warnings': [ 4267, ]
78     # }
80     deps = [
81       ":url",
82       "//base:i18n",
83       "//base/test:run_all_unittests",
84       "//testing/gtest",
85       "//third_party/icu:icuuc",
86     ]
87   }