Merge pull request 'PEMA-103-hotfix' (#12) from TSaschabc/libpEpTransport:PEMA-103-hotfix into master

Reviewed-on: #12
master
positron 3 weeks ago
commit 03b63f6d4f
  1. 28
      build-android/jni/Android.mk
  2. 5
      build-android/jni/Application.mk
  3. 10
      build-android/takeOutHeaderFiles.sh

@ -0,0 +1,28 @@
$(warning ==== LIBPEPTRANSPORT android.mk START)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := pEpTransport
#LOCAL_CPP_FEATURES += exceptions
LOCAL_CPPFLAGS += -std=c99
#FIXME: WORKAROUND
STUB = $(shell sh $(LOCAL_PATH)/../takeOutHeaderFiles.sh $(LOCAL_PATH)/../../../pEpEngine/ $(LOCAL_PATH)/../../)
$(info $(STUB))
LIB_PEP_TRANSPORT_INCLUDE_FILES := $(wildcard $(LOCAL_PATH)/../../src/*.h*)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../pEpEngine/build-android/include \
$(LIB_PEP_TRANSPORT_INCLUDE_FILES:%=%)
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)../include
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../src/*.c)
include $(BUILD_STATIC_LIBRARY)

@ -0,0 +1,5 @@
APP_STL := c++_shared
APP_OPTIM := debug
APP_PLATFORM=android-18
APP_ABI := armeabi-v7a
NDK_TOOLCHAIN_VERSION = clang

@ -0,0 +1,10 @@
#!/bin/sh
echo "Install script"
set -e
engine_dir="$1"
adapter_dir="$2"
mkdir -p "$engine_dir/build-android/include/pEp"
cp $2/src/*.h* "$engine_dir/build-android/include/pEp"
Loading…
Cancel
Save