Add owners for offlinepages
[chromium-blink-merge.git] / components / bookmarks.gypi
blob00b45b711fcfb8ba8aa94b952577aae3a1b73fdb
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/bookmarks/browser
9       'target_name': 'bookmarks_browser',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../base/base.gyp:base_i18n',
17         '../net/net.gyp:net',
18         '../third_party/icu/icu.gyp:icui18n',
19         '../third_party/icu/icu.gyp:icuuc',
20         '../ui/base/ui_base.gyp:ui_base',
21         '../ui/gfx/gfx.gyp:gfx',
22         '../url/url.gyp:url_lib',
23         'bookmarks_common',
24         'components_strings.gyp:components_strings',
25         'favicon_base',
26         'keyed_service_core',
27         'pref_registry',
28         'query_parser',
29         'startup_metric_utils',
30         'url_formatter/url_formatter.gyp:url_formatter',
31       ],
32       'sources': [
33         'bookmarks/browser/base_bookmark_model_observer.cc',
34         'bookmarks/browser/base_bookmark_model_observer.h',
35         'bookmarks/browser/bookmark_client.cc',
36         'bookmarks/browser/bookmark_client.h',
37         'bookmarks/browser/bookmark_codec.cc',
38         'bookmarks/browser/bookmark_codec.h',
39         'bookmarks/browser/bookmark_expanded_state_tracker.cc',
40         'bookmarks/browser/bookmark_expanded_state_tracker.h',
41         'bookmarks/browser/bookmark_index.cc',
42         'bookmarks/browser/bookmark_index.h',
43         'bookmarks/browser/bookmark_match.cc',
44         'bookmarks/browser/bookmark_match.h',
45         'bookmarks/browser/bookmark_model.cc',
46         'bookmarks/browser/bookmark_model.h',
47         'bookmarks/browser/bookmark_model_observer.h',
48         'bookmarks/browser/bookmark_node.cc',
49         'bookmarks/browser/bookmark_node.h',
50         'bookmarks/browser/bookmark_node_data.cc',
51         'bookmarks/browser/bookmark_node_data.h',
52         'bookmarks/browser/bookmark_node_data_ios.cc',
53         'bookmarks/browser/bookmark_node_data_mac.cc',
54         'bookmarks/browser/bookmark_node_data_views.cc',
55         'bookmarks/browser/bookmark_pasteboard_helper_mac.h',
56         'bookmarks/browser/bookmark_pasteboard_helper_mac.mm',
57         'bookmarks/browser/bookmark_storage.cc',
58         'bookmarks/browser/bookmark_storage.h',
59         'bookmarks/browser/bookmark_utils.cc',
60         'bookmarks/browser/bookmark_utils.h',
61         'bookmarks/browser/scoped_group_bookmark_actions.cc',
62         'bookmarks/browser/scoped_group_bookmark_actions.h',
63         'bookmarks/browser/startup_task_runner_service.cc',
64         'bookmarks/browser/startup_task_runner_service.h',
65       ],
66       'conditions': [
67         ['OS == "android"', {
68           # In GN, this android-specific stuff is its own target at
69           # //components/bookmarks/common/android
70           # TODO(cjhopman): This should be its own target in Gyp, too.
71           'dependencies': [
72             'bookmarks_jni_headers',
73           ],
74           'sources' : [
75             'bookmarks/common/android/bookmark_id.cc',
76             'bookmarks/common/android/bookmark_id.h',
77             'bookmarks/common/android/bookmark_type_list.h',
78             'bookmarks/common/android/component_jni_registrar.cc',
79             'bookmarks/common/android/component_jni_registrar.h',
80           ],
81         }],
82         ['toolkit_views==1', {
83           'dependencies': [
84             '<(DEPTH)/ui/views/views.gyp:views',
85           ],
86         }],
87       ],
88     },
89     {
90       # GN version: //components/bookmarks/common
91       'target_name': 'bookmarks_common',
92       'type': 'static_library',
93       'include_dirs': [
94         '..',
95       ],
96       'dependencies': [
97         '../base/base.gyp:base',
98       ],
99       'sources': [
100         'bookmarks/common/bookmark_constants.cc',
101         'bookmarks/common/bookmark_constants.h',
102         'bookmarks/common/bookmark_pref_names.cc',
103         'bookmarks/common/bookmark_pref_names.h',
104       ],
105     },
106     {
107       # GN version: //components/bookmarks/managed
108       'target_name': 'bookmarks_managed',
109       'type': 'static_library',
110       'include_dirs': [
111         '..',
112       ],
113       'dependencies': [
114         'bookmarks_browser',
115         'components_strings.gyp:components_strings',
116         'keyed_service_core',
117       ],
118       'sources': [
119         'bookmarks/managed/managed_bookmark_service.cc',
120         'bookmarks/managed/managed_bookmark_service.h',
121         'bookmarks/managed/managed_bookmark_util.cc',
122         'bookmarks/managed/managed_bookmark_util.h',
123         'bookmarks/managed/managed_bookmarks_tracker.cc',
124         'bookmarks/managed/managed_bookmarks_tracker.h',
125       ],
126     },
127     {
128       # GN version: //components/bookmarks/test
129       'target_name': 'bookmarks_test_support',
130       'type': 'static_library',
131       'include_dirs': [
132         '..',
133       ],
134       'dependencies': [
135         '../base/base.gyp:base',
136         '../testing/gmock.gyp:gmock',
137         '../ui/events/platform/events_platform.gyp:events_platform',
138         '../url/url.gyp:url_lib',
139         'bookmarks_browser',
140       ],
141       'sources': [
142         'bookmarks/test/bookmark_test_helpers.cc',
143         'bookmarks/test/bookmark_test_helpers.h',
144         'bookmarks/test/mock_bookmark_model_observer.cc',
145         'bookmarks/test/mock_bookmark_model_observer.h',
146         'bookmarks/test/test_bookmark_client.cc',
147         'bookmarks/test/test_bookmark_client.h',
148       ],
149       'conditions': [
150         ['use_x11==1', {
151           'dependencies': [
152             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
153           ],
154         }],
155       ],
156     },
157   ],
158   'conditions' : [
159     ['OS=="android"', {
160       'targets': [
161         {
162           # GN: //components/bookmarks/common/android:bookmarks_java
163           'target_name': 'bookmarks_java',
164           'type': 'none',
165           'dependencies': [
166             '../base/base.gyp:base_java',
167             'bookmark_type_java',
168           ],
169           'variables': {
170             'java_in_dir': 'bookmarks/common/android/java',
171           },
172           'includes': [ '../build/java.gypi' ],
173         },
174         {
175           # GN: //components/bookmarks/common/android:bookmarks_jni_headers
176           'target_name': 'bookmarks_jni_headers',
177           'type': 'none',
178           'sources': [
179             'bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkId.java',
180           ],
181           'variables': {
182             'jni_gen_package': 'components/bookmarks',
183           },
184           'includes': [ '../build/jni_generator.gypi' ],
185         },
186         {
187           # GN: //components/bookmarks/common/android:bookmarks_type_javagen
188           'target_name': 'bookmark_type_java',
189           'type': 'none',
190           'variables': {
191             'source_file': 'bookmarks/common/android/bookmark_type.h',
192           },
193           'includes': [ '../build/android/java_cpp_enum.gypi' ],
194         },
195       ],
196     }]
197   ],