1 # Copyright (c) 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/core/serialized_navigation_driver.h',
18 'sessions/serialized_navigation_entry.cc',
19 'sessions/serialized_navigation_entry.h',
20 'sessions/session_id.cc',
21 'sessions/session_id.h',
26 # GN version: //components/sessions:test_support
27 'target_name': 'sessions_test_support',
28 'type': 'static_library',
29 'defines!': ['SESSIONS_IMPLEMENTATION'],
31 '../skia/skia.gyp:skia',
32 '../testing/gtest.gyp:gtest',
38 # Note: sources list duplicated in GN build.
39 'sessions/serialized_navigation_entry_test_helper.cc',
40 'sessions/serialized_navigation_entry_test_helper.h',
43 ['android_webview_build == 0', {
45 '../sync/sync.gyp:sync',
52 # Platform-specific targets.
57 # GN version: //components/sessions:sessions_content
58 'target_name': 'sessions_content',
59 'type': '<(component)',
61 '../base/base.gyp:base',
62 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
63 '../content/content.gyp:content_browser',
64 '../skia/skia.gyp:skia',
65 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
66 '../ui/base/ui_base.gyp:ui_base',
67 '../url/url.gyp:url_lib',
73 'SESSIONS_IMPLEMENTATION',
76 # Note: sources list duplicated in GN build.
77 '<@(sessions_core_sources)',
79 'sessions/content/content_serialized_navigation_builder.cc',
80 'sessions/content/content_serialized_navigation_builder.h',
81 'sessions/content/content_serialized_navigation_driver.cc',
82 'sessions/content/content_serialized_navigation_driver.h',
85 ['android_webview_build == 0', {
87 '../sync/sync.gyp:sync',
96 'target_name': 'sessions_ios',
97 'type': 'static_library',
99 '../base/base.gyp:base',
100 '../ios/web/ios_web.gyp:ios_web',
101 '../sync/sync.gyp:sync',
102 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
103 '../ui/base/ui_base.gyp:ui_base',
104 '../url/url.gyp:url_lib',
110 'SESSIONS_IMPLEMENTATION',
113 '<@(sessions_core_sources)',
115 'sessions/ios/ios_serialized_navigation_builder.cc',
116 'sessions/ios/ios_serialized_navigation_builder.h',
117 'sessions/ios/ios_serialized_navigation_driver.cc',
118 'sessions/ios/ios_serialized_navigation_driver.h',