File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,19 @@ This is a proof-of-concept wrapper repo that makes building SDL projects for And
6
6
- Your game source code must also configure SDL at some point. See the optional submodule for an example.
7
7
- Your game should call `add_library` instead of `add_execuable`, and the library must be named `main`, when building for Android.
8
8
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
+ ```
You can’t perform that action at this time.
0 commit comments