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 # TODO(rohitrao): sessions_core is defined as a source_set because it declares a
10 # static function that it does not define. This prevents it from linking as a
11 # shared_library. It also cannot be a static_library because it will be linked
12 # into multiple shared libraries. Revisit this setup if necessary.
13 source_set("sessions_core") {
15 "base_session_service.cc",
16 "base_session_service.h",
17 "base_session_service_commands.cc",
18 "base_session_service_commands.h",
19 "base_session_service_delegate.h",
20 "core/serialized_navigation_driver.h",
21 "serialized_navigation_entry.cc",
22 "serialized_navigation_entry.h",
29 "session_service_commands.cc",
30 "session_service_commands.h",
35 defines = [ "SESSIONS_IMPLEMENTATION" ]
41 "//third_party/protobuf:protobuf_lite",
48 source_set("test_support") {
51 "serialized_navigation_entry_test_helper.cc",
52 "serialized_navigation_entry_test_helper.h",
62 if (!is_android && !is_ios) {
64 "base_session_service_test_helper.cc",
65 "base_session_service_test_helper.h",
71 component("sessions_content") {
73 "content/content_serialized_navigation_builder.cc",
74 "content/content_serialized_navigation_builder.h",
75 "content/content_serialized_navigation_driver.cc",
76 "content/content_serialized_navigation_driver.h",
79 defines = [ "SESSIONS_IMPLEMENTATION" ]
84 "//base/third_party/dynamic_annotations",
85 "//content/public/browser",
92 if (!is_ios && !is_android) {
93 source_set("unit_tests") {
96 "session_backend_unittest.cc",
97 "session_types_unittest.cc",
101 "//base/test:test_support",
103 "//third_party/protobuf:protobuf_lite",