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 9LOCAL_PATH := $(call my-dir) 10 11include $(CLEAR_VARS) 12 13include $(LOCAL_PATH)/../../../android-webrtc.mk 14 15LOCAL_ARM_MODE := arm 16LOCAL_MODULE := libwebrtc_system_wrappers 17LOCAL_MODULE_TAGS := optional 18LOCAL_CPP_EXTENSION := .cc 19LOCAL_SRC_FILES := \ 20 android/cpu-features.c \ 21 cpu_features_android.c \ 22 map.cc \ 23 sort.cc \ 24 aligned_malloc.cc \ 25 atomic32_posix.cc \ 26 condition_variable.cc \ 27 cpu_no_op.cc \ 28 cpu_features.cc \ 29 cpu_info.cc \ 30 critical_section.cc \ 31 event.cc \ 32 file_impl.cc \ 33 list_no_stl.cc \ 34 rw_lock.cc \ 35 thread.cc \ 36 trace_impl.cc \ 37 condition_variable_posix.cc \ 38 cpu_linux.cc \ 39 critical_section_posix.cc \ 40 event_posix.cc \ 41 sleep.cc \ 42 thread_posix.cc \ 43 trace_posix.cc \ 44 rw_lock_posix.cc 45 46LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) 47LOCAL_CPPFLAGS := -std=gnu++98 48 49LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm) 50LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86) 51LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips) 52LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64) 53LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64) 54LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64) 55 56LOCAL_C_INCLUDES := \ 57 $(LOCAL_PATH)/../.. \ 58 $(LOCAL_PATH)/../interface \ 59 $(LOCAL_PATH)/spreadsortlib 60 61ifdef WEBRTC_STL 62LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL) 63LOCAL_SDK_VERSION := 14 64LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL) 65endif 66 67include $(BUILD_STATIC_LIBRARY) 68