4 Commits
Author SHA1 Message Date
Jason Macnak 6bacc3de80 Fix potential issue with temporary obj
... which seems to be an issue with older compilers:
http://gpaste/6527834394460160.

Found when trying to update the ARM prebuilts for Cuttlefish.

Bug: b/427553766
Test: rebuild prebuilts and launch on local arm workstation
Change-Id: I5f950183682f408f9c1f596fa7972f4c3393ea80
2025-09-11 08:25:45 +00:00
Jason Macnak 78a93aff03 Add missing include
Upstream copy of cl/781958741

Bug: b/430688785
2025-07-11 16:57:23 +00:00
Gurchetan Singh d52690b47f gfxstream: don't use full file path for logging
Before:

[../host/virtio-gpu-stream-renderer.cpp(48) message

After:

[virtio-gpu-stream-renderer.cpp(48)] message

BUG=none
TEST=none

Change-Id: I30ecf6f59159a151ce1ff45ed2725d645a823093
2025-05-20 10:39:23 -07:00
Jason Macnak c2b159afd1 Move logging to common
and add Android support which uses __android_log_print to
the default callback. This will allow us to eventually build
and run the guest libs in a standalone bazel environment without
Android libs (no "liblog", "libcutils", etc).

Misc notes:

 * Updates some cases of ANDROID vs __ANDROID__. The former is
   set when building with Soong (either host or guest) while the
   latter is set specifically when targeting the Android platform.
   Some places that were using ANDROID needed to be fixed to use
   __ANDROID__ to properly detect when to use ANativeWindow.

 * Updates the EGL platform header to address something similar
   to the above where we may want to use X11 display when building
   host binaries with Soong where ANDROID may still be defined.

Bug: b/416342919

Test: cd hardware/google/gfxstream
      bazel build ...
      bazel test ...

Test: cd hardware/google/gfxstream
      mma

Test: cd hardware/google/gfxstream
      mkdir build && cd build
      cmake .. -G Ninja
      ninja

Test: meson setup \
        -Ddefault_library=static \
        -Dgfxstream-build=host \
        build

      meson compile -C build

Test: cd <emu main dev repo>
      cd external/qemu
      python android/build/python/cmake.py --gfxstream

Test: cd <emu main next repo>
      prebuilts/bazel/linux-x86_64/bazel test \
      --platforms=@//build/bazel/platforms:linux_x64 \
     @gfxstream//...
Change-Id: I4db669047f3900392d50509c470ea350d94a64ba
2025-05-14 16:51:19 -07:00