updated makefile to fix issues resources
- moved jtorctrl.jar to jtorctl.jar for consistency with source library - make assets now zips up tor binary and renames to .mp3 extension to handle issues with older Android devices breaking when trying to decompress a large file. By naming mp3, there is no attempt to decompress.
This commit is contained in:
parent
df0f236858
commit
0604eb2ba0
|
@ -3,7 +3,7 @@
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="gen"/>
|
<classpathentry kind="src" path="gen"/>
|
||||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||||
<classpathentry kind="lib" path="libs/jtorctrl.jar"/>
|
<classpathentry kind="lib" path="libs/jtorctl.jar"/>
|
||||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||||
<classpathentry kind="output" path="bin/classes"/>
|
<classpathentry kind="output" path="bin/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -187,7 +187,7 @@ obfsproxy-clean:
|
||||||
# privoxy
|
# privoxy
|
||||||
|
|
||||||
|
|
||||||
privoxy/Makefile:
|
privoxy/config.log:
|
||||||
cd privoxy && \
|
cd privoxy && \
|
||||||
autoheader
|
autoheader
|
||||||
cd privoxy && \
|
cd privoxy && \
|
||||||
|
@ -199,7 +199,7 @@ privoxy/Makefile:
|
||||||
./configure \
|
./configure \
|
||||||
--host=arm-linux-eabi --disable-pthread
|
--host=arm-linux-eabi --disable-pthread
|
||||||
|
|
||||||
privoxy-build-stamp: privoxy/Makefile
|
privoxy-build-stamp: privoxy/config.log
|
||||||
$(MAKE) -C privoxy
|
$(MAKE) -C privoxy
|
||||||
touch privoxy-build-stamp
|
touch privoxy-build-stamp
|
||||||
|
|
||||||
|
@ -219,34 +219,45 @@ privoxy-clean:
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# JTorControl library
|
# JTorControl library
|
||||||
|
|
||||||
jtorctrl:
|
jtorctl/bin/jtorctl.jar:
|
||||||
test -d jtorctl/bin || mkdir jtorctl/bin
|
test -d jtorctl/bin || mkdir jtorctl/bin
|
||||||
cd jtorctl && \
|
cd jtorctl && \
|
||||||
javac net/freehaven/tor/control/TorControlConnection.java -d bin
|
javac net/freehaven/tor/control/TorControlConnection.java -d bin
|
||||||
cd jtorctl/bin && \
|
cd jtorctl/bin && \
|
||||||
jar cvf jtorctrl.jar *
|
jar cvf jtorctl.jar *
|
||||||
cp jtorctl/bin/jtorctrl.jar bin
|
|
||||||
|
|
||||||
jtorctrl-clean:
|
jtorctl-build-stamp: jtorctl/bin/jtorctl.jar
|
||||||
-rm bin/jtorctrl.jar
|
touch jtorctl-build-stamp
|
||||||
|
|
||||||
|
jtorctl: jtorctl-build-stamp
|
||||||
|
test -d bin || mkdir bin
|
||||||
|
cp jtorctl/bin/jtorctl.jar bin
|
||||||
|
|
||||||
|
jtorctl-clean:
|
||||||
|
-rm -rf jtorctl/bin
|
||||||
|
-rm jtorctl-build-stamp
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# cleanup, cleanup, put the toys away
|
#create and clean assets: FYI - tor is stored as a ZIP file with an mp3 extension
|
||||||
assets: tor privoxy jtorctrl obfsproxy
|
#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 privoxy jtorctl obfsproxy
|
||||||
install -d ../res/raw
|
install -d ../res/raw
|
||||||
install -d ../libs
|
install -d ../libs
|
||||||
install bin/tor ../res/raw
|
|
||||||
install bin/privoxy ../res/raw
|
install bin/privoxy ../res/raw
|
||||||
install bin/obfsproxy ../res/raw
|
install bin/obfsproxy ../res/raw
|
||||||
install bin/jtorctrl.jar ../libs
|
install bin/jtorctl.jar ../libs
|
||||||
|
cd bin && \
|
||||||
|
zip ../../res/raw/tor.mp3 tor
|
||||||
|
|
||||||
assets-clean:
|
assets-clean:
|
||||||
-rm ../res/raw/tor
|
-rm ../res/raw/tor.mp3
|
||||||
-rm ../res/raw/privoxy
|
-rm ../res/raw/privoxy
|
||||||
-rm ../libs/jtorctrl.jar
|
-rm ../libs/jtorctl.jar
|
||||||
-rm ../res/raw/obfsproxy
|
-rm ../res/raw/obfsproxy
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
# cleanup, cleanup, put the toys away
|
# cleanup, cleanup, put the toys away
|
||||||
|
|
||||||
clean: openssl-static-clean libevent-clean tor-clean privoxy-clean jtorctrl-clean assets-clean
|
clean: openssl-static-clean libevent-clean tor-clean privoxy-clean jtorctl-clean assets-clean
|
||||||
|
|
Loading…
Reference in New Issue