| # Copyright 2019 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//common-mk/pkg_config.gni") |
| |
| group("all") { |
| deps = [ |
| ":camera_characteristics_test", |
| ":camera_dfu_test", |
| ":media_v4l2_test", |
| ] |
| } |
| |
| executable("camera_characteristics_test") { |
| sources = [ |
| "//camera/hal/usb/camera_characteristics.cc", |
| "camera_characteristics_test.cc", |
| ] |
| configs += [ |
| "//common-mk:test", |
| "//camera/build:cros_camera_common", |
| ] |
| install_path = "bin" |
| pkg_deps = [ |
| "libbrillo", |
| "libchrome", |
| "re2", |
| ] |
| } |
| |
| executable("camera_dfu_test") { |
| sources = [ |
| "camera_dfu_test.cc", |
| "usb_dfu_device.cc", |
| ] |
| configs += [ |
| "//common-mk:test", |
| "//camera/build:cros_camera_common", |
| ] |
| install_path = "bin" |
| pkg_deps = [ |
| "libbrillo", |
| "libchrome", |
| "libchrome-test", |
| "libcros_camera", |
| "libudev", |
| "libusb-1.0", |
| "re2", |
| ] |
| } |
| |
| executable("media_v4l2_test") { |
| sources = [ |
| "//camera/hal/usb/camera_characteristics.cc", |
| "media_v4l2_device.cc", |
| "media_v4l2_test.cc", |
| ] |
| |
| configs += [ |
| "//common-mk:test", |
| "//camera/build:cros_camera_common", |
| ] |
| install_path = "bin" |
| pkg_deps = [ |
| "libbrillo", |
| "libchrome", |
| "libcros_camera", |
| "libcros_camera_device_config", |
| "libyuv", |
| "re2", |
| ] |
| } |