commit afc97fe909b5bcee1f5849e7fbefcdf60ed38ba2 Author: bitmold <dsn...@protonmail.com> Date: Tue Dec 7 12:37:37 2021 -0500
Update BUILD.md Removed submodule that Orbot no longer has (as a git submodule), added syntax coloring --- BUILD.md | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/BUILD.md b/BUILD.md index 28b636a1..3575b117 100644 --- a/BUILD.md +++ b/BUILD.md @@ -1,8 +1,6 @@ -This document explains how to properly build an Android package of Orbot from -source. +# Building Orbot -Orbot includes, in the external directory, git repo submodules of: -- JTorControl: The Tor Control Library for Java +Orbot includes, in the external directory, git submodules of: - BadVPN - JSocks @@ -12,29 +10,33 @@ Please install the following prerequisites (instructions for each follows): - Android Native Development Kit or NDK (for C/C++ code) http://developer.android.com/sdk/ndk/index.html *(This can be installed through Android Studio's SDK Manager)* Be sure that you have all of the git submodules up-to-date: - - git submodule update --init --recursive - +```bash +git submodule update --init --recursive +``` You then need to run "ndk-build" and the following commands to compile and prepare Orbot's native code: -UNIX: - - cd orbotservice/src/main - ndk-build (located in Android/Sdk/ndk/VERSION/) - mv libs/armeabi-v7a/pdnsd libs/armeabi-v7a/libpdnsd.so - mv libs/arm64-v8a/pdnsd libs/arm64-v8a/libpdnsd.so - mv libs/x86/pdnsd libs/x86/libpdnsd.so - mv libs/x86_64/pdnsd libs/x86_64/libpdnsd.so - -Windows: - - cd orbotservice\src\main - ndk-build.cmd (located in Android\Sdk\ndk\VERSION\) - ren libs\armeabi-v7a\pdnsd libpdnsd.so - ren libs\arm64-v8a\pdnsd libpdnsd.so - ren libs\x86\pdnsd libpdnsd.so - ren libs\x86_64\pdnsd libpdnsd.so +## UNIX based + +```bash +cd orbotservice/src/main +ndk-build #(located in Android/Sdk/ndk/VERSION/) +mv libs/armeabi-v7a/pdnsd libs/armeabi-v7a/libpdnsd.so +mv libs/arm64-v8a/pdnsd libs/arm64-v8a/libpdnsd.so +mv libs/x86/pdnsd libs/x86/libpdnsd.so +mv libs/x86_64/pdnsd libs/x86_64/libpdnsd.so +``` + +## Windows + +```bat +cd orbotservice\src\main +ndk-build.cmd (located in Android\Sdk\ndk\VERSION\) +ren libs\armeabi-v7a\pdnsd libpdnsd.so +ren libs\arm64-v8a\pdnsd libpdnsd.so +ren libs\x86\pdnsd libpdnsd.so +ren libs\x86_64\pdnsd libpdnsd.so +``` Now build the Android app using Android Studio/gradle _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits