Home | History | Annotate | Download | only in audio_processing
      1 # Copyright (c) 2011 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 {
     10   'targets': [
     11     {
     12       'target_name': 'audio_processing',
     13       'type': '<(library)',
     14       'conditions': [
     15         ['prefer_fixed_point==1', {
     16           'dependencies': [ 'ns_fix' ],
     17           'defines': [ 'WEBRTC_NS_FIXED' ],
     18         }, {
     19           'dependencies': [ 'ns' ],
     20           'defines': [ 'WEBRTC_NS_FLOAT' ],
     21         }],
     22         ['enable_protobuf==1', {
     23           'dependencies': [ 'audioproc_debug_proto' ],
     24           'defines': [ 'WEBRTC_AUDIOPROC_DEBUG_DUMP' ],
     25         }],
     26       ],
     27       'dependencies': [
     28         'aec',
     29         'aecm',
     30         'agc',
     31         '<(webrtc_root)/common_audio/common_audio.gyp:signal_processing',
     32         '<(webrtc_root)/common_audio/common_audio.gyp:vad',
     33         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
     34       ],
     35       'include_dirs': [
     36         'interface',
     37         '../interface',
     38       ],
     39       'direct_dependent_settings': {
     40         'include_dirs': [
     41           'interface',
     42           '../interface',
     43         ],
     44       },
     45       'sources': [
     46         'interface/audio_processing.h',
     47         'audio_buffer.cc',
     48         'audio_buffer.h',
     49         'audio_processing_impl.cc',
     50         'audio_processing_impl.h',
     51         'echo_cancellation_impl.cc',
     52         'echo_cancellation_impl.h',
     53         'echo_control_mobile_impl.cc',
     54         'echo_control_mobile_impl.h',
     55         'gain_control_impl.cc',
     56         'gain_control_impl.h',
     57         'high_pass_filter_impl.cc',
     58         'high_pass_filter_impl.h',
     59         'level_estimator_impl.cc',
     60         'level_estimator_impl.h',
     61         'noise_suppression_impl.cc',
     62         'noise_suppression_impl.h',
     63         'splitting_filter.cc',
     64         'splitting_filter.h',
     65         'processing_component.cc',
     66         'processing_component.h',
     67         'voice_detection_impl.cc',
     68         'voice_detection_impl.h',
     69       ],
     70     },
     71   ],
     72   'conditions': [
     73     ['enable_protobuf==1', {
     74       'targets': [
     75         {
     76           'target_name': 'audioproc_debug_proto',
     77           'type': 'static_library',
     78           'sources': [ 'debug.proto', ],
     79           'variables': {
     80             'proto_in_dir': '.',
     81             # Workaround to protect against gyp's pathname relativization when
     82             # this file is included by modules.gyp.
     83             'proto_out_protected': 'webrtc/audio_processing',
     84             'proto_out_dir': '<(proto_out_protected)',
     85           },
     86           'includes': [ '../../build/protoc.gypi', ],
     87         },
     88       ],
     89     }],
     90   ],
     91 }
     92