# 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" ]

  # Some Quick Answers code depend on constants.
  # TODO(crbug.com/406795923): move them out to a better place.
  if (is_chrome_branded) {
    sources += [ "//chromeos/assistant/internal/constants.cc" ]
  } else {
    sources += [ "constants.cc" ]
  }

  deps = [ "//base" ]
}
