Temporarily disables metric reporting from service process on MAC.
[chromium-blink-merge.git] / components / enhanced_bookmarks.gypi
blob719529f4c1f14d19746c0f93005c2f8bf09e2c50
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_model_observer.h',
35         'enhanced_bookmarks/enhanced_bookmark_utils.cc',
36         'enhanced_bookmarks/enhanced_bookmark_utils.h',
37         'enhanced_bookmarks/image_store.cc',
38         'enhanced_bookmarks/image_store.h',
39         'enhanced_bookmarks/image_store_util.cc',
40         'enhanced_bookmarks/image_store_util.h',
41         'enhanced_bookmarks/image_store_util_ios.mm',
42         'enhanced_bookmarks/item_position.cc',
43         'enhanced_bookmarks/item_position.h',
44         'enhanced_bookmarks/metadata_accessor.cc',
45         'enhanced_bookmarks/metadata_accessor.h',
46         'enhanced_bookmarks/persistent_image_store.cc',
47         'enhanced_bookmarks/persistent_image_store.h',
48       ],
49       'conditions': [
50         ['OS=="android"', {
51           'sources': [
52             'enhanced_bookmarks/android/component_jni_registrar.cc',
53             'enhanced_bookmarks/android/component_jni_registrar.h',
54             'enhanced_bookmarks/android/enhanced_bookmarks_bridge.cc',
55             'enhanced_bookmarks/android/enhanced_bookmarks_bridge.h',
56           ],
57           'dependencies': [
58             'enhanced_bookmarks_jni_headers',
59           ],
60         }],
61         ['OS=="ios"', {
62           'sources!': [
63             'enhanced_bookmarks/image_store_util.cc',
64           ],
65         }],
66       ],
67     },
68     {
69       'target_name': 'enhanced_bookmarks_test_support',
70       'type': 'static_library',
71       'include_dirs': [
72         '..',
73       ],
74       'dependencies': [
75         '../testing/gtest.gyp:gtest',
76         'enhanced_bookmarks',
77       ],
78       'sources': [
79         'enhanced_bookmarks/test_image_store.cc',
80         'enhanced_bookmarks/test_image_store.h',
81       ],
82     },
83     {
84       'target_name': 'enhanced_bookmarks_proto',
85       'type': 'static_library',
86       'sources': [
87         'enhanced_bookmarks/proto/metadata.proto',
88         'enhanced_bookmarks/proto/search.proto',
89       ],
90       'variables': {
91         'proto_in_dir': './enhanced_bookmarks/proto',
92         'proto_out_dir': 'components/enhanced_bookmarks/proto',
93       },
94       'includes': [ '../build/protoc.gypi' ],
95     },
96   ],
97   'conditions' : [
98     ['OS=="android"', {
99       'targets': [
100         {
101           'target_name': 'enhanced_bookmarks_java',
102           'type': 'none',
103           'dependencies': [
104             'components.gyp:bookmarks_java'
105           ],
106           'variables': {
107             'java_in_dir': 'enhanced_bookmarks/android/java',
108           },
109           'includes': [ '../build/java.gypi' ],
110         },
111         {
112           'target_name': 'enhanced_bookmarks_jni_headers',
113           'type': 'none',
114           'sources': [
115             'enhanced_bookmarks/android/java/src/org/chromium/components/enhancedbookmarks/EnhancedBookmarksBridge.java',
116           ],
117           'variables': {
118             'jni_gen_package': 'enhanced_bookmarks',
119           },
120           'includes': [ '../build/jni_generator.gypi' ],
121         },
122       ],
123     }]
124   ],