base: Use scoped_ptr for ownership of pointers in unittests.
[chromium-blink-merge.git] / components / favicon.gypi
blobd2f9195e04a3c428230a2e2b7921360695f90028
1 # 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.
6   'targets': [
7     {
8       # GN version: //components/favicon/core
9       'target_name': 'favicon_core',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../skia/skia.gyp:skia',
14         '../ui/base/ui_base.gyp:ui_base',
15         '../ui/gfx/gfx.gyp:gfx',
16         '../url/url.gyp:url_lib',
17         'bookmarks_browser',
18         'favicon_base',
19         'history_core_browser',
20         'keyed_service_core',
21       ],
22       'sources': [
23         # Note: sources list duplicated in GN build.
24         'favicon/core/fallback_icon_client.h',
25         'favicon/core/fallback_icon_service.cc',
26         'favicon/core/fallback_icon_service.h',
27         'favicon/core/favicon_client.h',
28         'favicon/core/favicon_driver.cc',
29         'favicon/core/favicon_driver.h',
30         'favicon/core/favicon_driver_impl.cc',
31         'favicon/core/favicon_driver_impl.h',
32         'favicon/core/favicon_driver_observer.h',
33         'favicon/core/favicon_handler.cc',
34         'favicon/core/favicon_handler.h',
35         'favicon/core/favicon_service.cc',
36         'favicon/core/favicon_service.h',
37         'favicon/core/favicon_url.cc',
38         'favicon/core/favicon_url.h',
39         'favicon/core/large_icon_service.cc',
40         'favicon/core/large_icon_service.h',
41       ],
42       'include_dirs': [
43         '..',
44       ],
45     },
46   ],
47   'conditions': [
48     ['OS!="ios"', {
49       'targets': [
50         {
51           # GN version: //components/favicon/content
52           'target_name': 'favicon_content',
53           'type': 'static_library',
54           'dependencies': [
55             '../base/base.gyp:base',
56             '../content/content.gyp:content_browser',
57             '../content/content.gyp:content_common',
58             '../ui/gfx/gfx.gyp:gfx',
59             'favicon_base',
60             'favicon_core',
61           ],
62           'sources': [
63             # Note: sources list duplicated in GN build.
64             'favicon/content/content_favicon_driver.cc',
65             'favicon/content/content_favicon_driver.h',
66             'favicon/content/favicon_url_util.cc',
67             'favicon/content/favicon_url_util.h',
68           ],
69           'include_dirs': [
70             '..',
71           ],
72         },
73       ],
74     }],
75     ['OS=="ios"', {
76       'targets': [
77         {
78           'target_name': 'favicon_ios',
79           'type': 'static_library',
80           'dependencies': [
81             '../base/base.gyp:base',
82             '../ios/web/ios_web.gyp:ios_web',
83             '../ui/gfx/gfx.gyp:gfx',
84             'favicon_base',
85             'favicon_core',
86           ],
87           'sources': [
88             'favicon/ios/favicon_url_util.cc',
89             'favicon/ios/favicon_url_util.h',
90             'favicon/ios/web_favicon_driver.cc',
91             'favicon/ios/web_favicon_driver.h',
92           ],
93           'include_dirs': [
94             '..',
95           ],
96         },
97       ],
98     }],
99   ],