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 | |
| 9 | import("../../build/webrtc.gni") |
| 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 | include_dirs = [ |
| 14 | "interface", |
| 15 | "../interface", |
| 16 | ] |
| 17 | } |
| 18 | |
| 19 | source_set("media_file") { |
| 20 | sources = [ |
| 21 | "interface/media_file.h", |
| 22 | "interface/media_file_defines.h", |
| 23 | "source/avi_file.cc", |
| 24 | "source/avi_file.h", |
| 25 | "source/media_file_impl.cc", |
| 26 | "source/media_file_impl.h", |
| 27 | "source/media_file_utility.cc", |
| 28 | "source/media_file_utility.h", |
| 29 | ] |
| 30 | |
| 31 | if (is_win) { |
| 32 | cflags = [ |
| 33 | # TODO(jschuh): Bug 1348: fix this warning. |
| 34 | "/wd4267", # size_t to int truncations |
| 35 | ] |
| 36 | } |
| 37 | |
kjellander@webrtc.org | f21ea91 | 2014-09-28 17:37:22 +0000 | [diff] [blame^] | 38 | configs += [ "../..:common_config" ] |
| 39 | public_configs = [ |
| 40 | "../..:common_inherited_config", |
| 41 | ":media_file_config", |
| 42 | ] |
| 43 | |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 44 | if (is_clang) { |
| 45 | # Suppress warnings from Chrome's Clang plugins. |
| 46 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 47 | configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 48 | } |
| 49 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 50 | deps = [ "../../system_wrappers" ] |
| 51 | } |