[tor-commits] [orbot/master] update makefile to support PLUTO builds

n8fr8 at torproject.org n8fr8 at torproject.org
Mon Jan 4 06:45:32 UTC 2016


commit 6cf120185f9cfa5126d6770db38bdeb8f23f5ecf
Author: Nathan Freitas <nathan at freitas.net>
Date:   Wed Dec 16 10:26:28 2015 -0500

    update makefile to support PLUTO builds
---
 external/Makefile |   29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/external/Makefile b/external/Makefile
index 587fae4..e6441e0 100644
--- a/external/Makefile
+++ b/external/Makefile
@@ -272,6 +272,25 @@ polipo-clean:
 	-rm -f polipo-build-stamp
 
 #------------------------------------------------------------------------------#
+# PLUTO Pluggable Transports
+
+pluto/bin/android_arm/obfs4proxy:
+	cd pluto && \
+		build.sh
+
+pluto-build-stamp: pluto/bin/android_arm/obfs4proxy
+	touch pluto-build-stamp
+
+pluto: pluto-build-stamp
+	test -d bin || mkdir bin
+	cp pluto/bin/android_arm/obfs4proxy bin
+	cp pluto/bin/android_arm/meek-client bin
+
+pluto-clean:
+	-rm -rf pluto/bin
+	-rm pluto/bin/android_arm/obfs4proxy
+
+#------------------------------------------------------------------------------#
 # JTorControl library
 
 jtorctl/bin/jtorctl.jar:
@@ -297,7 +316,7 @@ jtorctl-clean:
 #in order to stop Android OS (older devices) from trying to compress/decompress it
 #this is related to a bug in compression of assets and resources > 1MB
 
-assets: tor polipo jtorctl iptables
+assets: tor polipo jtorctl iptables pluto
 	install -d ../libs
 	install bin/jtorctl.jar ../libs
 	install -d ../assets/$(APP_ABI)
@@ -307,18 +326,24 @@ assets: tor polipo jtorctl iptables
 	-zip ../assets/$(APP_ABI)/tor.mp3 bin/tor
 	-$(STRIP) bin/xtables
 	-zip ../assets/$(APP_ABI)/xtables.mp3 bin/xtables
+	-$(STRIP) bin/meek-client
+	-zip ../assets/$(APP_ABI)/meek-client.mp3 bin/meek-client
+	-$(STRIP) bin/obfs4proxy
+	-zip ../assets/$(APP_ABI)/obfs4proxy.mp3 bin/obfs4proxy
 
 assets-clean:
 	-rm ../assets/$(APP_ABI)/polipo.mp3
 	-rm ../assets/$(APP_ABI)/tor.mp3
 	-rm ../assets/$(APP_ABI)/xtables.mp3
+	-rm ../assets/$(APP_ABI)/meek-client.mp3
+	-rm ../assets/$(APP_ABI)/obfs4proxy.mp3
 	-rm ../libs/jtorctl.jar
 
 #------------------------------------------------------------------------------#
 # cleanup, cleanup, put the toys away
 
 ##clean: openssl-clean libevent-clean tor-clean polipo-clean jtorctl-clean assets-clean
-clean: openssl-clean libevent-clean tor-clean polipo-clean iptables-clean jtorctl-clean assets-clean
+clean: openssl-clean libevent-clean tor-clean polipo-clean iptables-clean jtorctl-clean assets-clean pluto-clean
 
 #------------------------------------------------------------------------------#
 # debugging stuff





More information about the tor-commits mailing list