| # Copyright 2022 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 = [ ":cros_effects_sm_tests" ] |
| if (use.test) { |
| deps += [] |
| } |
| if (use.fuzzer) { |
| deps += [] |
| } |
| } |
| |
| pkg_config("target_defaults") { |
| configs = [ |
| "//common-mk:test", |
| "//camera/build:cros_camera_common", |
| ] |
| pkg_deps = [ |
| "libchrome-test", |
| "libsession_manager-client", |
| ] |
| } |
| |
| executable("cros_effects_sm_tests") { |
| sources = [ |
| "//ml_core/effects_pipeline.cc", |
| "//ml_core/tests/test_utilities.cc", |
| "effects_stream_manipulator_test.cc", |
| ] |
| configs += [ ":target_defaults" ] |
| defines = [ "EGL_NO_X11" ] |
| deps = [ |
| "//camera/common:base", |
| "//camera/common:stream_manipulator", |
| "//camera/common/test_support", |
| "//camera/features/effects", |
| "//ml_core/dlc:dlc_client", |
| ] |
| } |