Take out Engine header files for Android Build.
authorHussein Kasem <huss@pep-project.org>
Wed, 13 Dec 2017 15:35:12 +0100
changeset 233171c86f7d4c77
parent 2330 783d3b1eaa21
child 2332 23ed7bbd53f4
child 2336 67b76440cfde
Take out Engine header files for Android Build.
build-android/jni/Android.mk
build-android/takeOutHeaderFiles.sh
     1.1 --- a/build-android/jni/Android.mk	Sat Dec 23 18:41:02 2017 +0100
     1.2 +++ b/build-android/jni/Android.mk	Wed Dec 13 15:35:12 2017 +0100
     1.3 @@ -29,13 +29,13 @@
     1.4  #
     1.5  LOCAL_CFLAGS    += -DSQLITE_TEMP_STORE=3
     1.6  
     1.7 -LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../src \
     1.8 -                    $(LOCAL_PATH)/../../asn.1 \
     1.9 +LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../asn.1 \
    1.10                      $(GPGME_INCLUDE_PATH) \
    1.11                      $(LIBETPAN_PATH)/include
    1.12  LOCAL_C_INCLUDES += $(GPGBUILD)/include
    1.13  
    1.14 -LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)/../../src
    1.15 +$(shell sh $(LOCAL_PATH)/../takeOutHeaderFiles.sh $(LOCAL_PATH)../../)
    1.16 +LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)../include
    1.17  
    1.18  ENGINE_SRC_FILES := $(shell find $(LOCAL_PATH)/../../src/ ! -name "*netpgp*" -name "*.c")
    1.19  #ENGINE_SRC_FILES := $(wildcard $(LOCAL_PATH)/../../src/*.c)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/build-android/takeOutHeaderFiles.sh	Wed Dec 13 15:35:12 2017 +0100
     2.3 @@ -0,0 +1,9 @@
     2.4 +#!/bin/sh
     2.5 +
     2.6 +set -e
     2.7 +engine_dir="$1"
     2.8 +
     2.9 +mkdir -p "$engine_dir/build-android/include/pEp"
    2.10 +cd "$engine_dir/src"
    2.11 +cp *.h "$engine_dir/build-android/include/pEp"
    2.12 +