Home | History | Annotate | Download | only in media_file
      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 
     11 config("media_file_config") {
     12   visibility = [ ":*" ]  # Only targets in this file can depend on this.
     13 }
     14 
     15 source_set("media_file") {
     16   sources = [
     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",
     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 
     32   configs += [ "../..:common_config" ]
     33   public_configs = [
     34     "../..:common_inherited_config",
     35     ":media_file_config",
     36   ]
     37 
     38   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 
     44   deps = [
     45     "../..:webrtc_common",
     46     "../../system_wrappers",
     47     "../../common_audio",
     48   ]
     49 }
     50