21 Commits
Author SHA1 Message Date
Jason Macnak 9fcff254b2 Fix up UnpackerT
https://github.com/google/gfxstream/commit/6cf9ceb8ee280b2d03314a9b9fcb01dcea4b6a6e
used the wrong type.
2025-06-12 22:19:16 +00:00
Jason Macnak 6cf9ceb8ee Use std::memcpy to unpack in ProtocolUtils 2025-06-11 23:10:29 +00:00
Gurchetan Singh 30661b8f58 gfxstream: refactor meson build
* Move logic into the the top-level meson.build file, so
  the "common" subdir cna use it too.

* remove "inc_common_opengl", not needed

BUG=423003060
2025-06-11 02:51:39 +00:00
Aaron Ruby 4cba2d522b Remove inc_gfxstream_include from meson entirely
It's not need for QNX anymore
2025-06-04 22:52:53 +00:00
Jason Macnak 3683847ab3 Move copts and defines to a common build_variables.bzl 2025-06-04 15:12:09 +00:00
Jason Macnak 352f8a4d67 Explicitly link subdirectories to top level license
Bug: b/416342919
Test: bazel build ...
Change-Id: Iebb71ac891143cf2982fb87d7d1549bf81f116a9
2025-05-30 15:40:14 +00:00
Jason Macnak f819fddf43 Cleanups to make internal build happy
Remove more unused files.

Moves TestClock into health, which is its only user, to avoid
having to mix testonly and non-testonly libraries. The health
target currently uses TestClock as a non-testonly library but
common/base/include/gfxstream/testing/* needs to be testonly
due to its dependency on gtest libs.

Enforce strict dependency checking in bazel
(https://bazel.build/docs/bazel-and-cpp#toolchain-features).

Split up "opengl headers" into multiple targets to better
translate to internal targets.

Bug: b/403363880
Test: bazel build ...
Change-Id: I20dd2579cca0b6ea7c2d3770afd0e6001e2e9562
2025-05-28 23:23:49 +00:00
Jason Macnak d389e62b43 Update meson build files to apache2
... to ag/33650592

Bug: b/416342919
Test: n/a
Change-Id: Ica25db6c45145795d380d51cb13a89070386e333
2025-05-21 09:04:25 -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
Jason Macnak af353cc3ad Split utils in host/decoder_common and host/renderdoc
Bug: b/416342919
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: I69d93e21e21a53b6f82e336d54bc27381b778ddd
2025-05-13 04:06:40 +00:00
Treehugger Robot c7ee667377 Merge changes If654b153,I40e2b9cb into main
* changes:
  More findings from release tool
  Even more fixups found be release tool
2025-05-12 09:17:37 -07:00
Treehugger Robot 73ca81950a Merge changes I65a0ca10,Ifd09b680 into main
* changes:
  Fixup more licensing finding
  More licensing findings and deletions
2025-05-12 09:17:37 -07:00
Treehugger Robot ce4edcb9d0 Merge "Fix up hdr includes" into main 2025-05-12 09:17:35 -07:00
Jason Macnak dc68c87007 Fix up hdr includes
... as newer Bazel versions complain about unmatched hdrs.

Bug: b/403363880
Test: n/a
Change-Id: I594a55524ba34e3a836903d520b1cde532e162cf
2025-05-09 14:24:57 -07:00
Jason Macnak afe8dc23a9 More findings from release tool
Bug: b/403363880
Test: n/a
Change-Id: If654b153ad385d5ae90d704a42ef1c4df1ebaa21
2025-05-09 10:22:46 -07:00
Jason Macnak 2da8e932f1 Fixup more licensing finding
Bug: b/403363880
Test: n/a
Change-Id: I65a0ca10f4867bd81c02a613b00c7fde7deeeb6a
2025-05-09 10:22:46 -07:00
Jason Macnak 9478b2108c More licensing findings and deletions
Bug: b/403363880
Test: n/a
Change-Id: Ifd09b680a2b20760450bff141a7b9166951a2be9
2025-05-09 10:22:45 -07:00
Jason Macnak f96a59449c Add license headers to our cmake files
... as this is flagged by the release checker.

Bug: b/403363880
Test: n/a
Change-Id: I3743a2e710ddf7dfd196cb7d53f25eeaeab921f0
2025-05-08 13:50:49 -07:00
Jason Macnak 9ff6a7307e Cleanup third party
* Rename third-party to third_party

 * Move drm, opengl, vulkan, x11 headers to third_party

 * Remove virgl_hw.h since we only use a couple enums

... as part of the releasing checklist.

Bug: b/403363880

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: I078c9ae21e427ea67d5f51eabf63cd9d4689024c
2025-05-08 12:17:50 -07:00
Jason Macnak 9e1bd207bf Add clang toolchain registration to gfxstream module
... and fix default visibility.

After this, Gfxstream can be built entirely standalone with

  mkdir gfxstream
  cd gfxstream
  git clone <gfxstream url> .
  blaze build ...
  blaze test ...

Bug: b/403363880
Test: see above
Change-Id: Ibc1098f04fe7a062fe9d17feee95149731ae2f6b
2025-05-08 12:17:49 -07:00
Jason Macnak d4ffa9a5bc Normalize some directory names and includes
Bug: b/403363880

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: I0d4aa852da43ed3b2a411181689876c8b78f5367
2025-05-07 12:35:39 -07:00