chromium/chromeos/services/assistant/public/shared/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/chrome_build.gni")

# C++ headers and sources that can be shared by assistant internal and
# external directories.
component("shared") {
  output_name = "assistant_service_shared"

  defines = [ "IS_ASSISTANT_SERVICE_SHARED_IMPL" ]

  sources = [
    "constants.h",
    "utils.h",
  ]

  if (is_chromeos && is_chrome_branded) {
    sources += [ "//chromeos/assistant/internal/constants.cc" ]
  } else {
    sources += [ "constants.cc" ]
  }

  deps = [ "//base:base" ]
}