Home | History | Annotate | Download | only in audio_processing
      1 # Copyright (c) 2012 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': 'audioproc_test_utils',
     13       'type': 'static_library',
     14       'dependencies': [
     15         '<(webrtc_root)/base/base.gyp:rtc_base_approved',
     16         '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
     17       ],
     18       'sources': [
     19         'test/test_utils.cc',
     20         'test/test_utils.h',
     21       ],
     22     },
     23     {
     24       'target_name': 'transient_suppression_test',
     25       'type': 'executable',
     26       'dependencies': [
     27         '<(DEPTH)/testing/gtest.gyp:gtest',
     28         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
     29         '<(webrtc_root)/test/test.gyp:test_support',
     30         '<(webrtc_root)/modules/modules.gyp:audio_processing',
     31       ],
     32       'sources': [
     33         'transient/transient_suppression_test.cc',
     34         'transient/file_utils.cc',
     35         'transient/file_utils.h',
     36       ],
     37     }, # transient_suppression_test
     38     {
     39       'target_name': 'click_annotate',
     40       'type': 'executable',
     41       'dependencies': [
     42         '<(webrtc_root)/modules/modules.gyp:audio_processing',
     43       ],
     44       'sources': [
     45         'transient/click_annotate.cc',
     46         'transient/file_utils.cc',
     47         'transient/file_utils.h',
     48       ],
     49     },  # click_annotate
     50     {
     51       'target_name': 'nonlinear_beamformer_test',
     52       'type': 'executable',
     53       'dependencies': [
     54         'audioproc_test_utils',
     55         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
     56         '<(webrtc_root)/modules/modules.gyp:audio_processing',
     57       ],
     58       'sources': [
     59         'beamformer/nonlinear_beamformer_test.cc',
     60       ],
     61     }, # nonlinear_beamformer_test
     62     {
     63       'target_name': 'intelligibility_proc',
     64       'type': 'executable',
     65       'dependencies': [
     66         'audioproc_test_utils',
     67         '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
     68         '<(DEPTH)/testing/gtest.gyp:gtest',
     69         '<(webrtc_root)/modules/modules.gyp:audio_processing',
     70         '<(webrtc_root)/test/test.gyp:test_support',
     71       ],
     72       'sources': [
     73         'intelligibility/test/intelligibility_proc.cc',
     74       ],
     75     }, # intelligibility_proc
     76   ],
     77   'conditions': [
     78     ['enable_protobuf==1', {
     79       'targets': [
     80         {
     81           'target_name': 'audioproc_unittest_proto',
     82           'type': 'static_library',
     83           'sources': [ 'test/unittest.proto', ],
     84           'variables': {
     85             'proto_in_dir': 'test',
     86             # Workaround to protect against gyp's pathname relativization when
     87             # this file is included by modules.gyp.
     88             'proto_out_protected': 'webrtc/audio_processing',
     89             'proto_out_dir': '<(proto_out_protected)',
     90           },
     91           'includes': [ '../../build/protoc.gypi', ],
     92         },
     93         {
     94           'target_name': 'audioproc_protobuf_utils',
     95           'type': 'static_library',
     96           'dependencies': [
     97             'audioproc_debug_proto',
     98           ],
     99           'sources': [
    100             'test/protobuf_utils.cc',
    101             'test/protobuf_utils.h',
    102           ],
    103         },
    104         {
    105           'target_name': 'audioproc',
    106           'type': 'executable',
    107           'dependencies': [
    108             'audio_processing',
    109             'audioproc_debug_proto',
    110             'audioproc_test_utils',
    111             'audioproc_protobuf_utils',
    112             '<(DEPTH)/testing/gtest.gyp:gtest',
    113             '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
    114             '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
    115             '<(webrtc_root)/test/test.gyp:test_support',
    116           ],
    117           'sources': [ 'test/process_test.cc', ],
    118         },
    119         {
    120           'target_name': 'audioproc_f',
    121           'type': 'executable',
    122           'dependencies': [
    123             'audio_processing',
    124             'audioproc_debug_proto',
    125             'audioproc_test_utils',
    126             'audioproc_protobuf_utils',
    127             '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
    128             '<(webrtc_root)/test/test.gyp:test_support',
    129             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
    130           ],
    131           'sources': [
    132             'test/audio_file_processor.cc',
    133             'test/audio_file_processor.h',
    134             'test/audioproc_float.cc',
    135           ],
    136         },
    137         {
    138           'target_name': 'unpack_aecdump',
    139           'type': 'executable',
    140           'dependencies': [
    141             'audioproc_debug_proto',
    142             'audioproc_test_utils',
    143             'audioproc_protobuf_utils',
    144             '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
    145             '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
    146             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
    147           ],
    148           'sources': [ 'test/unpack.cc', ],
    149         },
    150       ],
    151     }],
    152   ],
    153 }
    154