Home | History | Annotate | Download | only in cmd_test
      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 # voice engine test app
     12 
     13 include $(CLEAR_VARS)
     14 
     15 include $(LOCAL_PATH)/../../../../../android-webrtc.mk
     16 
     17 LOCAL_MODULE_TAGS := tests
     18 LOCAL_CPP_EXTENSION := .cc
     19 LOCAL_SRC_FILES:= \
     20     voe_cmd_test.cc
     21 
     22 # Flags passed to both C and C++ files.
     23 LOCAL_CFLAGS := \
     24     '-DWEBRTC_TARGET_PC' \
     25     '-DWEBRTC_ANDROID' \
     26     '-DDEBUG'
     27 
     28 LOCAL_C_INCLUDES := \
     29     $(LOCAL_PATH)/../../interface \
     30     $(LOCAL_PATH)/../../../.. \
     31     $(LOCAL_PATH)/../../../../.. \
     32     external/gtest/include \
     33     frameworks/base/include
     34 
     35 LOCAL_SHARED_LIBRARIES := \
     36     libutils \
     37     libmedia \
     38     libcamera_client \
     39     libgui \
     40     libhardware \
     41     libandroid_runtime \
     42     libbinder
     43 
     44 #libwilhelm.so libDunDef-Android.so libbinder.so libsystem_server.so 
     45 
     46 LOCAL_MODULE:= webrtc_voe_cmd
     47 
     48 ifdef NDK_ROOT
     49 LOCAL_SHARED_LIBRARIES += \
     50     libstlport_shared \
     51     libwebrtc-voice-jni \
     52     libwebrtc_audio_preprocessing
     53 include $(BUILD_EXECUTABLE)
     54 else
     55 LOCAL_SHARED_LIBRARIES += \
     56     libstlport \
     57     libwebrtc
     58 include external/stlport/libstlport.mk
     59 include $(BUILD_NATIVE_TEST)
     60 endif
     61