Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / bookmarks.gypi
blob9d70d3350c9a98016470928d5f2d3b8a007e8737
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       'target_name': 'bookmarks_browser',
9       'type': 'static_library',
10       'include_dirs': [
11         '..',
12       ],
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../net/net.gyp:net',
16         '../third_party/icu/icu.gyp:icuuc',
17         '../ui/base/ui_base.gyp:ui_base',
18         '../ui/gfx/gfx.gyp:gfx',
19         '../url/url.gyp:url_lib',
20         'bookmarks_common',
21         'components_strings.gyp:components_strings',
22         'favicon_base',
23         'keyed_service_core',
24         'pref_registry',
25         'query_parser',
26         'startup_metric_utils',
27       ],
28       'sources': [
29         'bookmarks/browser/base_bookmark_model_observer.cc',
30         'bookmarks/browser/base_bookmark_model_observer.h',
31         'bookmarks/browser/bookmark_client.cc',
32         'bookmarks/browser/bookmark_client.h',
33         'bookmarks/browser/bookmark_codec.cc',
34         'bookmarks/browser/bookmark_codec.h',
35         'bookmarks/browser/bookmark_expanded_state_tracker.cc',
36         'bookmarks/browser/bookmark_expanded_state_tracker.h',
37         'bookmarks/browser/bookmark_index.cc',
38         'bookmarks/browser/bookmark_index.h',
39         'bookmarks/browser/bookmark_match.cc',
40         'bookmarks/browser/bookmark_match.h',
41         'bookmarks/browser/bookmark_model.cc',
42         'bookmarks/browser/bookmark_model.h',
43         'bookmarks/browser/bookmark_model_observer.h',
44         'bookmarks/browser/bookmark_node.cc',
45         'bookmarks/browser/bookmark_node.h',
46         'bookmarks/browser/bookmark_node_data.cc',
47         'bookmarks/browser/bookmark_node_data.h',
48         'bookmarks/browser/bookmark_node_data_ios.cc',
49         'bookmarks/browser/bookmark_node_data_mac.cc',
50         'bookmarks/browser/bookmark_node_data_views.cc',
51         'bookmarks/browser/bookmark_pasteboard_helper_mac.h',
52         'bookmarks/browser/bookmark_pasteboard_helper_mac.mm',
53         'bookmarks/browser/bookmark_storage.cc',
54         'bookmarks/browser/bookmark_storage.h',
55         'bookmarks/browser/bookmark_utils.cc',
56         'bookmarks/browser/bookmark_utils.h',
57         'bookmarks/browser/scoped_group_bookmark_actions.cc',
58         'bookmarks/browser/scoped_group_bookmark_actions.h',
59       ],
60       'conditions': [
61         ['OS == "android"', {
62           'dependencies': [
63             'bookmarks_jni_headers',
64           ],
65           'sources' : [
66             'bookmarks/common/android/bookmark_id.cc',
67             'bookmarks/common/android/bookmark_id.h',
68             'bookmarks/common/android/bookmark_type_list.h',
69             'bookmarks/common/android/component_jni_registrar.cc',
70             'bookmarks/common/android/component_jni_registrar.h',
71           ],
72         }],
73       ],
74     },
75     {
76       'target_name': 'bookmarks_common',
77       'type': 'static_library',
78       'include_dirs': [
79         '..',
80       ],
81       'dependencies': [
82         '../base/base.gyp:base',
83       ],
84       'sources': [
85         'bookmarks/common/bookmark_constants.cc',
86         'bookmarks/common/bookmark_constants.h',
87         'bookmarks/common/bookmark_pref_names.cc',
88         'bookmarks/common/bookmark_pref_names.h',
89       ],
90     },
91     {
92       'target_name': 'bookmarks_test_support',
93       'type': 'static_library',
94       'include_dirs': [
95         '..',
96       ],
97       'dependencies': [
98         '../base/base.gyp:base',
99         '../testing/gmock.gyp:gmock',
100         '../ui/events/platform/events_platform.gyp:events_platform',
101         '../url/url.gyp:url_lib',
102         'bookmarks_browser',
103       ],
104       'sources': [
105         'bookmarks/test/bookmark_test_helpers.cc',
106         'bookmarks/test/bookmark_test_helpers.h',
107         'bookmarks/test/mock_bookmark_model_observer.cc',
108         'bookmarks/test/mock_bookmark_model_observer.h',
109         'bookmarks/test/test_bookmark_client.cc',
110         'bookmarks/test/test_bookmark_client.h',
111       ],
112       'conditions': [
113         ['use_x11==1', {
114           'dependencies': [
115             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
116           ],
117         }],
118       ],
119     },
120   ],
121   'conditions' : [
122     ['OS=="android"', {
123       'targets': [
124         {
125           'target_name': 'bookmarks_java',
126           'type': 'none',
127           'dependencies': [
128             '../base/base.gyp:base_java',
129             'bookmark_type_java',
130           ],
131           'variables': {
132             'java_in_dir': 'bookmarks/common/android/java',
133           },
134           'includes': [ '../build/java.gypi' ],
135         },
136         {
137           'target_name': 'bookmarks_jni_headers',
138           'type': 'none',
139           'sources': [
140             'bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkId.java',
141           ],
142           'variables': {
143             'jni_gen_package': 'components/bookmarks',
144           },
145           'includes': [ '../build/jni_generator.gypi' ],
146         },
147         {
148           'target_name': 'bookmark_type_java',
149           'type': 'none',
150           'sources': [
151             'bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkType.template',
152           ],
153           'variables': {
154             'package_name': 'org/chromium/components/bookmarks',
155             'template_deps': ['bookmarks/common/android/bookmark_type_list.h'],
156           },
157           'includes': [ '../build/android/java_cpp_template.gypi' ],
158         },
159       ],
160     }]
161   ],