blob: f1057b17b76d7750fa86808d6b9068f392aa1835 [file] [log] [blame]
[email protected]a306aaa2014-05-24 13:21:501# Copyright 2014 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
Mikel Astiz5774c182017-10-26 10:59:515if (is_android) {
6 import("//build/config/android/rules.gni")
7}
8
brettw59a05842016-07-21 22:44:549static_library("favicon_base") {
[email protected]a306aaa2014-05-24 13:21:5010 sources = [
huangs3382fc9d2015-02-11 22:18:3811 "fallback_icon_style.cc",
12 "fallback_icon_style.h",
[email protected]a306aaa2014-05-24 13:21:5013 "favicon_callback.h",
14 "favicon_types.cc",
15 "favicon_types.h",
blundellee0ade22015-07-08 10:07:4516 "favicon_url_parser.cc",
17 "favicon_url_parser.h",
naiem.shaik0d049632015-02-11 19:05:0118 "favicon_usage_data.cc",
19 "favicon_usage_data.h",
[email protected]1257f642014-06-16 18:37:1320 "favicon_util.cc",
21 "favicon_util.h",
[email protected]a306aaa2014-05-24 13:21:5022 "select_favicon_frames.cc",
23 "select_favicon_frames.h",
24 ]
25
26 deps = [
27 "//base",
blundellee0ade22015-07-08 10:07:4528 "//net",
sdefresnef900329e2015-01-14 09:49:0629 "//ui/base",
sdefresnec6574a552016-02-08 16:58:2130 "//ui/base:ui_data_pack",
[email protected]a306aaa2014-05-24 13:21:5031 "//ui/gfx",
sergeyu202c0022015-02-19 20:10:3632 "//ui/gfx/geometry",
[email protected]a306aaa2014-05-24 13:21:5033 "//url",
34 ]
sdefresne07f77392016-11-09 11:49:2135 public_deps = [
36 "//skia",
37 ]
[email protected]a306aaa2014-05-24 13:21:5038}
sdefresnef900329e2015-01-14 09:49:0639
40source_set("unit_tests") {
41 testonly = true
42 sources = [
blundellee0ade22015-07-08 10:07:4543 "favicon_url_parser_unittest.cc",
sdefresnef900329e2015-01-14 09:49:0644 "select_favicon_frames_unittest.cc",
45 ]
46
47 deps = [
48 ":favicon_base",
49 "//testing/gtest",
50 "//ui/base",
51 "//ui/gfx",
sergeyu202c0022015-02-19 20:10:3652 "//ui/gfx/geometry",
brettw5b700b02015-10-24 00:20:2053 "//url",
sdefresnef900329e2015-01-14 09:49:0654 ]
55}
Mikel Astiz5774c182017-10-26 10:59:5156
57if (is_android) {
58 java_cpp_enum("favicon_base_enums_java") {
59 sources = [
60 "favicon_types.h",
61 ]
62 }
63}