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

assert(is_linux || is_mac)

static_library("gapis") {
  sources = [
    "features.cc",
    "features.h",
    "gapis_manager.cc",
    "gapis_manager.h",
    "gapis_service.cc",
    "gapis_service.h",
    "token_downloader.cc",
    "token_downloader.h",
  ]
  deps = [
    "//base",
    "//components/gapis/proto",
    "//components/keyed_service/core",
    "//components/signin/public/base",
    "//components/signin/public/identity_manager",
    "//components/sync/base",
    "//components/version_info",
    "//content/public/browser",
    "//google_apis",
    "//services/network/public/cpp",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "token_downloader_unittest.cc" ]
  deps = [
    ":gapis",
    "//base",
    "//base/test:test_support",
    "//components/gapis/proto",
    "//services/network:test_support",
    "//services/network/public/cpp",
    "//testing/gtest",
    "//url",
  ]
}
