forked from libswift/libswift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
35 lines (20 loc) · 1.02 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libevent2
LOCAL_SRC_FILES := libevent2/lib/libevent.a
LOCAL_EXPORT_C_INCLUDES := libevent2/include
LOCAL_C_INCLUDES := libevent2/include
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := openssl
LOCAL_SRC_FILES := openssl/lib/libcryptossl.a
LOCAL_EXPORT_C_INCLUDES := openssl/include
LOCAL_C_INCLUDES := openssl/include
include $(PREBUILT_STATIC_LIBRARY)
LOCAL_MODULE := swift
LOCAL_SRC_FILES := NativeLib.cpp sha1.cpp compat.cpp sendrecv.cpp send_control.cpp hashtree.cpp bin.cpp binmap.cpp channel.cpp transfer.cpp httpgw.cpp statsgw.cpp cmdgw.cpp avgspeed.cpp avail.cpp storage.cpp api.cpp live.cpp content.cpp zerostate.cpp zerohashtree.cpp swarmmanager.cpp address.cpp livehashtree.cpp livesig.cpp exttrack.cpp
LOCAL_CFLAGS += -D__NEW__ -DOPENSSL
LOCAL_STATIC_LIBRARIES := libevent2 openssl
# Log from native: http://mobilepearls.com/labs/native-android-api/#logging
# LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)