2012-02-27 14:04:38 +10:30
|
|
|
# Included by top-level Android.mk
|
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
SERVALD_SRC_FILES = \
|
2012-05-15 11:09:21 +09:30
|
|
|
serval-dna/main.c \
|
|
|
|
serval-dna/overlay_abbreviations.c \
|
2012-02-27 14:04:38 +10:30
|
|
|
serval-dna/overlay_advertise.c \
|
|
|
|
serval-dna/overlay_buffer.c \
|
|
|
|
serval-dna/overlay_interface.c \
|
|
|
|
serval-dna/overlay_packetformats.c \
|
|
|
|
serval-dna/overlay_payload.c \
|
|
|
|
serval-dna/overlay_route.c \
|
2012-03-19 09:26:52 +10:30
|
|
|
serval-dna/overlay_mdp.c \
|
2012-02-27 14:04:38 +10:30
|
|
|
serval-dna/batman.c \
|
|
|
|
serval-dna/ciphers.c \
|
|
|
|
serval-dna/client.c \
|
2012-02-27 14:13:05 +10:30
|
|
|
serval-dna/commandline.c \
|
2012-02-27 14:04:38 +10:30
|
|
|
serval-dna/dataformats.c \
|
|
|
|
serval-dna/dna.c \
|
2012-05-14 18:32:10 +09:30
|
|
|
serval-dna/log.c \
|
|
|
|
serval-dna/mkdir.c \
|
2012-05-19 14:02:03 +09:30
|
|
|
serval-dna/strbuf.c \
|
2012-02-27 14:04:38 +10:30
|
|
|
serval-dna/gateway.c \
|
|
|
|
serval-dna/overlay.c \
|
|
|
|
serval-dna/overlay_broadcast.c \
|
|
|
|
serval-dna/packetformats.c \
|
|
|
|
serval-dna/peers.c \
|
|
|
|
serval-dna/randombytes.c \
|
|
|
|
serval-dna/rhizome.c \
|
|
|
|
serval-dna/rhizome_bundle.c \
|
|
|
|
serval-dna/rhizome_crypto.c \
|
|
|
|
serval-dna/rhizome_database.c \
|
|
|
|
serval-dna/rhizome_fetch.c \
|
|
|
|
serval-dna/rhizome_http.c \
|
|
|
|
serval-dna/rhizome_packetformats.c \
|
|
|
|
serval-dna/responses.c \
|
|
|
|
serval-dna/serval_packetvisualise.c \
|
|
|
|
serval-dna/server.c \
|
2012-03-01 13:36:36 +10:30
|
|
|
serval-dna/trans_cache.c \
|
2012-02-27 14:04:38 +10:30
|
|
|
serval-dna/sha2.c \
|
|
|
|
serval-dna/simulate.c \
|
2012-04-10 13:50:27 +09:30
|
|
|
serval-dna/srandomdev.c \
|
2012-04-19 07:14:51 +09:30
|
|
|
serval-dna/keyring.c \
|
2012-04-28 12:25:19 +09:30
|
|
|
serval-dna/vomp.c \
|
2012-05-03 03:42:35 +09:30
|
|
|
serval-dna/lsif.c \
|
2012-05-08 14:40:39 +09:30
|
|
|
serval-dna/monitor.c \
|
2012-05-10 03:46:27 +09:30
|
|
|
serval-dna/monitor-cli.c \
|
|
|
|
serval-dna/codecs.c \
|
|
|
|
serval-dna/audiodevices.c \
|
2012-05-10 18:29:27 +09:30
|
|
|
serval-dna/audio_msm_g1.c \
|
2012-05-11 08:00:09 +09:30
|
|
|
serval-dna/audio_alsa.c \
|
|
|
|
serval-dna/audio_reflector.c
|
2012-02-27 14:04:38 +10:30
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
SERVALD_LOCAL_CFLAGS = \
|
2012-02-27 14:04:38 +10:30
|
|
|
-DSHELL -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" \
|
|
|
|
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" \
|
|
|
|
-DHAVE_LIBC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \
|
|
|
|
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 \
|
|
|
|
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 \
|
|
|
|
-DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 \
|
|
|
|
-DHAVE_STRING_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_SOCKET_H=1 \
|
|
|
|
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_POLL_H=1 -DHAVE_NETDB_H=1 \
|
2012-05-16 11:22:10 +09:30
|
|
|
-DHAVE_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
|
2012-05-21 12:59:14 +09:30
|
|
|
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED \
|
2012-02-27 14:04:38 +10:30
|
|
|
-I$(NACL_INC) \
|
|
|
|
-I$(SQLITE3_INC)
|
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
SERVALD_LOCAL_LDLIBS = -L$(SYSROOT)/usr/lib -llog
|
|
|
|
SERVALD_LOCAL_STATIC_LIBRARIES = sqlite3 nacl
|
2012-02-27 14:04:38 +10:30
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
# Build NACL
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# Work out where NACL is
|
|
|
|
NACL_VER=$(shell cat $(LOCAL_PATH)/serval-dna/nacl/nacl-version)
|
|
|
|
NACL_BASE=serval-dna/nacl/$(NACL_VER)/build_android
|
|
|
|
NACL_INC=$(LOCAL_PATH)/$(NACL_BASE)
|
|
|
|
# Find sources
|
|
|
|
include $(LOCAL_PATH)/$(NACL_BASE)/sources.mk
|
|
|
|
LOCAL_MODULE:= nacl
|
|
|
|
LOCAL_SRC_FILES:= $(NACL_SOURCES)
|
|
|
|
LOCAL_CFLAGS += -g -I$(NACL_INC)
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-04-26 16:38:21 +09:30
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
# Build libservald.so
|
2012-04-26 16:38:21 +09:30
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 14:05:04 +09:30
|
|
|
# Find SQLITE3 headers
|
|
|
|
SQLITE3_INC=$(LOCAL_PATH)/sqlite3
|
|
|
|
# Get the list of sources
|
|
|
|
include $(LOCAL_PATH)/serval-dna/nacl/$(NACL_VER)/build_android/sources.mk
|
|
|
|
LOCAL_SRC_FILES:= $(SERVALD_SRC_FILES)
|
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS)
|
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(SERVALD_LOCAL_STATIC_LIBRARIES)
|
|
|
|
LOCAL_MODULE:= serval
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2012-04-26 16:38:21 +09:30
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
# Build libserval.so wrapper
|
|
|
|
include $(CLEAR_VARS)
|
2012-04-26 16:43:12 +09:30
|
|
|
LOCAL_SRC_FILES:= serval-dna/servalwrap.c
|
2012-05-20 14:05:04 +09:30
|
|
|
LOCAL_MODULE:= servald
|
2012-02-27 14:04:38 +10:30
|
|
|
include $(BUILD_EXECUTABLE)
|
2012-05-18 17:08:19 +09:30
|
|
|
|
2012-05-20 14:05:04 +09:30
|
|
|
# Build servald for use with gdb
|
2012-05-18 17:08:19 +09:30
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 14:05:04 +09:30
|
|
|
LOCAL_SRC_FILES:= $(SERVALD_SRC_FILES)
|
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS)
|
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(SERVALD_LOCAL_STATIC_LIBRARIES)
|
2012-05-18 17:08:19 +09:30
|
|
|
LOCAL_MODULE:= servaldsimple
|
|
|
|
include $(BUILD_EXECUTABLE)
|