# 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("//build/config/apple/swift_source_set.gni")

if (enable_swift_cxx_interop) {
  swift_source_set("swift_coordinator") {
    bridge_header = "bridge_header.h"
    sources = [ "print_coordinator_impl.swift" ]
    frameworks = [ "UIKit.framework" ]
    cxx_import_deps = [ "//base/ios/swift_shims:user_metrics" ]
    deps = [
      ":coordinator",
      "//base",
      "//ios/third_party/swift_cxxstdlib",
    ]
  }
}

source_set("coordinator") {
  sources = [
    "print_coordinator.h",
    "print_coordinator.mm",
    "print_coordinator_impl.h",
    "print_coordinator_impl.mm",
  ]
  public_deps = [
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/web/model/print",
  ]
  deps = [ "//base" ]
  frameworks = [ "UIKit.framework" ]
}
