blob: 70abb51f4d046ba2219a65115fcaac372901c8f1 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../build/webrtc.gni")
10
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000011config("media_file_config") {
brettw@chromium.org519c9e22014-09-08 22:45:18 +000012 visibility = [ ":*" ] # Only targets in this file can depend on this.
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013}
14
15source_set("media_file") {
16 sources = [
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010017 "include/media_file.h",
18 "include/media_file_defines.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000019 "source/media_file_impl.cc",
20 "source/media_file_impl.h",
21 "source/media_file_utility.cc",
22 "source/media_file_utility.h",
23 ]
24
25 if (is_win) {
26 cflags = [
27 # TODO(jschuh): Bug 1348: fix this warning.
28 "/wd4267", # size_t to int truncations
29 ]
30 }
31
kjellander@webrtc.orgf21ea912014-09-28 17:37:22 +000032 configs += [ "../..:common_config" ]
33 public_configs = [
34 "../..:common_inherited_config",
35 ":media_file_config",
36 ]
37
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000038 if (is_clang) {
39 # Suppress warnings from Chrome's Clang plugins.
40 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
41 configs -= [ "//build/config/clang:find_bad_constructs" ]
42 }
43
andresp@webrtc.org87a592d2015-02-25 03:18:23 +000044 deps = [
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000045 "../..:webrtc_common",
andresp@webrtc.org87a592d2015-02-25 03:18:23 +000046 "../../system_wrappers",
47 "../../common_audio",
48 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000049}