[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] support variable arch builds to support x86



commit e7a7d8c7cd91e46768077e92580c030b7501496c
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Sat Apr 11 21:16:20 2015 -0400

    support variable arch builds to support x86
    move asset builds to /assets folder
---
 external/Makefile |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/external/Makefile b/external/Makefile
index befa030..5b13fb5 100644
--- a/external/Makefile
+++ b/external/Makefile
@@ -23,11 +23,11 @@ endif
 
 # Android NDK setup
 NDK_BASE ?= /opt/android-ndk
-NDK_PLATFORM_LEVEL ?= 19
+NDK_PLATFORM_LEVEL ?= 16
 NDK_ABI ?= arm
 NDK_TOOLCHAIN_VERSION=4.8
-NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
 APP_ABI ?= armeabi
+NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
 NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
 ifeq ($(NDK_ABI),x86)
  HOST = i686-linux-android
@@ -223,6 +223,7 @@ polipo: polipo-build-stamp
 	cp polipo/polipo bin
 
 polipo-clean:
+	$(MAKE) -C polipo clean
 	-rm -f polipo/polipo
 	-rm -f bin/polipo
 	-rm -f polipo-build-stamp
@@ -256,18 +257,18 @@ jtorctl-clean:
 assets: tor polipo jtorctl iptables
 	install -d ../libs
 	install bin/jtorctl.jar ../libs
-	install -d ../res/raw
+	install -d ../assets/$(APP_ABI)
 	-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/polipo
-	-zip ../res/raw/polipo.mp3 bin/polipo
+	-zip ../assets/$(APP_ABI)/polipo.mp3 bin/polipo
 	-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/tor
-	-zip ../res/raw/tor.mp3 bin/tor
+	-zip ../assets/$(APP_ABI)/tor.mp3 bin/tor
 	-$(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip --strip-debug bin/xtables
-	-zip ../res/raw/xtables.mp3 bin/xtables
+	-zip ../assets/$(APP_ABI)/xtables.mp3 bin/xtables
 
 assets-clean:
-	-rm ../res/raw/polipo.mp3
-	-rm ../res/raw/tor.mp3
-	-rm ../res/raw/xtables.mp3
+	-rm ../assets/$(APP_ABI)/polipo.mp3
+	-rm ../assets/$(APP_ABI)/tor.mp3
+	-rm ../assets/$(APP_ABI)/xtables.mp3
 	-rm ../libs/jtorctl.jar
 
 #------------------------------------------------------------------------------#



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits