- update src.
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / video_engine / 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_vie_core
17 LOCAL_MODULE_TAGS := optional
18 LOCAL_CPP_EXTENSION := .cc
19 LOCAL_SRC_FILES := \
20     vie_base_impl.cc \
21     vie_capture_impl.cc \
22     vie_codec_impl.cc \
23     vie_encryption_impl.cc \
24     vie_external_codec_impl.cc \
25     vie_file_impl.cc \
26     vie_image_process_impl.cc \
27     vie_impl.cc \
28     vie_network_impl.cc \
29     vie_ref_count.cc \
30     vie_render_impl.cc \
31     vie_rtp_rtcp_impl.cc \
32     vie_shared_data.cc \
33     vie_capturer.cc \
34     vie_channel.cc \
35     vie_channel_group.cc \
36     vie_channel_manager.cc \
37     vie_encoder.cc \
38     vie_file_image.cc \
39     vie_file_player.cc \
40     vie_file_recorder.cc \
41     vie_frame_provider_base.cc \
42     vie_input_manager.cc \
43     vie_manager_base.cc \
44     vie_performance_monitor.cc \
45     vie_receiver.cc \
46     vie_remb.cc \
47     vie_renderer.cc \
48     vie_render_manager.cc \
49     vie_sender.cc \
50     vie_sync_module.cc
51
52 # Flags passed to both C and C++ files.
53 LOCAL_CFLAGS := \
54     $(MY_WEBRTC_COMMON_DEFS)
55
56 LOCAL_C_INCLUDES := \
57     $(LOCAL_PATH)/include\
58     $(LOCAL_PATH)/.. \
59     $(LOCAL_PATH)/../common_video/interface \
60     $(LOCAL_PATH)/../common_video/jpeg/main/interface \
61     $(LOCAL_PATH)/../common_video/vplib/main/interface \
62     $(LOCAL_PATH)/../modules/interface \
63     $(LOCAL_PATH)/../modules/audio_coding/main/interface \
64     $(LOCAL_PATH)/../modules/media_file/interface \
65     $(LOCAL_PATH)/../modules/rtp_rtcp/interface \
66     $(LOCAL_PATH)/../modules/udp_transport/interface \
67     $(LOCAL_PATH)/../modules/utility/interface \
68     $(LOCAL_PATH)/../modules/video_capture/main/interface \
69     $(LOCAL_PATH)/../modules/video_capture/main/source \
70     $(LOCAL_PATH)/../modules/video_capture/main/source/Android \
71     $(LOCAL_PATH)/../modules/video_coding/codecs/interface \
72     $(LOCAL_PATH)/../modules/video_coding/main/interface \
73     $(LOCAL_PATH)/../modules/video_mixer/main/interface \
74     $(LOCAL_PATH)/../modules/video_processing/main/interface \
75     $(LOCAL_PATH)/../modules/video_render/main/interface \
76     $(LOCAL_PATH)/../system_wrappers/interface \
77     $(LOCAL_PATH)/../voice_engine/include
78
79 LOCAL_SHARED_LIBRARIES := \
80     libcutils \
81     libdl \
82     libstlport
83
84 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
85 LOCAL_LDLIBS += -ldl -lpthread
86 endif
87
88 ifneq ($(TARGET_SIMULATOR),true)
89 LOCAL_SHARED_LIBRARIES += libdl
90 endif
91
92 ifndef NDK_ROOT
93 include external/stlport/libstlport.mk
94 endif
95 include $(BUILD_STATIC_LIBRARY)