Fix layout of the Connection Tab of the Origin Info Bubble.
[chromium-blink-merge.git] / components / sessions.gypi
blob53beb194db2058cf315570d134c42ef44c7f7269
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/live_tab.h',
17       'sessions/core/persistent_tab_restore_service.cc',
18       'sessions/core/persistent_tab_restore_service.h',
19       'sessions/core/serialized_navigation_driver.h',
20       'sessions/core/session_constants.cc',
21       'sessions/core/session_constants.h',
22       'sessions/core/tab_restore_service.cc',
23       'sessions/core/tab_restore_service.h',
24       'sessions/core/tab_restore_service_client.cc',
25       'sessions/core/tab_restore_service_client.h',
26       'sessions/core/tab_restore_service_helper.cc',
27       'sessions/core/tab_restore_service_helper.h',
28       'sessions/core/tab_restore_service_delegate.h',
29       'sessions/core/tab_restore_service_observer.h',
30       'sessions/serialized_navigation_entry.cc',
31       'sessions/serialized_navigation_entry.h',
32       'sessions/session_backend.cc',
33       'sessions/session_backend.h',
34       'sessions/session_command.cc',
35       'sessions/session_command.h',
36       'sessions/session_id.cc',
37       'sessions/session_id.h',
38       'sessions/session_service_commands.cc',
39       'sessions/session_service_commands.h',
40       'sessions/session_types.cc',
41       'sessions/session_types.h',
42     ],
43   },
44   'targets': [
45     {
46       # GN version: //components/sessions:test_support
47       'target_name': 'sessions_test_support',
48       'type': 'static_library',
49       'dependencies': [
50         '../skia/skia.gyp:skia',
51         '../sync/sync.gyp:sync',
52         '../testing/gtest.gyp:gtest',
53       ],
54       'include_dirs': [
55         '..',
56       ],
57       'sources': [
58         # Note: sources list duplicated in GN build.
59         'sessions/serialized_navigation_entry_test_helper.cc',
60         'sessions/serialized_navigation_entry_test_helper.h',
61       ],
62       'conditions': [
63         ['OS!="ios" and OS!="android"', {
64           'sources': [
65             'sessions/base_session_service_test_helper.cc',
66             'sessions/base_session_service_test_helper.h',
67            ],
68         }],
69       ],
70     },
71   ],
73   # Platform-specific targets.
74   'conditions': [
75     ['OS!="ios"', {
76       'targets': [
77         {
78           # GN version: //components/sessions
79           'target_name': 'sessions_content',
80           'type': '<(component)',
81           'dependencies': [
82             '../base/base.gyp:base',
83             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
84             '../content/content.gyp:content_browser',
85             '../skia/skia.gyp:skia',
86             '../sync/sync.gyp:sync',
87             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
88             '../ui/base/ui_base.gyp:ui_base',
89             '../ui/gfx/gfx.gyp:gfx_geometry',
90             '../url/url.gyp:url_lib',
91             'keyed_service_core',
92           ],
93           'include_dirs': [
94             '..',
95           ],
96           'defines': [
97             'SESSIONS_IMPLEMENTATION',
98           ],
99           'sources': [
100             # Note: sources list duplicated in GN build.
101             '<@(sessions_core_sources)',
103             'sessions/content/content_live_tab.cc',
104             'sessions/content/content_live_tab.h',
105             'sessions/content/content_serialized_navigation_builder.cc',
106             'sessions/content/content_serialized_navigation_builder.h',
107             'sessions/content/content_serialized_navigation_driver.cc',
108             'sessions/content/content_serialized_navigation_driver.h',
109             'sessions/content/content_tab_client_data.cc',
110             'sessions/content/content_tab_client_data.h',
111           ],
112           'conditions': [
113             ['OS=="android"', {
114              'sources': [
115                'sessions/core/in_memory_tab_restore_service.cc',
116                'sessions/core/in_memory_tab_restore_service.h',
117               ],
118               'sources!': [
119                'sessions/core/persistent_tab_restore_service.cc',
120               ],
121             },
122           ],
123         ],
124       }],
125     }, {  # OS==ios
126       'targets': [
127         {
128           'target_name': 'sessions_ios',
129           'type': 'static_library',
130           'dependencies': [
131             '../base/base.gyp:base',
132             '../ios/web/ios_web.gyp:ios_web',
133             '../sync/sync.gyp:sync',
134             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
135             '../ui/base/ui_base.gyp:ui_base',
136             '../ui/gfx/gfx.gyp:gfx_geometry',
137             '../url/url.gyp:url_lib',
138             'keyed_service_core',
139           ],
140           'include_dirs': [
141             '..',
142           ],
143           'defines': [
144             'SESSIONS_IMPLEMENTATION',
145           ],
146           'sources': [
147             '<@(sessions_core_sources)',
149             'sessions/ios/ios_serialized_navigation_builder.cc',
150             'sessions/ios/ios_serialized_navigation_builder.h',
151             'sessions/ios/ios_serialized_navigation_driver.cc',
152             'sessions/ios/ios_serialized_navigation_driver.h',
153           ],
154         },
155       ],
156     }],
157   ],