Add Android build instructions to README
This commit is contained in:
		
							parent
							
								
									c6a4c6d3d8
								
							
						
					
					
						commit
						442f561ad5
					
				| @ -152,6 +152,14 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" $SOURCE | |||||||
| # "Release" (for CMAKE_BUILD_TYPE) could also be "Debug" or "RelWithDebInfo" | # "Release" (for CMAKE_BUILD_TYPE) could also be "Debug" or "RelWithDebInfo" | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | For building on Android: | ||||||
|  | ```bash | ||||||
|  | cmake $SOURCE_DIR -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$(pwd)/install" -DANDROID_ABI=arm64-v8a -DCMAKE_BUILD_TYPE=Release -DANDROID_STL=c++_static -DANDROID_PLATFORM=android-24 -DCMAKE_SYSTEM_NAME=Android -DANDROID_TOOLCHAIN=clang -DANDROID_ARM_MODE=arm -DCMAKE_MAKE_PROGRAM=$ANDROID_NDK_ROOT/prebuilt/linux-x86_64/bin/make -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake | ||||||
|  | # If on Windows will be -DCMAKE_MAKE_PROGRAM=%ANDROID_NDK_ROOT%\prebuilt\windows-x86_64\bin\make.exe | ||||||
|  | # -G is needed for building on Windows | ||||||
|  | # -DANDROID_ABI can also be armeabi-v7a for 32 bit | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| For building on Windows: | For building on Windows: | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Spencer Fricke
						Spencer Fricke