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" ]
28 "//base/third_party/dynamic_annotations",
29 "//content/public/browser",
35 source_set("sessions") {
37 "ios/ios_serialized_navigation_builder.cc",
38 "ios/ios_serialized_navigation_builder.h",
39 "ios/ios_serialized_navigation_driver.cc",
40 "ios/ios_serialized_navigation_driver.h",
47 # '../ios/web/ios_web.gyp:ios_web', TODO(GYP) iOS.
52 # Sources shared between the content and iOS implementations.
53 source_set("shared") {
57 "base_session_service.cc",
58 "base_session_service.h",
59 "base_session_service_commands.cc",
60 "base_session_service_commands.h",
61 "base_session_service_delegate.h",
62 "core/serialized_navigation_driver.h",
63 "serialized_navigation_entry.cc",
64 "serialized_navigation_entry.h",
71 "session_service_commands.cc",
72 "session_service_commands.h",
77 configs += [ ":implementation" ]
84 "//third_party/protobuf:protobuf_lite",
91 source_set("test_support") {
94 "serialized_navigation_entry_test_helper.cc",
95 "serialized_navigation_entry_test_helper.h",
107 if (!is_android && !is_ios) {
109 "base_session_service_test_helper.cc",
110 "base_session_service_test_helper.h",
115 if (!is_ios && !is_android) {
116 source_set("unit_tests") {
119 "session_backend_unittest.cc",
120 "session_types_unittest.cc",
124 "//base/test:test_support",
126 "//third_party/protobuf:protobuf_lite",