naiveproxy/components/services/leveldb/BUILD.gn

96 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2018-12-10 05:59:24 +03:00
# Copyright 2016 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.
import("//services/catalog/public/tools/catalog.gni")
import("//services/service_manager/public/cpp/service.gni")
import("//services/service_manager/public/service_manifest.gni")
import("//services/service_manager/public/tools/test/service_test.gni")
import("//testing/test.gni")
static_library("lib") {
sources = [
"env_mojo.cc",
"env_mojo.h",
"leveldb_database_impl.cc",
"leveldb_database_impl.h",
"leveldb_mojo_proxy.cc",
"leveldb_mojo_proxy.h",
"leveldb_service_impl.cc",
"leveldb_service_impl.h",
]
public_deps = [
"//components/services/filesystem/public/interfaces",
"//components/services/leveldb/public/cpp",
"//components/services/leveldb/public/interfaces",
]
deps = [
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
"//third_party/leveldatabase",
]
}
service("leveldb") {
sources = [
"leveldb_app.cc",
"leveldb_app.h",
"main.cc",
]
deps = [
":lib",
"//components/services/leveldb/public/interfaces",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
]
}
service_manifest("manifest") {
name = "leveldb"
source = "manifest.json"
}
service_test("leveldb_service_unittests") {
sources = [
"leveldb_mojo_unittest.cc",
"leveldb_service_unittest.cc",
"remote_iterator_unittest.cc",
]
catalog = ":leveldb_service_unittests_catalog"
deps = [
"//base",
"//components/services/filesystem/public/interfaces",
"//components/services/leveldb/public/cpp",
"//components/services/leveldb/public/interfaces",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp:service_test_support",
"//third_party/leveldatabase",
]
data_deps = [
":leveldb",
"//components/services/filesystem:filesystem",
]
}
service_manifest("test_manifest") {
name = "leveldb_service_unittests"
source = "test_manifest.json"
}
catalog("leveldb_service_unittests_catalog") {
embedded_services = [ ":test_manifest" ]
standalone_services = [
":manifest",
"//components/services/filesystem:manifest",
]
}