6cc7a0bac2111c2303c1dd729e7b9f503ab7601d
[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     android/cpu-features.c \
21     cpu_features_android.c \
22     sort.cc \
23     aligned_malloc.cc \
24     atomic32_posix.cc \
25     condition_variable.cc \
26     cpu_features.cc \
27     cpu_info.cc \
28     critical_section.cc \
29     event.cc \
30     event_tracer.cc \
31     file_impl.cc \
32     list_no_stl.cc \
33     rw_lock.cc \
34     thread.cc \
35     trace_impl.cc \
36     condition_variable_posix.cc \
37     critical_section_posix.cc \
38     event_posix.cc \
39     sleep.cc \
40     thread_posix.cc \
41     tick_util.cc \
42     trace_posix.cc \
43     rw_lock_posix.cc 
44
45 LOCAL_CFLAGS := \
46     $(MY_WEBRTC_COMMON_DEFS)
47
48 LOCAL_C_INCLUDES := \
49     $(LOCAL_PATH)/../.. \
50     $(LOCAL_PATH)/../interface \
51     $(LOCAL_PATH)/spreadsortlib \
52     external/webrtc
53
54 LOCAL_SHARED_LIBRARIES := \
55     libcutils \
56     libdl \
57     libstlport
58
59 ifndef NDK_ROOT
60 include external/stlport/libstlport.mk
61 endif
62 include $(BUILD_STATIC_LIBRARY)