Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / components / sessions.gypi
blobff6e4bce41b38dbd0a3bd6c44c19f2992f7f77aa
1 # Copyright 2013 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   'variables': {
7     # Core sources shared by sessions_content and sessions_ios. These can't
8     # be a separate shared library since one symbol is implemented higher up in
9     # the sessions_content/ios layer.
10     'sessions_core_sources': [
11       'sessions/base_session_service.cc',
12       'sessions/base_session_service.h',
13       'sessions/base_session_service_commands.cc',
14       'sessions/base_session_service_commands.h',
15       'sessions/base_session_service_delegate.h',
16       'sessions/core/serialized_navigation_driver.h',
17       'sessions/core/session_constants.cc',
18       'sessions/core/session_constants.h',
19       'sessions/core/tab_restore_service_client.h',
20       'sessions/serialized_navigation_entry.cc',
21       'sessions/serialized_navigation_entry.h',
22       'sessions/session_backend.cc',
23       'sessions/session_backend.h',
24       'sessions/session_command.cc',
25       'sessions/session_command.h',
26       'sessions/session_id.cc',
27       'sessions/session_id.h',
28       'sessions/session_service_commands.cc',
29       'sessions/session_service_commands.h',
30       'sessions/session_types.cc',
31       'sessions/session_types.h',
32     ],
33   },
34   'targets': [
35     {
36       # GN version: //components/sessions:test_support
37       'target_name': 'sessions_test_support',
38       'type': 'static_library',
39       'dependencies': [
40         '../skia/skia.gyp:skia',
41         '../sync/sync.gyp:sync',
42         '../testing/gtest.gyp:gtest',
43       ],
44       'include_dirs': [
45         '..',
46       ],
47       'sources': [
48         # Note: sources list duplicated in GN build.
49         'sessions/serialized_navigation_entry_test_helper.cc',
50         'sessions/serialized_navigation_entry_test_helper.h',
51       ],
52       'conditions': [
53         ['OS!="ios" and OS!="android"', {
54           'sources': [
55             'sessions/base_session_service_test_helper.cc',
56             'sessions/base_session_service_test_helper.h',
57            ],
58         }],
59       ],
60     },
61   ],
63   # Platform-specific targets.
64   'conditions': [
65     ['OS!="ios"', {
66       'targets': [
67         {
68           # GN version: //components/sessions
69           'target_name': 'sessions_content',
70           'type': '<(component)',
71           'dependencies': [
72             '../base/base.gyp:base',
73             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
74             '../content/content.gyp:content_browser',
75             '../skia/skia.gyp:skia',
76             '../sync/sync.gyp:sync',
77             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
78             '../ui/base/ui_base.gyp:ui_base',
79             '../ui/gfx/gfx.gyp:gfx_geometry',
80             '../url/url.gyp:url_lib',
81           ],
82           'include_dirs': [
83             '..',
84           ],
85           'defines': [
86             'SESSIONS_IMPLEMENTATION',
87           ],
88           'sources': [
89             # Note: sources list duplicated in GN build.
90             '<@(sessions_core_sources)',
92             'sessions/content/content_serialized_navigation_builder.cc',
93             'sessions/content/content_serialized_navigation_builder.h',
94             'sessions/content/content_serialized_navigation_driver.cc',
95             'sessions/content/content_serialized_navigation_driver.h',
96           ],
97         },
98       ],
99     }, {  # OS==ios
100       'targets': [
101         {
102           'target_name': 'sessions_ios',
103           'type': 'static_library',
104           'dependencies': [
105             '../base/base.gyp:base',
106             '../ios/web/ios_web.gyp:ios_web',
107             '../sync/sync.gyp:sync',
108             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
109             '../ui/base/ui_base.gyp:ui_base',
110             '../ui/gfx/gfx.gyp:gfx_geometry',
111             '../url/url.gyp:url_lib',
112           ],
113           'include_dirs': [
114             '..',
115           ],
116           'defines': [
117             'SESSIONS_IMPLEMENTATION',
118           ],
119           'sources': [
120             '<@(sessions_core_sources)',
122             'sessions/ios/ios_serialized_navigation_builder.cc',
123             'sessions/ios/ios_serialized_navigation_builder.h',
124             'sessions/ios/ios_serialized_navigation_driver.cc',
125             'sessions/ios/ios_serialized_navigation_driver.h',
126           ],
127         },
128       ],
129     }],
130   ],