mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
141 lines
3.7 KiB
Plaintext
141 lines
3.7 KiB
Plaintext
|
# Copyright 2018 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("//chromeos/assistant/assistant.gni")
|
||
|
import("//services/catalog/public/tools/catalog.gni")
|
||
|
import("//services/service_manager/public/cpp/service.gni")
|
||
|
import("//services/service_manager/public/service_manifest.gni")
|
||
|
|
||
|
assert(is_chromeos)
|
||
|
assert(enable_cros_assistant)
|
||
|
|
||
|
source_set("lib") {
|
||
|
sources = [
|
||
|
"assistant_manager_service.h",
|
||
|
"assistant_settings_manager.h",
|
||
|
"fake_assistant_manager_service_impl.cc",
|
||
|
"fake_assistant_manager_service_impl.h",
|
||
|
"fake_assistant_settings_manager_impl.cc",
|
||
|
"fake_assistant_settings_manager_impl.h",
|
||
|
"service.cc",
|
||
|
"service.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//build/util:webkit_version",
|
||
|
"//chromeos",
|
||
|
"//chromeos/assistant:buildflags",
|
||
|
"//chromeos/services/assistant/public/mojom",
|
||
|
"//components/account_id",
|
||
|
"//services/device/public/mojom",
|
||
|
"//services/identity/public/mojom",
|
||
|
"//ui/accessibility:ax_assistant",
|
||
|
]
|
||
|
|
||
|
public_deps = [
|
||
|
"//ash/public/cpp:cpp",
|
||
|
"//mojo/public/cpp/bindings:bindings",
|
||
|
"//services/audio/public/cpp:cpp",
|
||
|
"//services/service_manager/public/cpp:cpp",
|
||
|
]
|
||
|
|
||
|
if (enable_cros_libassistant) {
|
||
|
sources += [
|
||
|
"assistant_manager_service_impl.cc",
|
||
|
"assistant_manager_service_impl.h",
|
||
|
"assistant_settings_manager_impl.cc",
|
||
|
"assistant_settings_manager_impl.h",
|
||
|
"platform/audio_input_provider_impl.cc",
|
||
|
"platform/audio_input_provider_impl.h",
|
||
|
"platform/audio_output_provider_impl.cc",
|
||
|
"platform/audio_output_provider_impl.h",
|
||
|
"platform/file_provider_impl.cc",
|
||
|
"platform/file_provider_impl.h",
|
||
|
"platform/network_provider_impl.cc",
|
||
|
"platform/network_provider_impl.h",
|
||
|
"platform/system_provider_impl.cc",
|
||
|
"platform/system_provider_impl.h",
|
||
|
"platform_api_impl.cc",
|
||
|
"platform_api_impl.h",
|
||
|
"utils.cc",
|
||
|
"utils.h",
|
||
|
]
|
||
|
|
||
|
deps += [
|
||
|
"//chromeos/assistant/internal:build_libassistant",
|
||
|
"//chromeos/assistant/internal/action",
|
||
|
"//chromeos/assistant/internal/proto/google3",
|
||
|
"//libassistant/contrib/core",
|
||
|
"//libassistant/contrib/platform/audio",
|
||
|
"//libassistant/shared/internal_api/c:api_wrappers_for_caller_no_chromium",
|
||
|
"//libassistant/shared/public",
|
||
|
"//libassistant/shared/public:export",
|
||
|
"//ui/base",
|
||
|
]
|
||
|
|
||
|
libs = [ "$root_out_dir/libassistant.so" ]
|
||
|
|
||
|
include_dirs = [
|
||
|
"//libassistant/contrib",
|
||
|
"//libassistant/shared",
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
service_manifest("manifest") {
|
||
|
name = "assistant"
|
||
|
source = "manifest.json"
|
||
|
}
|
||
|
|
||
|
source_set("tests") {
|
||
|
testonly = true
|
||
|
deps = [
|
||
|
":lib",
|
||
|
"//base",
|
||
|
"//base/test:test_support",
|
||
|
"//chromeos",
|
||
|
"//mojo/public/cpp/bindings:bindings",
|
||
|
"//services/identity/public/mojom",
|
||
|
"//services/service_manager/public/cpp",
|
||
|
"//services/service_manager/public/cpp:service_test_support",
|
||
|
"//testing/gmock",
|
||
|
"//testing/gtest",
|
||
|
]
|
||
|
sources = [
|
||
|
"service_unittest.cc",
|
||
|
]
|
||
|
|
||
|
if (enable_cros_libassistant) {
|
||
|
sources += [
|
||
|
"platform/audio_output_provider_impl_unittest.cc",
|
||
|
"platform/system_provider_impl_unittest.cc",
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
service_manifest("unittest_manifest") {
|
||
|
name = "assistant_unittests"
|
||
|
source = "unittest_manifest.json"
|
||
|
packaged_services = [ ":manifest" ]
|
||
|
}
|
||
|
|
||
|
catalog("tests_catalog") {
|
||
|
testonly = true
|
||
|
embedded_services = [ ":unittest_manifest" ]
|
||
|
}
|
||
|
|
||
|
static_library("test_support") {
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"test_support/mock_assistant.cc",
|
||
|
"test_support/mock_assistant.h",
|
||
|
]
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//chromeos/services/assistant/public/mojom",
|
||
|
"//testing/gmock",
|
||
|
]
|
||
|
}
|