mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
99 lines
2.3 KiB
Plaintext
99 lines
2.3 KiB
Plaintext
# 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/filesystem/public/interfaces",
|
|
"//components/leveldb/public/cpp",
|
|
"//components/leveldb/public/interfaces",
|
|
]
|
|
|
|
deps = [
|
|
"//mojo/common",
|
|
"//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/leveldb/public/interfaces",
|
|
"//mojo/common",
|
|
"//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/filesystem/public/interfaces",
|
|
"//components/leveldb/public/cpp",
|
|
"//components/leveldb/public/interfaces",
|
|
"//mojo/common",
|
|
"//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/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/filesystem:manifest",
|
|
]
|
|
}
|