1 # Copyright 2014 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 import("//build/config/android/config.gni")
9 config("implementation") {
10 defines = [ "SESSIONS_IMPLEMENTATION" ]
14 # GYP version: components/sessions.gypi:sessions_content
15 component("sessions") {
17 "content/content_serialized_navigation_builder.cc",
18 "content/content_serialized_navigation_builder.h",
19 "content/content_serialized_navigation_driver.cc",
20 "content/content_serialized_navigation_driver.h",
23 configs += [ ":implementation" ]
32 "//base/third_party/dynamic_annotations",
33 "//content/public/browser",
39 source_set("sessions") {
41 "ios/ios_serialized_navigation_builder.cc",
42 "ios/ios_serialized_navigation_builder.h",
43 "ios/ios_serialized_navigation_driver.cc",
44 "ios/ios_serialized_navigation_driver.h",
55 # '../ios/web/ios_web.gyp:ios_web', TODO(GYP) iOS.
60 # Sources shared between the content and iOS implementations.
61 source_set("shared") {
65 "base_session_service.cc",
66 "base_session_service.h",
67 "base_session_service_commands.cc",
68 "base_session_service_commands.h",
69 "base_session_service_delegate.h",
70 "core/serialized_navigation_driver.h",
71 "serialized_navigation_entry.cc",
72 "serialized_navigation_entry.h",
79 "session_service_commands.cc",
80 "session_service_commands.h",
85 configs += [ ":implementation" ]
92 "//third_party/protobuf:protobuf_lite",
99 source_set("test_support") {
102 "serialized_navigation_entry_test_helper.cc",
103 "serialized_navigation_entry_test_helper.h",
115 if (!is_android && !is_ios) {
117 "base_session_service_test_helper.cc",
118 "base_session_service_test_helper.h",
123 if (!is_ios && !is_android) {
124 source_set("unit_tests") {
127 "session_backend_unittest.cc",
128 "session_types_unittest.cc",
132 "//base/test:test_support",
134 "//third_party/protobuf:protobuf_lite",