|
|
@@ -53,14 +53,29 @@ Windows users download GNU make utility from:
|
|
|
cd bgfx
|
|
|
make
|
|
|
|
|
|
-After calling make, .build/projects/* directory will be generated. All
|
|
|
+After calling `make`, .build/projects/* directory will be generated. All
|
|
|
intermediate files generated by compiler will be inside .build directory
|
|
|
structure. Deleting .build directory at any time is safe.
|
|
|
|
|
|
+### Prerequisites for Android
|
|
|
+
|
|
|
+Download AndroidNDK from:
|
|
|
+[https://developer.android.com/tools/sdk/ndk/index.html](https://developer.android.com/tools/sdk/ndk/index.html)
|
|
|
+
|
|
|
+ setx ANDROID_NDK_ROOT <path to AndroidNDK directory>
|
|
|
+ setx ANDROID_NDK_ARM <path to AndroidNDK directory>\toolchains\arm-linux-androideabi-4.7\prebuilt\windows-x86_64
|
|
|
+
|
|
|
### Prerequisites for Linux
|
|
|
|
|
|
sudo apt-get install libgl1-mesa-dev
|
|
|
|
|
|
+### Prerequisites for Native Client (Pepper 22) on Windows
|
|
|
+
|
|
|
+Download Native Client SDK from:
|
|
|
+[https://developers.google.com/native-client/sdk/download](https://developers.google.com/native-client/sdk/download)
|
|
|
+
|
|
|
+ setx NACL <path to Native Client SDK directory>\toolchain\win_x86_newlib
|
|
|
+
|
|
|
### Prerequisites for Windows
|
|
|
|
|
|
When building on Windows, you have to set DXSDK_DIR environment variable to
|
|
|
@@ -77,13 +92,6 @@ directory link to directory without spaces in the path.
|
|
|
mklink /D <path to DirectX SDK directory> c:\dxsdk
|
|
|
setx DXSDK_DIR c:\dxsdk
|
|
|
|
|
|
-### Prerequisites for Native Client (Pepper 22) on Windows
|
|
|
-
|
|
|
-Download Native Client SDK from:
|
|
|
-[https://developers.google.com/native-client/sdk/download](https://developers.google.com/native-client/sdk/download)
|
|
|
-
|
|
|
- setx NACL <path to Native Client SDK directory>\toolchain\win_x86_newlib
|
|
|
-
|
|
|
### Building
|
|
|
|
|
|
Visual Studio 2008 command line:
|
|
|
@@ -102,9 +110,9 @@ Other platforms:
|
|
|
|
|
|
make <configuration>
|
|
|
|
|
|
-Configuration is `<platform>-<debug/release><32/64>`. For example:
|
|
|
+Configuration is `<platform>-<debug/release>[32/64]`. For example:
|
|
|
|
|
|
- linux-release32, nacl-debug64, android-release32, etc.
|
|
|
+ linux-release32, nacl-debug64, android-release, etc.
|
|
|
|
|
|
Examples
|
|
|
--------
|