Skip to content

Commit

Permalink
Move tinc sources to tinc, and update to 1.0.24.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilbrekin committed Jun 23, 2014
1 parent 6e9946b commit f069654
Show file tree
Hide file tree
Showing 11 changed files with 454 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[submodule "src_tinc/tinc"]
path = src_tinc/tinc
url = http://tinc-vpn.org/git/tinc
ignore = dirty
[submodule "platform_external_openssl"]
path = platform_external_openssl
url = https://github.com/Vilbrekin/platform_external_openssl.git
[submodule "tinc"]
path = tinc
url = http://tinc-vpn.org/git/tinc
7 changes: 5 additions & 2 deletions jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ modules-LOCALS += SRC_FILES_arm CFLAGS_arm SRC_FILES_arm64 CFLAGS_arm64 SRC_FILE
LOCAL_MODULE := tincd
LOCAL_LDFLAGS :=
LOCAL_LDLIBS := -lz
LOCAL_CFLAGS := -std=gnu99 -DCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\"
LOCAL_CFLAGS := -std=gnu99 -DHAVE_CONFIG_H -DCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\"
LOCAL_STATIC_LIBRARIES := libcrypto_static libssl_static
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_C_INCLUDES := tinc/src
LOCAL_SRC_FILES += tinc/src/protocol_edge.c tinc/src/xmalloc.c tinc/src/dummy_device.c tinc/src/protocol_subnet.c tinc/src/edge.c tinc/src/pidfile.c tinc/src/conf.c tinc/src/protocol_misc.c tinc/src/utils.c tinc/src/event.c tinc/src/protocol_key.c tinc/src/raw_socket_device.c tinc/src/protocol.c tinc/src/net_socket.c tinc/src/logger.c tinc/src/list.c tinc/src/fake-getaddrinfo.c tinc/src/net.c tinc/src/tincd.c tinc/src/graph.c tinc/src/process.c tinc/src/net_packet.c tinc/src/netutl.c tinc/src/linux/device.c tinc/src/avl_tree.c tinc/src/route.c tinc/src/meta.c tinc/src/protocol_auth.c tinc/src/net_setup.c tinc/src/getopt.c tinc/src/multicast_device.c tinc/src/connection.c tinc/src/subnet.c tinc/src/node.c tinc/src/fake-getnameinfo.c tinc/src/getopt1.c tinc/src/dropin.c
OPENSSL_DIR := $(NDK_PROJECT_PATH)/platform_external_openssl
LOCAL_C_INCLUDES := $(OPENSSL_DIR)/include

# Hack around missing #ifdef HAVE_CONFIG_H in system.h and relative paths includes (so that it finds ../config.h file)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/tinc

include $(BUILD_EXECUTABLE)

# Dependency on OpenSSL
Expand Down
Loading

0 comments on commit f069654

Please sign in to comment.