chromium/components/lens/features.gni

# Copyright 2022 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/ui.gni")

# iOS cannot depend on files in //chrome
if (!is_ios) {
  import("//chrome/common/features.gni")
}

declare_args() {
  # Includes Lens features in the build. toolkit_views is used to ensure Lens
  # features are only included on Desktop devices running Chromium
  enable_lens_desktop = toolkit_views
}

declare_args() {
  # Lens features that are specific to the Google Chrome branded browser.
  # Features include:
  #  - Region Search
  #  - Side Panel
  #  - PDF Support
  enable_lens_desktop_google_branded_features =
      enable_lens_desktop && is_chrome_branded
}