diff options
| author | Juan Ramos <juan@lunarg.com> | 2023-10-02 16:53:41 -0600 |
|---|---|---|
| committer | Juan Ramos <114601453+juan-lunarg@users.noreply.github.com> | 2023-10-04 10:25:24 -0600 |
| commit | 6e451d98d3c56a573cee654745101a78acadf5f1 (patch) | |
| tree | 56b890f01e24b9acf00dad5e50213c3c52b7004f | |
| parent | 3a19c1973f0e4732b8f3746593aee2ac425ecb78 (diff) | |
| download | usermoji-6e451d98d3c56a573cee654745101a78acadf5f1.tar.xz | |
cmake: Fix vulkaninfo on Android
| -rw-r--r-- | vulkaninfo/CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vulkaninfo/CMakeLists.txt b/vulkaninfo/CMakeLists.txt index 43148642..37f6a57b 100644 --- a/vulkaninfo/CMakeLists.txt +++ b/vulkaninfo/CMakeLists.txt @@ -15,9 +15,13 @@ # limitations under the License. # ~~~ -if (ANDROID) - return() -endif() +# TODO: Document this properly +# cmake -S . -B android-build -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=28 -DANDROID_ABI=arm64-v8a -DCMAKE_BUILD_TYPE=Debug -DBUILD_CUBE=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=OFF -C external/helper.cmake +# cmake --build android-build --target vulkaninfo +# +# adb push android-build/vulkaninfo/vulkaninfo /data/local/tmp +# adb shell /data/local/tmp/vulkaninfo --json --output /data/local/tmp/VP_Pixel_6.json +# adb pull /data/local/tmp/VP_Pixel_6.json if(WIN32) # ~~~ |
