This repository was archived by the owner on Oct 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +117
-1
lines changed Expand file tree Collapse file tree 5 files changed +117
-1
lines changed Original file line number Diff line number Diff line change @@ -60,4 +60,8 @@ libmesode.project
6060.tern-project
6161compile_commands.json
6262libmesode.workspace
63+ libs /
64+ obj /
65+ expat /
66+ docs /doxygen_sqlite3.db
6367
Original file line number Diff line number Diff line change 1- 0.8.9
1+ 0.9.0
22 - IPv6 support
33 - Legacy SSL support
4+ - Initial Android support
45 - New API:
56 - xmpp_uuid_gen()
67 - xmpp_conn_get_flags()
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ DIR=` dirname $0 `
4+ EXPAT_PATH=" $DIR /expat"
5+ EXPAT_FILE=' lib/expat.h'
6+
7+ if [ ! -d $EXPAT_PATH ]; then
8+ mkdir $EXPAT_PATH
9+ fi
10+
11+ # TODO Accept expat tarball as argument and extract it to the right place.
12+
13+ if [ ! -d $EXPAT_PATH /lib -o ! -f " $EXPAT_PATH /$EXPAT_FILE " ]; then
14+ cat << EOT
15+ Error: expat sources not found.
16+
17+ Extract expat sources to $EXPAT_PATH . Make sure $EXPAT_PATH /$EXPAT_FILE and
18+ other source files exist.
19+ EOT
20+ exit 1
21+ fi
22+
23+ ndk-build -C " $DIR " clean || exit 1
24+ ndk-build -C " $DIR " || exit 1
25+
26+ echo
27+ echo " basic example:"
28+ ls -l " $DIR " /libs/* /basic
29+ echo
30+ echo " libstrophe.a:"
31+ ls -l " $DIR " /obj/local/* /libstrophe.a
Original file line number Diff line number Diff line change 1+ LOCAL_PATH: = $(call my-dir)
2+
3+ #
4+ # examples/basic
5+ #
6+
7+ include $(CLEAR_VARS )
8+ LOCAL_MODULE := basic
9+ LOCAL_CFLAGS :=
10+ LOCAL_C_INCLUDES := \
11+ $(LOCAL_PATH ) /..
12+
13+ LOCAL_SRC_FILES := \
14+ ../examples/basic.c
15+
16+ LOCAL_STATIC_LIBRARIES := libstrophe libexpat
17+
18+ include $(BUILD_EXECUTABLE )
19+
20+ #
21+ # libstrohe (static library)
22+ #
23+
24+ include $(CLEAR_VARS )
25+ LOCAL_MODULE := libstrophe
26+ LOCAL_CFLAGS :=
27+ LOCAL_C_INCLUDES := \
28+ $(LOCAL_PATH ) /.. \
29+ $(LOCAL_PATH ) /../src \
30+ $(LOCAL_PATH ) /../expat/lib
31+
32+ LOCAL_SRC_FILES := \
33+ ../src/auth.c \
34+ ../src/conn.c \
35+ ../src/crypto.c \
36+ ../src/ctx.c \
37+ ../src/event.c \
38+ ../src/handler.c \
39+ ../src/hash.c \
40+ ../src/jid.c \
41+ ../src/md5.c \
42+ ../src/parser_expat.c \
43+ ../src/rand.c \
44+ ../src/resolver.c \
45+ ../src/sasl.c \
46+ ../src/scram.c \
47+ ../src/sha1.c \
48+ ../src/snprintf.c \
49+ ../src/sock.c \
50+ ../src/stanza.c \
51+ ../src/tls_dummy.c \
52+ ../src/util.c \
53+ ../src/uuid.c
54+
55+ LOCAL_STATIC_LIBRARIES := libstrophe
56+
57+ include $(BUILD_STATIC_LIBRARY )
58+
59+ #
60+ # expat
61+ #
62+
63+ include $(CLEAR_VARS )
64+ LOCAL_MODULE := libexpat
65+ LOCAL_CFLAGS := -DHAVE_MEMMOVE
66+ # LOCAL_C_INCLUDES := \
67+ # $(LOCAL_PATH)/expat
68+
69+ LOCAL_SRC_FILES := \
70+ ../expat/lib/xmlparse.c \
71+ ../expat/lib/xmlrole.c \
72+ ../expat/lib/xmltok.c \
73+ ../expat/lib/xmltok_impl.c \
74+ ../expat/lib/xmltok_ns.c
75+
76+ LOCAL_STATIC_LIBRARIES := libexpat
77+
78+ include $(BUILD_STATIC_LIBRARY )
Original file line number Diff line number Diff line change 1+ APP_ABI := armeabi armeabi-v7a mips x86
2+ APP_PLATFORM := android-19
You can’t perform that action at this time.
0 commit comments