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