# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS.  All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.

import("../../build/webrtc.gni")

config("media_file_config") {
  visibility = [ ":*" ]  # Only targets in this file can depend on this.
}

source_set("media_file") {
  sources = [
    "media_file.h",
    "media_file_defines.h",
    "media_file_impl.cc",
    "media_file_impl.h",
    "media_file_utility.cc",
    "media_file_utility.h",
  ]

  configs += [ "../..:common_config" ]
  public_configs = [
    "../..:common_inherited_config",
    ":media_file_config",
  ]

  # TODO(jschuh): Bug 1348: fix this warning.
  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

  if (is_clang) {
    # Suppress warnings from Chrome's Clang plugins.
    # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
    configs -= [ "//build/config/clang:find_bad_constructs" ]
  }

  deps = [
    "../..:webrtc_common",
    "../../common_audio",
    "../../system_wrappers",
  ]
}
