Reland of ll WebRTC 9687:9699, Libjingle 9690:9699 (patchset #1 id:1 of https://coder...
[chromium-blink-merge.git] / components / offline_pages / BUILD.gn
blobbd0131555984c41e2ff23b348c5241b82bd2cd3a
1 # Copyright 2015 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.
5 if (is_android) {
6   import("//build/config/android/rules.gni")
9 # GYP: //components/offline_pages.gypi:offline_pages
10 static_library("offline_pages") {
11   sources = [
12     "offline_page_archiver.h",
13     "offline_page_feature.cc",
14     "offline_page_feature.h",
15     "offline_page_item.cc",
16     "offline_page_item.h",
17     "offline_page_metadata_store.cc",
18     "offline_page_metadata_store.h",
19     "offline_page_metadata_store_impl.cc",
20     "offline_page_metadata_store_impl.h",
21     "offline_page_model.cc",
22     "offline_page_model.h",
23     "offline_page_switches.cc",
24     "offline_page_switches.h",
25   ]
27   deps = [
28     "//base",
29     "//components/keyed_service/core",
30     "//components/leveldb_proto",
31     "//components/offline_pages/proto:offline_pages_proto",
32     "//net",
33     "//third_party/leveldatabase",
34     "//url",
35   ]
38 source_set("unit_tests") {
39   testonly = true
40   sources = [
41     "offline_page_metadata_store_impl_unittest.cc",
42     "offline_page_model_unittest.cc",
43   ]
45   deps = [
46     ":offline_pages",
47     "//components/offline_pages/proto:offline_pages_proto",
48     "//testing/gtest",
49   ]
52 if (is_android) {
53   java_cpp_enum("offline_pages_enums_java") {
54     sources = [
55       "offline_page_model.h",
56     ]
57     outputs = [
58       "org/chromium/components/offline_pages/DeletePageResult.java",
59       "org/chromium/components/offline_pages/LoadResult.java",
60       "org/chromium/components/offline_pages/SavePageResult.java",
61     ]
62   }