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.
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',
36 # GN version: //components/sessions:test_support
37 'target_name': 'sessions_test_support',
38 'type': 'static_library',
40 '../skia/skia.gyp:skia',
41 '../sync/sync.gyp:sync',
42 '../testing/gtest.gyp:gtest',
48 # Note: sources list duplicated in GN build.
49 'sessions/serialized_navigation_entry_test_helper.cc',
50 'sessions/serialized_navigation_entry_test_helper.h',
53 ['OS!="ios" and OS!="android"', {
55 'sessions/base_session_service_test_helper.cc',
56 'sessions/base_session_service_test_helper.h',
63 # Platform-specific targets.
68 # GN version: //components/sessions
69 'target_name': 'sessions_content',
70 'type': '<(component)',
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',
86 'SESSIONS_IMPLEMENTATION',
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',
102 'target_name': 'sessions_ios',
103 'type': 'static_library',
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',
117 'SESSIONS_IMPLEMENTATION',
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',