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.
9 # TODO(rohitrao): We are including these sources directly into each
10 # individual target in order to avoid the complications associated with
11 # making a separate sessions_core target. The files in sessions/core
12 # declare a static function that they do not define, which means that a
13 # sessions_core target would not link as a shared_library. It would also be
14 # unsuitable as a static_library because it would be linked into multiple
15 # shared libraries. Revisit this setup if necessary.
16 'sessions_core_sources': [
17 'sessions/base_session_service.cc',
18 'sessions/base_session_service.h',
19 'sessions/base_session_service_commands.cc',
20 'sessions/base_session_service_commands.h',
21 'sessions/base_session_service_delegate.h',
22 'sessions/core/serialized_navigation_driver.h',
23 'sessions/serialized_navigation_entry.cc',
24 'sessions/serialized_navigation_entry.h',
25 'sessions/session_backend.cc',
26 'sessions/session_backend.h',
27 'sessions/session_command.cc',
28 'sessions/session_command.h',
29 'sessions/session_id.cc',
30 'sessions/session_id.h',
31 'sessions/session_service_commands.cc',
32 'sessions/session_service_commands.h',
33 'sessions/session_types.cc',
34 'sessions/session_types.h',
39 # GN version: //components/sessions:test_support
40 'target_name': 'sessions_test_support',
41 'type': 'static_library',
42 'defines!': ['SESSIONS_IMPLEMENTATION'],
44 '../skia/skia.gyp:skia',
45 '../sync/sync.gyp:sync',
46 '../testing/gtest.gyp:gtest',
52 # Note: sources list duplicated in GN build.
53 'sessions/serialized_navigation_entry_test_helper.cc',
54 'sessions/serialized_navigation_entry_test_helper.h',
57 ['OS!="ios" and OS!="android"', {
59 'sessions/base_session_service_test_helper.cc',
60 'sessions/base_session_service_test_helper.h',
61 'sessions/session_backend.cc',
62 'sessions/session_backend.h',
69 # Platform-specific targets.
74 # GN version: //components/sessions:sessions_content
75 'target_name': 'sessions_content',
76 'type': '<(component)',
78 '../base/base.gyp:base',
79 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
80 '../content/content.gyp:content_browser',
81 '../skia/skia.gyp:skia',
82 '../sync/sync.gyp:sync',
83 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
84 '../ui/base/ui_base.gyp:ui_base',
85 '../ui/gfx/gfx.gyp:gfx_geometry',
86 '../url/url.gyp:url_lib',
92 'SESSIONS_IMPLEMENTATION',
95 # Note: sources list duplicated in GN build.
96 '<@(sessions_core_sources)',
98 'sessions/content/content_serialized_navigation_builder.cc',
99 'sessions/content/content_serialized_navigation_builder.h',
100 'sessions/content/content_serialized_navigation_driver.cc',
101 'sessions/content/content_serialized_navigation_driver.h',
108 'target_name': 'sessions_ios',
109 'type': 'static_library',
111 '../base/base.gyp:base',
112 '../ios/web/ios_web.gyp:ios_web',
113 '../sync/sync.gyp:sync',
114 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
115 '../ui/base/ui_base.gyp:ui_base',
116 '../ui/gfx/gfx.gyp:gfx_geometry',
117 '../url/url.gyp:url_lib',
123 'SESSIONS_IMPLEMENTATION',
126 '<@(sessions_core_sources)',
128 'sessions/ios/ios_serialized_navigation_builder.cc',
129 'sessions/ios/ios_serialized_navigation_builder.h',
130 'sessions/ios/ios_serialized_navigation_driver.cc',
131 'sessions/ios/ios_serialized_navigation_driver.h',