chromium/chromeos/ash/services/recording/BUILD.gn

# Copyright 2020 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")

assert(is_chromeos_ash)

source_set("recording") {
  sources = [
    "audio_capture_util.cc",
    "audio_capture_util.h",
    "audio_stream.cc",
    "audio_stream.h",
    "audio_stream_mixer.cc",
    "audio_stream_mixer.h",
    "gif_encoder.cc",
    "gif_encoder.h",
    "gif_encoding_types.h",
    "gif_file_writer.cc",
    "gif_file_writer.h",
    "lzw_pixel_color_indices_writer.cc",
    "lzw_pixel_color_indices_writer.h",
    "octree_color_quantizer.cc",
    "octree_color_quantizer.h",
    "recording_encoder.cc",
    "recording_encoder.h",
    "recording_file_io_helper.cc",
    "recording_file_io_helper.h",
    "recording_service.cc",
    "recording_service.h",
    "recording_service_constants.h",
    "rgb_video_frame.cc",
    "rgb_video_frame.h",
    "video_capture_params.cc",
    "video_capture_params.h",
    "webm_encoder_muxer.cc",
    "webm_encoder_muxer.h",
  ]

  deps = [
    "//ash/constants",
    "//base",
    "//chromeos/ash/services/recording/public/mojom",
    "//components/capture_mode",
    "//media",
    "//services/audio/public/cpp",
  ]
}

source_set("test_support") {
  testonly = true

  sources = [
    "recording_service_test_api.cc",
    "recording_service_test_api.h",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/services/recording",
    "//chromeos/ash/services/recording/public/mojom",
    "//media",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "audio_capture_test_base.cc",
    "audio_capture_test_base.h",
    "audio_stream_mixer_unittest.cc",
    "audio_stream_unittest.cc",
    "lzw_pixel_color_indices_writer_test.cc",
  ]

  deps = [
    ":recording",
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/services/recording/public/mojom",
  ]
}