aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/audio_processing/Android.bp
blob: 618387c1da0542d3f7c4919ab670110a16532589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS.  All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.

subdirs = ["*"]

cc_library_static {
    name: "libwebrtc_apm",
    defaults: ["webrtc_flags"],

    srcs: [
        "./**/*.proto",
        "audio_buffer.cc",
        "audio_processing_impl.cc",
        "echo_cancellation_impl.cc",
        "echo_control_mobile_impl.cc",
        "gain_control_impl.cc",
        "high_pass_filter_impl.cc",
        "level_estimator_impl.cc",
        "noise_suppression_impl.cc",
        "rms_level.cc",
        "splitting_filter.cc",
        "three_band_filter_bank.cc",
        "processing_component.cc",
        "voice_detection_impl.cc",
    ],

    cflags: [
        "-DWEBRTC_NS_FIXED",
        "-DWEBRTC_ANDROID_PLATFORM_BUILD",
        "-DWEBRTC_AUDIOPROC_DEBUG_DUMP",

        // floating point
        // "-DWEBRTC_NS_FLOAT",
    ],

    local_include_dirs: ["include"],
    header_libs: ["libwebrtc_modules_headers"],
    static_libs: [
        "libwebrtc_spl",
        "libwebrtc_vad",
        "libwebrtc_system_wrappers",
    ],
}

// apm process test app
cc_test {
    name: "webrtc_apm_process_test",
    defaults: ["webrtc_flags"],

    srcs: [
        "**/*.proto",
        "test/process_test.cc",
        "test/test_utils.cc",
        "test/protobuf_utils.cc",
        ":webrtc_common_audio_wav",
        ":webrtc_system_wrappers_tick_util",
        ":webrtc_test_testsupport_fileutils",
        ":webrtc_test_testsupport_perf_test",
    ],

    cflags: [
        "-DWEBRTC_ANDROID_PLATFORM_BUILD",
        "-DWEBRTC_AUDIOPROC_DEBUG_DUMP",
    ],

    local_include_dirs: ["include"],

    shared_libs: [
        "libutils",
        "libwebrtc_audio_preprocessing",
    ],

    arch: {
        arm: {
            instruction_set: "thumb",
        },
    },
}

// apm unit test app
cc_test {
    name: "webrtc_apm_unit_test",
    defaults: ["webrtc_flags"],

    srcs: [
        "**/*.proto",
        "test/audio_processing_unittest.cc",
        "test/protobuf_utils.cc",
        "test/test_utils.cc",
        ":webrtc_common_audio_resampler_push_resampler",
        ":webrtc_test_testsupport_fileutils",
    ],

    cflags: [
        "-DWEBRTC_AUDIOPROC_FIXED_PROFILE",
        "-DWEBRTC_ANDROID_PLATFORM_BUILD",
        "-DWEBRTC_AUDIOPROC_DEBUG_DUMP",
    ],

    local_include_dirs: ["include"],

    shared_libs: ["libwebrtc_audio_preprocessing"],

    arch: {
        arm: {
            instruction_set: "thumb",
        },
    },
}