1c55a96383497a772a307b346368133960b02ad03Eric Laurent# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2c55a96383497a772a307b346368133960b02ad03Eric Laurent#
3c55a96383497a772a307b346368133960b02ad03Eric Laurent# Use of this source code is governed by a BSD-style license
4c55a96383497a772a307b346368133960b02ad03Eric Laurent# that can be found in the LICENSE file in the root of the source
5c55a96383497a772a307b346368133960b02ad03Eric Laurent# tree. An additional intellectual property rights grant can be found
6c55a96383497a772a307b346368133960b02ad03Eric Laurent# in the file PATENTS.  All contributing project authors may
7c55a96383497a772a307b346368133960b02ad03Eric Laurent# be found in the AUTHORS file in the root of the source tree.
8c55a96383497a772a307b346368133960b02ad03Eric Laurent
9c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_PATH := $(call my-dir)
10c55a96383497a772a307b346368133960b02ad03Eric Laurent
11c55a96383497a772a307b346368133960b02ad03Eric Laurentinclude $(CLEAR_VARS)
12c55a96383497a772a307b346368133960b02ad03Eric Laurent
13c55a96383497a772a307b346368133960b02ad03Eric Laurentinclude $(LOCAL_PATH)/../../../../android-webrtc.mk
14c55a96383497a772a307b346368133960b02ad03Eric Laurent
15c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_ARM_MODE := arm
16c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_MODULE_CLASS := STATIC_LIBRARIES
17c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_MODULE := libwebrtc_agc
18c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_MODULE_TAGS := optional
19c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_SRC_FILES := \
20c55a96383497a772a307b346368133960b02ad03Eric Laurent    analog_agc.c \
21c55a96383497a772a307b346368133960b02ad03Eric Laurent    digital_agc.c
22c55a96383497a772a307b346368133960b02ad03Eric Laurent
23c55a96383497a772a307b346368133960b02ad03Eric Laurent# Flags passed to both C and C++ files.
24c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_CFLAGS := \
25c55a96383497a772a307b346368133960b02ad03Eric Laurent    $(MY_WEBRTC_COMMON_DEFS)
26c55a96383497a772a307b346368133960b02ad03Eric Laurent
27bac916e872dc22883c20fccb58fae1ebd7ed61d4Chih-Hung HsiehLOCAL_CLANG_CFLAGS := \
28bac916e872dc22883c20fccb58fae1ebd7ed61d4Chih-Hung Hsieh    -Wno-tautological-pointer-compare
29bac916e872dc22883c20fccb58fae1ebd7ed61d4Chih-Hung Hsieh
30792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
31792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
32792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
33792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
34792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
35792d5464151b0e5744e311ff79eca886e277807bYing WangLOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
36792d5464151b0e5744e311ff79eca886e277807bYing Wang
37c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_C_INCLUDES := \
38c55a96383497a772a307b346368133960b02ad03Eric Laurent    $(LOCAL_PATH)/interface \
39c55a96383497a772a307b346368133960b02ad03Eric Laurent    $(LOCAL_PATH)/../../.. \
40c55a96383497a772a307b346368133960b02ad03Eric Laurent    $(LOCAL_PATH)/../../../common_audio/signal_processing/include
41c55a96383497a772a307b346368133960b02ad03Eric Laurent
42c55a96383497a772a307b346368133960b02ad03Eric LaurentLOCAL_SHARED_LIBRARIES := \
43c55a96383497a772a307b346368133960b02ad03Eric Laurent    libcutils \
445d8e19eb3b3c4b541df50f8eddd6198b4be992a4Przemyslaw Szczepaniak    libdl
45c55a96383497a772a307b346368133960b02ad03Eric Laurent
46b7831e07cb2da4fcb0de53efc2448e36e6a52139Dan Albertifdef WEBRTC_STL
475d8e19eb3b3c4b541df50f8eddd6198b4be992a4Przemyslaw SzczepaniakLOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
485d8e19eb3b3c4b541df50f8eddd6198b4be992a4Przemyslaw SzczepaniakLOCAL_SDK_VERSION := 14
495d8e19eb3b3c4b541df50f8eddd6198b4be992a4Przemyslaw SzczepaniakLOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
50c55a96383497a772a307b346368133960b02ad03Eric Laurentendif
515d8e19eb3b3c4b541df50f8eddd6198b4be992a4Przemyslaw Szczepaniak
52c55a96383497a772a307b346368133960b02ad03Eric Laurentinclude $(BUILD_STATIC_LIBRARY)
53