chromium/pdf/features.gni

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

import("//ash/webui/media_app_ui/media_app_ui.gni")
import("//build/config/cast.gni")

# Most build code won't need to include this file. Instead you can
# unconditionally depend on "//pdf" which will be a no-op when PDF support is
# disabled.

declare_args() {
  enable_pdf = !is_android && !is_ios && !is_castos && !is_fuchsia
}

declare_args() {
  # Enable ink libraries provided by the ChromeOS media app dependency.
  #
  # This argument indicates whether the ink libraries provided by the ChromeOS
  # media app dependency is enabled. It also determines whether the annotation
  # feature is enabled for the PDF Viewer on Chrome OS.
  enable_ink = enable_cros_media_app

  # Enable the next generation of ink libraries. This can co-exist with
  # `enable_ink` above.
  enable_pdf_ink2 = enable_pdf

  # Enable Ink Stubs. Only applicable when `enable_pdf_ink2` is true.
  enable_pdf_ink2_stubs = true
}