build-android/jni/Android.mk
author Volker Birk <vb@pep-project.org>
Mon, 06 May 2019 15:44:16 +0200
branchsync
changeset 3635 137abddfa112
parent 3469 ff201109d96e
child 3741 6f92319aefbb
permissions -rw-r--r--
Removed tag 1.3.1-RC2-sync
     1 # Copyleft 2015 pEp foundation
     2 #
     3 # This file is under GNU General Public License 3.0
     4 # see LICENSE.txt
     5 LOCAL_PATH := $(call my-dir)
     6 
     7 LIBETPAN_PATH:=  $(LOCAL_PATH)/../../../pEpJNIAdapter/android/external/libetpan/build-android
     8 GPGME_INCLUDE_PATH:=  $(LOCAL_PATH)/../../../pEpJNIAdapter/android/external/data/data/pep.android.k9/app_opt/include
     9 
    10 include $(CLEAR_VARS)
    11 
    12 ifeq ($(LIBETPAN_PATH),)
    13 $(error LIBETPAN_PATH must be set)
    14 endif
    15 
    16 ifeq ($(GPGME_INCLUDE_PATH),)
    17 $(error GPGME_INCLUDE_PATH must be set)
    18 endif
    19 
    20 LOCAL_MODULE    := pEpEngine
    21 LOCAL_CFLAGS    += -std=c99
    22 
    23 # from http://www.sqlite.org/android/finfo?name=jni/sqlite/Android.mk 
    24 #      http://www.sqlite.org/android/artifact/e8ed354b3e58c835
    25 
    26 # This is important - it causes SQLite to use memory for temp files. Since 
    27 # Android has no globally writable temp directory, if this is not defined the
    28 # application throws an exception when it tries to create a temp file.
    29 #
    30 LOCAL_CFLAGS    += -DSQLITE_TEMP_STORE=3
    31 
    32 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../asn.1 \
    33                     $(GPGME_INCLUDE_PATH) \
    34                     $(LIBETPAN_PATH)/include
    35 LOCAL_C_INCLUDES += $(GPGBUILD)/include
    36 
    37 $(shell sh $(LOCAL_PATH)/../takeOutHeaderFiles.sh $(LOCAL_PATH)../../)
    38 LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)../include
    39 
    40 ENGINE_SRC_FILES := $(shell find $(LOCAL_PATH)/../../src/ ! -name "*sequoia*" ! -name "*netpgp*" -name "*.c")
    41 #ENGINE_SRC_FILES := $(wildcard $(LOCAL_PATH)/../../src/*.c)
    42 ASN1_SRC_FILES := $(wildcard $(LOCAL_PATH)/../../asn.1/*.c)
    43 LOCAL_SRC_FILES := $(ENGINE_SRC_FILES:%=%)  $(ASN1_SRC_FILES:$(LOCAL_PATH)/%=%)
    44 
    45 
    46 include $(BUILD_STATIC_LIBRARY)