5 Commits
Author SHA1 Message Date
Jason Macnak 75af0b4810 Add new dependency in build rules
... to fix up strict header checks after ag/34205193
made common/base depend on common/logging.

Also fix a couple of warnings from adding in defaults.

Bug: b/426644045
Test: build
Change-Id: Iea7da5660005e83f18935bdb5e9590f6d93e35b8
2025-06-26 17:18:27 +00:00
Gurchetan Singh d6a47de837 gfxstream: base: fix SharedMemory.cpp
It turns out not *everyone* has memfd..

BUG=423003060
TEST=CI
2025-06-12 00:08:55 +00:00
Gurchetan Singh 4be0e463bf gfxstream: shared memory posix fixes
* The memfd should be sealed.

* align to page size, since KVM mappings require it.

* memfd is core to glibc 2.27 (2018 release).  Only the ancient
  version of glibc in Android might not have it, and we're
  actively moving away from that.

BUG=423003060
2025-06-11 02:51:39 +00:00
Jason Macnak 6755c1b30a Add gfxstream_common_base
* Fix up headers

* Fix up namespaces

* Separates out health, library, and metrics into new host
  libraries as those depend on logging

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 master 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: I56f8a53bd3ad3ee5e4ddc75ef8ce61eb545df845
2025-05-01 16:27:14 +00:00
Jason Macnak d214f9cf5d Copy hardware/google/aemu/base into hardware/google/gfxstream/common/base
... in order to make it possible to build standalone Gfxstream. A
copy is used instead of a move because there are AEMU libraries
that depend on the existing aemu-base library that are not Gfxstream
related.

NO_TYPO_CHECK=true

Bug: b/403363880
Test: n/a
Change-Id: I8fa969c208c9542b5c4b3ae3dc0e981b4e0f5091
2025-05-01 16:27:14 +00:00