Skip to content

Commit 7ff819a

Browse files
authored
Update README.md
1 parent 0c1105c commit 7ff819a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,19 @@ This is a proof-of-concept wrapper repo that makes building SDL projects for And
66
- Your game source code must also configure SDL at some point. See the optional submodule for an example.
77
- Your game should call `add_library` instead of `add_execuable`, and the library must be named `main`, when building for Android.
88
2. Open the root folder of this repository in Android Studio
9-
3. Build and run!
9+
3. Build and run!
10+
11+
## Getting the full commands that Gradle is running
12+
Gradle hides this information by default. Both steps are required:
13+
1. Add `android.native.buildOutput=verbose` to `gradle.properties`
14+
2. Add `"-DCMAKE_VERBOSE_MAKEFILE=ON"` to `externalNativeBuild -> cmake -> arguments` in `app/build.gradle`
15+
```gradle
16+
android {
17+
// ...
18+
externalNativeBuild {
19+
cmake {
20+
arguments "-DANDROID_STL=c++_static", "-DCMAKE_VERBOSE_MAKEFILE=ON"
21+
}
22+
// ...
23+
}
24+
```

0 commit comments

Comments
 (0)