# Copyright 2024 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/features.gni")
import("//components/optimization_guide/features.gni")

if (use_blink || (is_ios && build_with_internal_optimization_guide)) {
  component("fake") {
    public = [
      "fake_chrome_ml_api.h",
      "on_device_model_fake.h",
    ]
    sources = [
      "fake_chrome_ml_api.cc",
      "on_device_model_fake.cc",
    ]
    deps = [
      "//base",
      "//mojo/public/cpp/bindings",
      "//services/on_device_model/ml:api",
      "//services/on_device_model/ml:ml_no_internal",
      "//services/on_device_model/public/mojom",
      "//skia:skia_core_public_headers",
    ]
    defines = [ "IS_ON_DEVICE_MODEL_FAKE_IMPL" ]
  }
}
