Commit 191c980a authored by Jeroen Dhollander's avatar Jeroen Dhollander Committed by Commit Bot

Move AssistantProxy to a separate build target

This forces us to remove all dependencies on
//chromeos/services/assistant, which in turn will allow us to move the
implementation to a different mojom service.

I ended up choosing a pretty simple cut where I introduce a new
|cros_libassistant| target that contains the interfaces that are
currently used both by |AssistantProxy| and the Assistant service.

Things in this target will eventually have to move over to the new mojom
service.

Bug: b/171748795
Test: compiled & deployed
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Change-Id: Idb58d45c59b97f3d906fa7e2e148198ec25813a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2518213Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825095}
parent 8ba1397c
......@@ -63,7 +63,6 @@ component("lib") {
sources += [
"assistant_device_settings_delegate.cc",
"assistant_device_settings_delegate.h",
"assistant_manager_service_delegate.h",
"assistant_manager_service_delegate_impl.cc",
"assistant_manager_service_delegate_impl.h",
"assistant_manager_service_impl.cc",
......@@ -74,7 +73,6 @@ component("lib") {
"chromium_api_delegate.h",
"chromium_http_connection.cc",
"chromium_http_connection.h",
"cros_platform_api.h",
"media_session/assistant_media_session.cc",
"media_session/assistant_media_session.h",
"platform/audio_device_owner.cc",
......@@ -101,10 +99,6 @@ component("lib") {
"platform/volume_control_impl.h",
"platform_api_impl.cc",
"platform_api_impl.h",
"proxy/assistant_proxy.cc",
"proxy/assistant_proxy.h",
"proxy/service_controller.cc",
"proxy/service_controller.h",
"utils.cc",
"utils.h",
]
......@@ -118,11 +112,13 @@ component("lib") {
deps += [
":buildflags",
":cros_libassistant",
"//chromeos/assistant/internal",
"//chromeos/assistant/internal:libassistant",
"//chromeos/assistant/internal/proto/google3",
"//chromeos/dbus",
"//chromeos/resources",
"//chromeos/services/assistant/proxy",
"//chromeos/services/network_config/public/mojom",
"//chromeos/strings",
"//libassistant/shared/internal_api:fuchsia_api_helper",
......@@ -140,6 +136,25 @@ component("lib") {
}
}
# This source_set contains the border APIs that interact with Libassistant.
# TODO(b/171748795): During the migration to a Libassistant mojom service,
# these APIs are used both by the mojom service and from this directory.
# Once the migration is complete these should no longer be used here and
# everything should have been moved to the mojom service.
if (enable_cros_libassistant) {
source_set("cros_libassistant") {
sources = [
"assistant_manager_service_delegate.h",
"cros_platform_api.h",
]
deps = [
"//base",
"//libassistant/shared/public",
]
}
}
source_set("tests") {
testonly = true
deps = [
......@@ -202,6 +217,7 @@ source_set("tests") {
"//chromeos/assistant/internal:tests",
"//chromeos/assistant/internal/proto/google3",
"//chromeos/dbus",
"//chromeos/services/assistant:cros_libassistant",
"//chromeos/services/network_config/public/mojom",
"//services/audio/public/cpp:test_support",
"//services/device/public/cpp:test_support",
......
# Copyright 2020 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 fil
import("//build/buildflag_header.gni")
import("//chromeos/assistant/assistant.gni")
assert(is_chromeos)
source_set("proxy") {
sources = [
"assistant_proxy.cc",
"assistant_proxy.h",
"service_controller.cc",
"service_controller.h",
]
deps = [
"//base",
"//chromeos/assistant/internal",
"//chromeos/assistant/internal/proto/google3",
"//chromeos/constants",
"//chromeos/services/assistant:cros_libassistant",
"//chromeos/services/assistant/public/cpp",
"//libassistant/shared/internal_api:fuchsia_api_helper",
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment