Roll src/third_party/WebKit c63b89c:29324ab (svn 202546:202547)
[chromium-blink-merge.git] / components / offline_pages / BUILD.gn
blob445d948a3df8749289e4000a7c5c99a591273d2f
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/offlinepages/DeletePageResult.java",
59       "org/chromium/components/offlinepages/SavePageResult.java",
60     ]
61   }