2012-02-27 03:34:38 +00:00
|
|
|
# Included by top-level Android.mk
|
|
|
|
|
2014-03-03 01:42:56 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
include $(LOCAL_PATH)/sourcefiles.mk
|
2012-10-24 18:00:14 +00:00
|
|
|
SERVALD_SRC_FILES = $(SERVAL_SOURCES) $(ANDROIDONLY_SOURCES)
|
2014-03-03 01:42:56 +00:00
|
|
|
NACL_BASE = nacl/src
|
|
|
|
NACL_INC := $(LOCAL_PATH)/nacl/include
|
|
|
|
include $(LOCAL_PATH)/$(NACL_BASE)/nacl.mk
|
|
|
|
SQLITE3_INC := $(LOCAL_PATH)/sqlite-amalgamation-3070900
|
2012-02-27 03:34:38 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
SERVALD_LOCAL_CFLAGS = \
|
2012-05-28 03:29:38 +00:00
|
|
|
-g \
|
2013-12-06 04:38:40 +00:00
|
|
|
-DSERVALD_VERSION="\"Android\"" -DSERVALD_COPYRIGHT="\"Android\"" \
|
2012-02-27 03:34:38 +00:00
|
|
|
-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 01:52:10 +00:00
|
|
|
-DHAVE_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
|
2013-09-18 07:06:28 +00:00
|
|
|
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED -DUSE_ABSTRACT_NAMESPACE \
|
2014-02-19 06:02:25 +00:00
|
|
|
-DHAVE_BCOPY -DHAVE_BZERO -DHAVE_NETINET_IN_H -DHAVE_LSEEK64 -DSIZEOF_OFF_T=4 \
|
2012-02-27 03:34:38 +00:00
|
|
|
-I$(NACL_INC) \
|
|
|
|
-I$(SQLITE3_INC)
|
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
SERVALD_LOCAL_LDLIBS = -L$(SYSROOT)/usr/lib -llog
|
2012-02-27 03:34:38 +00:00
|
|
|
|
2014-03-03 01:42:56 +00:00
|
|
|
# Build libserval.so
|
2012-05-20 04:35:04 +00:00
|
|
|
include $(CLEAR_VARS)
|
2014-03-03 01:42:56 +00:00
|
|
|
LOCAL_SRC_FILES := $(NACL_SOURCES) $(SERVALD_SRC_FILES) version_servald.c
|
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS)
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
2014-03-03 01:42:56 +00:00
|
|
|
LOCAL_MODULE := serval
|
2012-05-20 04:35:04 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2012-04-26 07:08:21 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
include $(CLEAR_VARS)
|
2014-03-03 01:42:56 +00:00
|
|
|
LOCAL_SRC_FILES:= servalwrap.c
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_MODULE:= servald
|
2012-02-27 03:34:38 +00:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2012-05-18 07:38:19 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
# Build servald for use with gdb
|
2012-05-18 07:38:19 +00:00
|
|
|
include $(CLEAR_VARS)
|
2014-03-03 01:42:56 +00:00
|
|
|
LOCAL_SRC_FILES:= $(NACL_SOURCES) $(SERVALD_SRC_FILES) version_servald.c
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS)
|
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(SERVALD_LOCAL_STATIC_LIBRARIES)
|
2012-05-18 07:38:19 +00:00
|
|
|
LOCAL_MODULE:= servaldsimple
|
|
|
|
include $(BUILD_EXECUTABLE)
|