chromium/extensions/browser/api/webcam_private/BUILD.gn

# 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/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")

assert(enable_extensions,
       "Cannot depend on extensions because enable_extensions=false.")
assert(is_chromeos)

source_set("webcam_private") {
  sources = [
    "ip_webcam.cc",
    "ip_webcam.h",
    "v4l2_webcam.cc",
    "v4l2_webcam.h",
    "visca_webcam.cc",
    "visca_webcam.h",
    "webcam.cc",
    "webcam.h",
    "webcam_private_api.h",
    "webcam_private_api_chromeos.cc",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//chromeos/dbus/ip_peripheral",
    "//components/media_device_salt",
    "//extensions/browser/api/serial",
    "//extensions/common",
    "//extensions/common/api",
    "//mojo/public/cpp/bindings",
    "//services/device/public/mojom",
    "//services/service_manager/public/cpp",
  ]

  public_deps = [ "//extensions/browser:browser_sources" ]
}