Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / system_wrappers / source / Android.mk
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 LOCAL_PATH := $(call my-dir)
10
11 include $(CLEAR_VARS)
12
13 include $(LOCAL_PATH)/../../../android-webrtc.mk
14
15 LOCAL_ARM_MODE := arm
16 LOCAL_MODULE := libwebrtc_system_wrappers
17 LOCAL_MODULE_TAGS := optional
18 LOCAL_CPP_EXTENSION := .cc
19 LOCAL_SRC_FILES := \
20     cpu_features_android.c \
21     sort.cc \
22     aligned_malloc.cc \
23     atomic32_posix.cc \
24     condition_variable.cc \
25     cpu_features.cc \
26     cpu_info.cc \
27     critical_section.cc \
28     event.cc \
29     event_tracer.cc \
30     file_impl.cc \
31     list_no_stl.cc \
32     rw_lock.cc \
33     thread.cc \
34     trace_impl.cc \
35     condition_variable_posix.cc \
36     critical_section_posix.cc \
37     event_posix.cc \
38     sleep.cc \
39     thread_posix.cc \
40     tick_util.cc \
41     trace_posix.cc \
42     rw_lock_posix.cc 
43
44 LOCAL_CFLAGS := \
45     $(MY_WEBRTC_COMMON_DEFS)
46
47 LOCAL_C_INCLUDES := \
48     $(LOCAL_PATH)/../.. \
49     $(LOCAL_PATH)/../interface \
50     $(LOCAL_PATH)/spreadsortlib \
51     external/webrtc
52
53 LOCAL_SHARED_LIBRARIES := \
54     libcutils \
55     libdl \
56     libstlport
57
58 LOCAL_STATIC_LIBRARIES := cpufeatures
59
60 ifndef NDK_ROOT
61 include external/stlport/libstlport.mk
62 endif
63 include $(BUILD_STATIC_LIBRARY)