Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / sessions / BUILD.gn
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.
4
5 if (is_android) {
6   import("//build/config/android/config.gni")
7 }
8
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") {
14   sources = [
15     "core/serialized_navigation_driver.h",
16     "serialized_navigation_entry.cc",
17     "serialized_navigation_entry.h",
18     "session_id.cc",
19     "session_id.h",
20   ]
21
22   defines = [ "SESSIONS_IMPLEMENTATION" ]
23
24   deps = [
25     "//base",
26     "//skia",
27     "//third_party/protobuf:protobuf_lite",
28     "//ui/base",
29     "//url",
30   ]
31
32   if (!is_android || !is_android_webview_build) {
33     deps += [ "//sync" ]
34   }
35 }
36
37 static_library("test_support") {
38   testonly = true
39   sources = [
40     "serialized_navigation_entry_test_helper.cc",
41     "serialized_navigation_entry_test_helper.h",
42   ]
43
44   deps = [
45     "//skia",
46     "//testing/gtest",
47   ]
48
49   if (!is_android || !is_android_webview_build) {
50     deps += [ "//sync" ]
51   }
52 }
53
54 if (!is_ios) {
55   component("sessions_content") {
56     sources = [
57       "content/content_serialized_navigation_builder.cc",
58       "content/content_serialized_navigation_builder.h",
59       "content/content_serialized_navigation_driver.cc",
60       "content/content_serialized_navigation_driver.h",
61     ]
62
63     defines = [ "SESSIONS_IMPLEMENTATION" ]
64
65     deps = [
66       ":sessions_core",
67       "//base",
68       "//base/third_party/dynamic_annotations",
69       "//content/public/browser",
70       "//ui/base",
71       "//url",
72     ]
73   }
74 }