blob: 2884333074911d265c4ae2cc343d8ca6d3d03a9a [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
# GYP: //components/offline_pages.gypi:offline_pages
static_library("offline_pages") {
sources = [
"offline_page_archiver.h",
"offline_page_feature.cc",
"offline_page_feature.h",
"offline_page_item.cc",
"offline_page_item.h",
"offline_page_metadata_store.cc",
"offline_page_metadata_store.h",
"offline_page_metadata_store_impl.cc",
"offline_page_metadata_store_impl.h",
"offline_page_model.cc",
"offline_page_model.h",
"offline_page_switches.cc",
"offline_page_switches.h",
]
deps = [
"//base",
"//components/bookmarks/browser",
"//components/keyed_service/core",
"//components/leveldb_proto",
"//components/offline_pages/proto:offline_pages_proto",
"//net",
"//third_party/leveldatabase",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"offline_page_metadata_store_impl_unittest.cc",
"offline_page_model_unittest.cc",
]
deps = [
":offline_pages",
"//base",
"//components/bookmarks/browser",
"//components/leveldb_proto",
"//components/offline_pages/proto:offline_pages_proto",
"//testing/gtest",
"//url",
]
}
if (is_android) {
java_cpp_enum("offline_pages_enums_java") {
sources = [
"offline_page_model.h",
]
}
}