• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9LOCAL_PATH := $(call my-dir)
10
11include $(CLEAR_VARS)
12
13LOCAL_ARM_MODE := arm
14LOCAL_MODULE_CLASS := STATIC_LIBRARIES
15LOCAL_MODULE := libwebrtc_spl
16LOCAL_MODULE_TAGS := optional
17LOCAL_GENERATED_SOURCES :=
18LOCAL_SRC_FILES := add_sat_w16.c \
19    add_sat_w32.c \
20    auto_corr_to_refl_coef.c \
21    auto_correlation.c \
22    complex_fft.c \
23    complex_ifft.c \
24    complex_bit_reverse.c \
25    copy_set_operations.c \
26    cos_table.c \
27    cross_correlation.c \
28    division_operations.c \
29    dot_product_with_scale.c \
30    downsample_fast.c \
31    energy.c \
32    filter_ar.c \
33    filter_ar_fast_q12.c \
34    filter_ma_fast_q12.c \
35    get_hanning_window.c \
36    get_scaling_square.c \
37    get_size_in_bits.c \
38    hanning_table.c \
39    ilbc_specific_functions.c \
40    levinson_durbin.c \
41    lpc_to_refl_coef.c \
42    min_max_operations.c \
43    norm_u32.c \
44    norm_w16.c \
45    norm_w32.c \
46    randn_table.c \
47    randomization_functions.c \
48    refl_coef_to_lpc.c \
49    resample.c \
50    resample_48khz.c \
51    resample_by_2.c \
52    resample_by_2_internal.c \
53    resample_fractional.c \
54    sin_table.c \
55    sin_table_1024.c \
56    spl_sqrt.c \
57    spl_version.c \
58    splitting_filter.c \
59    sqrt_of_one_minus_x_squared.c \
60    sub_sat_w16.c \
61    sub_sat_w32.c \
62    vector_scaling_operations.c
63
64# Flags passed to both C and C++ files.
65MY_CFLAGS :=
66MY_CFLAGS_C :=
67MY_DEFS := '-DNO_TCMALLOC' \
68    '-DNO_HEAPCHECKER' \
69    '-DWEBRTC_TARGET_PC' \
70    '-DWEBRTC_LINUX'
71ifeq ($(TARGET_ARCH),arm)
72MY_DEFS += \
73    '-DWEBRTC_ANDROID' \
74    '-DANDROID'
75endif
76LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
77
78# Include paths placed before CFLAGS/CPPFLAGS
79LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../.. \
80    $(LOCAL_PATH)/../interface
81
82# Flags passed to only C++ (and not C) files.
83LOCAL_CPPFLAGS :=
84
85LOCAL_LDFLAGS :=
86
87LOCAL_STATIC_LIBRARIES :=
88
89LOCAL_SHARED_LIBRARIES := libstlport
90
91LOCAL_ADDITIONAL_DEPENDENCIES :=
92
93ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
94LOCAL_LDLIBS += -ldl -lpthread
95endif
96
97ifneq ($(TARGET_SIMULATOR),true)
98LOCAL_SHARED_LIBRARIES += libdl
99endif
100
101include external/stlport/libstlport.mk
102include $(BUILD_STATIC_LIBRARY)
103