[tor-commits] [orbot/master] Update BUILD.md

n8fr8 at torproject.org n8fr8 at torproject.org
Wed Dec 22 21:55:10 UTC 2021


commit afc97fe909b5bcee1f5849e7fbefcdf60ed38ba2
Author: bitmold <dsnake at 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





More information about the tor-commits mailing list