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" ]
40 "//third_party/protobuf:protobuf_lite",
46 if (!is_android || !is_android_webview_build) {
51 source_set("test_support") {
54 "serialized_navigation_entry_test_helper.cc",
55 "serialized_navigation_entry_test_helper.h",
64 if (!is_android || !is_android_webview_build) {
68 if (!is_android && !is_ios) {
70 "base_session_service_test_helper.cc",
71 "base_session_service_test_helper.h",
77 component("sessions_content") {
79 "content/content_serialized_navigation_builder.cc",
80 "content/content_serialized_navigation_builder.h",
81 "content/content_serialized_navigation_driver.cc",
82 "content/content_serialized_navigation_driver.h",
85 defines = [ "SESSIONS_IMPLEMENTATION" ]
90 "//base/third_party/dynamic_annotations",
91 "//content/public/browser",
98 if (!is_ios && !is_android) {
99 source_set("unit_tests") {
102 "session_backend_unittest.cc",
103 "session_types_unittest.cc",
107 "//base/test:test_support",
109 "//third_party/protobuf:protobuf_lite",