1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
# Core sources shared by sessions_content and sessions_ios.
#
# TODO(rohitrao): We are including these sources directly into each
# individual target in order to avoid the complications associated with
# making a separate sessions_core target. The files in sessions/core
# declare a static function that they do not define, which means that a
# sessions_core target would not link as a shared_library. It would also be
# unsuitable as a static_library because it would be linked into multiple
# shared libraries. Revisit this setup if necessary.
'sessions_core_sources': [
'sessions/base_session_service.cc',
'sessions/base_session_service.h',
'sessions/base_session_service_commands.cc',
'sessions/base_session_service_commands.h',
'sessions/base_session_service_delegate.h',
'sessions/core/serialized_navigation_driver.h',
'sessions/serialized_navigation_entry.cc',
'sessions/serialized_navigation_entry.h',
'sessions/session_backend.cc',
'sessions/session_backend.h',
'sessions/session_command.cc',
'sessions/session_command.h',
'sessions/session_id.cc',
'sessions/session_id.h',
'sessions/session_service_commands.cc',
'sessions/session_service_commands.h',
'sessions/session_types.cc',
'sessions/session_types.h',
],
},
'targets': [
{
# GN version: //components/sessions:test_support
'target_name': 'sessions_test_support',
'type': 'static_library',
'defines!': ['SESSIONS_IMPLEMENTATION'],
'dependencies': [
'../skia/skia.gyp:skia',
'../sync/sync.gyp:sync',
'../testing/gtest.gyp:gtest',
],
'include_dirs': [
'..',
],
'sources': [
# Note: sources list duplicated in GN build.
'sessions/serialized_navigation_entry_test_helper.cc',
'sessions/serialized_navigation_entry_test_helper.h',
],
'conditions': [
['OS!="ios" and OS!="android"', {
'sources': [
'sessions/base_session_service_test_helper.cc',
'sessions/base_session_service_test_helper.h',
'sessions/session_backend.cc',
'sessions/session_backend.h',
]
}],
],
},
],
# Platform-specific targets.
'conditions': [
['OS!="ios"', {
'targets': [
{
# GN version: //components/sessions:sessions_content
'target_name': 'sessions_content',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../content/content.gyp:content_browser',
'../skia/skia.gyp:skia',
'../sync/sync.gyp:sync',
'../third_party/protobuf/protobuf.gyp:protobuf_lite',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../url/url.gyp:url_lib',
],
'include_dirs': [
'..',
],
'defines': [
'SESSIONS_IMPLEMENTATION',
],
'sources': [
# Note: sources list duplicated in GN build.
'<@(sessions_core_sources)',
'sessions/content/content_serialized_navigation_builder.cc',
'sessions/content/content_serialized_navigation_builder.h',
'sessions/content/content_serialized_navigation_driver.cc',
'sessions/content/content_serialized_navigation_driver.h',
],
},
],
}, { # OS==ios
'targets': [
{
'target_name': 'sessions_ios',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../ios/web/ios_web.gyp:ios_web',
'../sync/sync.gyp:sync',
'../third_party/protobuf/protobuf.gyp:protobuf_lite',
'../ui/base/ui_base.gyp:ui_base',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../url/url.gyp:url_lib',
],
'include_dirs': [
'..',
],
'defines': [
'SESSIONS_IMPLEMENTATION',
],
'sources': [
'<@(sessions_core_sources)',
'sessions/ios/ios_serialized_navigation_builder.cc',
'sessions/ios/ios_serialized_navigation_builder.h',
'sessions/ios/ios_serialized_navigation_driver.cc',
'sessions/ios/ios_serialized_navigation_driver.h',
],
},
],
}],
],
}
|