kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # 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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 10 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 11 | config("media_file_config") { |
brettw@chromium.org | 519c9e2 | 2014-09-08 22:45:18 +0000 | [diff] [blame] | 12 | visibility = [ ":*" ] # Only targets in this file can depend on this. |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 13 | } |
| 14 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 15 | rtc_static_library("media_file") { |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 16 | sources = [ |
Henrik Kjellander | 0b9e29c | 2015-11-16 11:12:24 +0100 | [diff] [blame] | 17 | "media_file.h", |
| 18 | "media_file_defines.h", |
| 19 | "media_file_impl.cc", |
| 20 | "media_file_impl.h", |
| 21 | "media_file_utility.cc", |
| 22 | "media_file_utility.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 23 | ] |
| 24 | |
ehmaldonado | e9cc686 | 2016-09-05 06:10:18 -0700 | [diff] [blame] | 25 | public_configs = [ ":media_file_config" ] |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame] | 26 | |
kjellander | 8f4419b | 2016-06-02 02:09:52 -0700 | [diff] [blame] | 27 | # TODO(jschuh): Bug 1348: fix this warning. |
| 28 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 29 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 30 | if (!build_with_chromium && is_clang) { |
| 31 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 32 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 33 | } |
| 34 | |
andresp@webrtc.org | 87a592d | 2015-02-25 03:18:23 +0000 | [diff] [blame] | 35 | deps = [ |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 36 | "..:module_api", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 37 | "../..:webrtc_common", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 38 | "../../:typedefs", |
andresp@webrtc.org | 87a592d | 2015-02-25 03:18:23 +0000 | [diff] [blame] | 39 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 40 | "../../rtc_base:rtc_base_approved", |
andresp@webrtc.org | 87a592d | 2015-02-25 03:18:23 +0000 | [diff] [blame] | 41 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 42 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 43 | |
| 44 | if (rtc_include_tests) { |
| 45 | rtc_source_set("media_file_unittests") { |
| 46 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 47 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 48 | sources = [ |
| 49 | "media_file_unittest.cc", |
| 50 | ] |
| 51 | deps = [ |
| 52 | ":media_file", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 53 | "../../test:test_support", |
| 54 | ] |
| 55 | if (is_win) { |
| 56 | cflags = [ |
| 57 | # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. |
| 58 | "/wd4373", # virtual function override. |
| 59 | ] |
| 60 | } |
| 61 | if (!build_with_chromium && is_clang) { |
| 62 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 63 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 64 | } |
| 65 | } |
| 66 | } |