[Android] Mark EnhancedBookmarksModelTest.testMoveBookmarks as flaky.
[chromium-blink-merge.git] / components / bookmarks.gypi
bloba0bef4a03e2ee5752918f218294cebd3cdd798cb
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         ['toolkit_views==1', {
82           'dependencies': [
83             '<(DEPTH)/ui/views/views.gyp:views',
84           ],
85         }],
86       ],
87     },
88     {
89       # GN version: //components/bookmarks/common
90       'target_name': 'bookmarks_common',
91       'type': 'static_library',
92       'include_dirs': [
93         '..',
94       ],
95       'dependencies': [
96         '../base/base.gyp:base',
97       ],
98       'sources': [
99         'bookmarks/common/bookmark_constants.cc',
100         'bookmarks/common/bookmark_constants.h',
101         'bookmarks/common/bookmark_pref_names.cc',
102         'bookmarks/common/bookmark_pref_names.h',
103       ],
104     },
105     {
106       # GN version: //components/bookmarks/managed
107       'target_name': 'bookmarks_managed',
108       'type': 'static_library',
109       'include_dirs': [
110         '..',
111       ],
112       'dependencies': [
113         'bookmarks_browser',
114         'components_strings.gyp:components_strings',
115         'keyed_service_core',
116       ],
117       'sources': [
118         'bookmarks/managed/managed_bookmark_service.cc',
119         'bookmarks/managed/managed_bookmark_service.h',
120         'bookmarks/managed/managed_bookmark_util.cc',
121         'bookmarks/managed/managed_bookmark_util.h',
122         'bookmarks/managed/managed_bookmarks_tracker.cc',
123         'bookmarks/managed/managed_bookmarks_tracker.h',
124       ],
125     },
126     {
127       # GN version: //components/bookmarks/test
128       'target_name': 'bookmarks_test_support',
129       'type': 'static_library',
130       'include_dirs': [
131         '..',
132       ],
133       'dependencies': [
134         '../base/base.gyp:base',
135         '../testing/gmock.gyp:gmock',
136         '../ui/events/platform/events_platform.gyp:events_platform',
137         '../url/url.gyp:url_lib',
138         'bookmarks_browser',
139       ],
140       'sources': [
141         'bookmarks/test/bookmark_test_helpers.cc',
142         'bookmarks/test/bookmark_test_helpers.h',
143         'bookmarks/test/mock_bookmark_model_observer.cc',
144         'bookmarks/test/mock_bookmark_model_observer.h',
145         'bookmarks/test/test_bookmark_client.cc',
146         'bookmarks/test/test_bookmark_client.h',
147       ],
148       'conditions': [
149         ['use_x11==1', {
150           'dependencies': [
151             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
152           ],
153         }],
154       ],
155     },
156   ],
157   'conditions' : [
158     ['OS=="android"', {
159       'targets': [
160         {
161           # GN: //components/bookmarks/common/android:bookmarks_java
162           'target_name': 'bookmarks_java',
163           'type': 'none',
164           'dependencies': [
165             '../base/base.gyp:base_java',
166             'bookmark_type_java',
167           ],
168           'variables': {
169             'java_in_dir': 'bookmarks/common/android/java',
170           },
171           'includes': [ '../build/java.gypi' ],
172         },
173         {
174           # GN: //components/bookmarks/common/android:bookmarks_jni_headers
175           'target_name': 'bookmarks_jni_headers',
176           'type': 'none',
177           'sources': [
178             'bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkId.java',
179           ],
180           'variables': {
181             'jni_gen_package': 'components/bookmarks',
182           },
183           'includes': [ '../build/jni_generator.gypi' ],
184         },
185         {
186           # GN: //components/bookmarks/common/android:bookmarks_type_javagen
187           'target_name': 'bookmark_type_java',
188           'type': 'none',
189           'variables': {
190             'source_file': 'bookmarks/common/android/bookmark_type.h',
191           },
192           'includes': [ '../build/android/java_cpp_enum.gypi' ],
193         },
194       ],
195     }]
196   ],