chromium/pdf/ink/BUILD.gn

# 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("//pdf/features.gni")

assert(enable_pdf_ink2)

group("ink") {
  visibility = [ "//pdf/*" ]

  public_deps = [ ":interface" ]

  if (enable_pdf_ink2_stubs) {
    deps = [ "//pdf/ink/stub" ]
  } else {
    # TODO(thestig): Add wrapper code.
    deps = [ "//pdf/ink/wrapper" ]
  }
}

source_set("interface") {
  visibility = [ "//pdf/*" ]

  sources = [
    "ink_affine_transform.cc",
    "ink_affine_transform.h",
    "ink_brush.h",
    "ink_brush_behavior.cc",
    "ink_brush_behavior.h",
    "ink_brush_family.h",
    "ink_brush_paint.cc",
    "ink_brush_paint.h",
    "ink_brush_tip.cc",
    "ink_brush_tip.h",
    "ink_in_progress_stroke.h",
    "ink_intersects.h",
    "ink_modeled_shape_view.h",
    "ink_point.h",
    "ink_rect.h",
    "ink_skia_renderer.h",
    "ink_stroke.h",
    "ink_stroke_input.h",
    "ink_stroke_input_batch.h",
    "ink_stroke_input_batch_view.h",
  ]

  configs += [ "//pdf:strict" ]

  public_deps = [ "//skia" ]
}