
PopcornFX makefiles will be using the environment variables EASYPATH and
EASYPATH64 to locate the "bin" folder of Android NDK standalone
toolchains (respectively for arm (v7) and arm64 (v8)).

Here is one example how to install the Android NDK toolchains and
build PopcornFX UnityPlugin with Git Bash from
[Git For Windows](https://github.com/git-for-windows/git/releases).

- Install Python 3.

  For example, installed in C:/Python36-32/
  from https://www.python.org/downloads/


- Download and extract the Android NDK.

  For example, extracted in C:/path/to/ndks/android-ndk-r16-windows-x86_64
  from https://developer.android.com/ndk/index.html


- Build the NDK standalone toolchain for arm and arm64.

  For example:

```bash
$> cd /c/path/to/ndks/android-ndk-r16-windows-x86_64/
$> ./build/tools/make_standalone_toolchain.py --arch arm --api 19 --install-dir ../toolchain-r16-api19-arm
$> ./build/tools/make_standalone_toolchain.py --arch arm64 --api 21 --install-dir ../toolchain-r16-api21-arm64
```


- Setup EASYPATH and EASYPATH64 environement variables to the "bin" folder of the standalone toolchains

  For example, in your ~/.bashrc (C:/Users/Me/.bashrc) put:

```bash
export EASYPATH=/c/path/to/ndks/toolchain-r16-api19-arm/bin
export EASYPATH64=/c/path/to/ndks/toolchain-r16-api21-arm64/bin
```

  Or, you should be able to add them directly in your Windows'
  environement variables.


- Build PopcornFX Unity Plugin.

  For example, for arm64 debug build:

```bash
$> cd path/to/popcornfx_sdk/source_tree/ClientName_android
$> config=debug_android64 $EASYPATH64/make -j8 -f PopcornFX.make IntegrationUnity
```
