pmt: add more information about compilation
This commit is contained in:
14
README.md
14
README.md
@@ -53,13 +53,19 @@ cd pmt
|
|||||||
- Set the NDK working directory variable.
|
- Set the NDK working directory variable.
|
||||||
```
|
```
|
||||||
make gen-ndk-makefiles
|
make gen-ndk-makefiles
|
||||||
|
# If you fail the audit, etc., use FORCE_GEN.
|
||||||
|
# Example:
|
||||||
|
make gen-ndk-makefiles FORCE_GEN=true
|
||||||
|
|
||||||
|
# Required by Android NDK
|
||||||
export NDK_PROJECT_PATH="${PWD}"
|
export NDK_PROJECT_PATH="${PWD}"
|
||||||
```
|
```
|
||||||
- Go to the NDK directory and start the build
|
- Go to the NDK directory and start the build
|
||||||
```
|
```
|
||||||
# Required for creating clang version information and directory access
|
# Required for creating clang version information and directory access
|
||||||
export NDK_ROOT_DIR="${PWD}"
|
export NDK_ROOT_DIR="${PWD}"
|
||||||
cd "${NDK_PROJECT_PATH}" && bash build/bash/gen-header \
|
cd "${NDK_PROJECT_PATH}" \
|
||||||
|
&& bash build/bash/gen-header \
|
||||||
&& cd "${NDK_ROOT_DIR}"
|
&& cd "${NDK_ROOT_DIR}"
|
||||||
|
|
||||||
# Start build
|
# Start build
|
||||||
@@ -85,6 +91,12 @@ cd "${NDK_PROJECT_PATH}" && bash build/bash/gen-header \
|
|||||||
```
|
```
|
||||||
make
|
make
|
||||||
|
|
||||||
|
# To specify clang, just use CC=<clang> next to the command (and same logic in AR)
|
||||||
|
# Example:
|
||||||
|
make CC=${PWD}/../toolchain/bin/clang-18
|
||||||
|
make AR=${PWD}/../toolchain/bin/ar
|
||||||
|
make CC=${PWD}/../toolchain/bin/clang-18 AR=${PWD}/../toolchain/bin/ar
|
||||||
|
|
||||||
# Use termux :D
|
# Use termux :D
|
||||||
```
|
```
|
||||||
- For the make installable debian package:
|
- For the make installable debian package:
|
||||||
|
|||||||
Reference in New Issue
Block a user