2014-06-23 19:21:07 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../../webrtc.gni")
|
2014-06-23 19:21:07 +00:00
|
|
|
|
2014-09-28 17:37:22 +00:00
|
|
|
config("media_file_config") {
|
2014-09-08 22:45:18 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("media_file") {
|
2014-06-23 19:21:07 +00:00
|
|
|
sources = [
|
2015-11-16 11:12:24 +01:00
|
|
|
"media_file.h",
|
|
|
|
|
"media_file_defines.h",
|
|
|
|
|
"media_file_impl.cc",
|
|
|
|
|
"media_file_impl.h",
|
|
|
|
|
"media_file_utility.cc",
|
|
|
|
|
"media_file_utility.h",
|
2014-06-23 19:21:07 +00:00
|
|
|
]
|
|
|
|
|
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":media_file_config" ]
|
2014-09-28 17:37:22 +00:00
|
|
|
|
2016-06-02 02:09:52 -07:00
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2014-08-25 14:15:35 +00:00
|
|
|
}
|
|
|
|
|
|
2015-02-25 03:18:23 +00:00
|
|
|
deps = [
|
2017-04-26 03:38:35 -07:00
|
|
|
"..:module_api",
|
2015-02-26 13:59:22 +00:00
|
|
|
"../..:webrtc_common",
|
2015-02-25 03:18:23 +00:00
|
|
|
"../../common_audio",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../rtc_base:rtc_base_approved",
|
2016-06-02 02:09:52 -07:00
|
|
|
"../../system_wrappers",
|
2015-02-25 03:18:23 +00:00
|
|
|
]
|
2014-06-23 19:21:07 +00:00
|
|
|
}
|
2017-01-19 08:27:11 -08:00
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_source_set("media_file_unittests") {
|
|
|
|
|
testonly = true
|
2017-04-25 04:04:50 -07:00
|
|
|
|
2017-01-19 08:27:11 -08:00
|
|
|
sources = [
|
|
|
|
|
"media_file_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":media_file",
|
|
|
|
|
"../../system_wrappers:system_wrappers",
|
|
|
|
|
"../../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
# TODO(kjellander): bugs.webrtc.org/261: Fix this warning.
|
|
|
|
|
"/wd4373", # virtual function override.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|