summaryrefslogtreecommitdiff
path: root/tests/projects/android
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-16 23:33:30 +0800
committerruki <[email protected]>2025-12-16 23:33:30 +0800
commit51ef6420b6bba35a34f3ac9dafd5b5d36eb24e2d (patch)
treeb50d91101f268985fdd719056061c3a91b01ba7e /tests/projects/android
parentb0f05a5196bb5c4b0590895e69c64fd1a2be3f9c (diff)
improve run logs
Diffstat (limited to 'tests/projects/android')
-rw-r--r--tests/projects/android/native_app/src/main.cpp5
-rw-r--r--tests/projects/android/native_app/xmake.lua4
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/projects/android/native_app/src/main.cpp b/tests/projects/android/native_app/src/main.cpp
index 42f5b9a37..b7dda5d34 100644
--- a/tests/projects/android/native_app/src/main.cpp
+++ b/tests/projects/android/native_app/src/main.cpp
@@ -1,8 +1,13 @@
#include <raylib.h>
+#include <android/log.h>
+
+#define LOG_TAG "raydemo_android"
+#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
int main(int argc, char** argv) {
InitWindow(0, 0, "Hello, xmake for raylib android!");
SetTargetFPS(60);
+ LOGI("raylib application is running!");
while (!WindowShouldClose()) {
BeginDrawing();
diff --git a/tests/projects/android/native_app/xmake.lua b/tests/projects/android/native_app/xmake.lua
index e959fdf32..587994928 100644
--- a/tests/projects/android/native_app/xmake.lua
+++ b/tests/projects/android/native_app/xmake.lua
@@ -6,6 +6,7 @@ target("raydemo_android")
set_kind("binary")
set_languages("c++17")
add_files("src/main.cpp")
+ add_syslinks("log")
add_packages("raylib")
add_rules("android.native_app", {
android_sdk_version = "35",
@@ -13,5 +14,6 @@ target("raydemo_android")
android_res = "android/res",
keystore = "android/debug.jks",
keystore_pass = "123456",
- package_name = "com.raylib.demo"
+ package_name = "com.raylib.demo",
+ logcat_filters = {"raydemo_android", "raylib"}
})