Add GCMChannelStatusSyncer to schedule requests and enable/disable GCM
[chromium-blink-merge.git] / components / enhanced_bookmarks.gypi
blob36e065aee255bba7e06ef4a5abe90c842a3fa01a
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': 'enhanced_bookmarks',
9       'type': 'static_library',
10       'include_dirs': [
11         '..',
12       ],
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../google_apis/google_apis.gyp:google_apis',
16         '../net/net.gyp:net',
17         '../sql/sql.gyp:sql',
18         '../ui/gfx/gfx.gyp:gfx',
19         '../url/url.gyp:url_lib',
20         'bookmarks_browser',
21         'enhanced_bookmarks_proto',
22         'keyed_service_core',
23         'signin_core_browser',
24       ],
25       'sources': [
26         'enhanced_bookmarks/bookmark_image_service.cc',
27         'enhanced_bookmarks/bookmark_image_service.h',
28         'enhanced_bookmarks/bookmark_server_search_service.cc',
29         'enhanced_bookmarks/bookmark_server_search_service.h',
30         'enhanced_bookmarks/bookmark_server_service.cc',
31         'enhanced_bookmarks/bookmark_server_service.h',
32         'enhanced_bookmarks/enhanced_bookmark_model.cc',
33         'enhanced_bookmarks/enhanced_bookmark_model.h',
34         'enhanced_bookmarks/enhanced_bookmark_utils.cc',
35         'enhanced_bookmarks/enhanced_bookmark_utils.h',
36         'enhanced_bookmarks/image_store.cc',
37         'enhanced_bookmarks/image_store.h',
38         'enhanced_bookmarks/image_store_util.cc',
39         'enhanced_bookmarks/image_store_util.h',
40         'enhanced_bookmarks/image_store_util_ios.mm',
41         'enhanced_bookmarks/item_position.cc',
42         'enhanced_bookmarks/item_position.h',
43         'enhanced_bookmarks/metadata_accessor.cc',
44         'enhanced_bookmarks/metadata_accessor.h',
45         'enhanced_bookmarks/persistent_image_store.cc',
46         'enhanced_bookmarks/persistent_image_store.h',
47       ],
48       'conditions': [
49         ['OS=="android"', {
50           'sources': [
51             'enhanced_bookmarks/android/component_jni_registrar.cc',
52             'enhanced_bookmarks/android/component_jni_registrar.h',
53             'enhanced_bookmarks/android/enhanced_bookmarks_bridge.cc',
54             'enhanced_bookmarks/android/enhanced_bookmarks_bridge.h',
55           ],
56           'dependencies': [
57             'enhanced_bookmarks_jni_headers',
58           ],
59         }],
60         ['OS=="ios"', {
61           'sources!': [
62             'enhanced_bookmarks/image_store_util.cc',
63           ],
64         }],
65       ],
66     },
67     {
68       'target_name': 'enhanced_bookmarks_test_support',
69       'type': 'static_library',
70       'include_dirs': [
71         '..',
72       ],
73       'dependencies': [
74         '../testing/gtest.gyp:gtest',
75         'enhanced_bookmarks',
76       ],
77       'sources': [
78         'enhanced_bookmarks/test_image_store.cc',
79         'enhanced_bookmarks/test_image_store.h',
80       ],
81     },
82     {
83       'target_name': 'enhanced_bookmarks_proto',
84       'type': 'static_library',
85       'sources': [
86         'enhanced_bookmarks/proto/metadata.proto',
87         'enhanced_bookmarks/proto/search.proto',
88       ],
89       'variables': {
90         'proto_in_dir': './enhanced_bookmarks/proto',
91         'proto_out_dir': 'components/enhanced_bookmarks/proto',
92       },
93       'includes': [ '../build/protoc.gypi' ],
94     },
95   ],
96   'conditions' : [
97     ['OS=="android"', {
98       'targets': [
99         {
100           'target_name': 'enhanced_bookmarks_java',
101           'type': 'none',
102           'dependencies': [
103             'components.gyp:bookmarks_java'
104           ],
105           'variables': {
106             'java_in_dir': 'enhanced_bookmarks/android/java',
107           },
108           'includes': [ '../build/java.gypi' ],
109         },
110         {
111           'target_name': 'enhanced_bookmarks_jni_headers',
112           'type': 'none',
113           'sources': [
114             'enhanced_bookmarks/android/java/src/org/chromium/components/enhancedbookmarks/EnhancedBookmarksBridge.java',
115           ],
116           'variables': {
117             'jni_gen_package': 'enhanced_bookmarks',
118           },
119           'includes': [ '../build/jni_generator.gypi' ],
120         },
121       ],
122     }]
123   ],