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