Home | History | Annotate | Download | only in jni
      1 #  Copyright (c) 2011 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 # the follow two lines are for NDK build
     12 INTERFACES_PATH := $(LOCAL_PATH)/../../../../../../build/interface
     13 LIBS_PATH := $(LOCAL_PATH)/../../../../../../build/libraries
     14 
     15 include $(CLEAR_VARS)
     16 
     17 LOCAL_MODULE_TAGS := tests
     18 LOCAL_MODULE := libwebrtc-video-autotest-jni
     19 LOCAL_CPP_EXTENSION := .cc
     20 LOCAL_SRC_FILES := \
     21     vie_autotest_jni.cc \
     22     ../../source/vie_autotest_android.cc \
     23     ../../source/vie_autotest.cc \
     24     ../../source/vie_autotest_base.cc \
     25     ../../source/vie_autotest_capture.cc \
     26     ../../source/vie_autotest_codec.cc \
     27     ../../source/vie_autotest_file.cc \
     28     ../../source/vie_autotest_image_process.cc \
     29     ../../source/vie_autotest_loopback.cc \
     30     ../../source/vie_autotest_network.cc \
     31     ../../source/vie_autotest_render.cc \
     32     ../../source/vie_autotest_rtp_rtcp.cc \
     33     ../../source/tb_I420_codec.cc \
     34     ../../source/tb_capture_device.cc \
     35     ../../source/tb_external_transport.cc \
     36     ../../source/tb_interfaces.cc \
     37     ../../source/tb_video_channel.cc
     38 
     39 LOCAL_CFLAGS := \
     40     '-DWEBRTC_TARGET_PC' \
     41     '-DWEBRTC_ANDROID' \
     42     '-DWEBRTC_ANDROID_OPENSLES'
     43 
     44 LOCAL_C_INCLUDES := \
     45     external/gtest/include \
     46     $(LOCAL_PATH)/../interface \
     47     $(LOCAL_PATH)/../../interface \
     48     $(LOCAL_PATH)/../../../interface \
     49     $(LOCAL_PATH)/../../.. \
     50     $(LOCAL_PATH)/../../../../.. \
     51     $(LOCAL_PATH)/../../../../../common_video/interface \
     52     $(LOCAL_PATH)/../../../../../common_video/vplib/main/interface \
     53     $(LOCAL_PATH)/../../../../../modules/interface \
     54     $(LOCAL_PATH)/../../../../../modules/video_capture/main/interface \
     55     $(LOCAL_PATH)/../../../../../modules/video_capture/main/source \
     56     $(LOCAL_PATH)/../../../../../modules/video_coding/codecs/interface \
     57     $(LOCAL_PATH)/../../../../../modules/video_render/main/interface \
     58     $(LOCAL_PATH)/../../../../../voice_engine/include \
     59     $(LOCAL_PATH)/../../../../../system_wrappers/interface
     60 
     61 LOCAL_PRELINK_MODULE := false
     62 
     63 LOCAL_SHARED_LIBRARIES := \
     64     libutils \
     65     libstlport \
     66     libandroid \
     67     libwebrtc \
     68     libGLESv2
     69 
     70 # the following line is for NDK build
     71 LOCAL_LDLIBS     := $(LIBS_PATH)/VideoEngine_android_gcc.a -llog -lgcc
     72 
     73 ifndef NDK_ROOT
     74 include external/stlport/libstlport.mk
     75 endif
     76 include $(BUILD_SHARED_LIBRARY)
     77