Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson: try some system libs first #1866

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abouvier
Copy link
Contributor

volk, VMA and SPIRV-Reflect could be unbundled too ;)

@abouvier abouvier marked this pull request as draft January 13, 2025 02:30
@abouvier abouvier force-pushed the meson-unbundle branch 4 times, most recently from 9821400 to ecc0624 Compare January 13, 2025 08:27
@abouvier abouvier marked this pull request as ready for review January 14, 2025 01:15
@@ -2,3 +2,4 @@
url=https://github.com/KhronosGroup/SPIRV-Reflect
revision=vulkan-sdk-1.3.296.0
depth=1
method=cmake
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Is this necessary? Since meson.build already uses the CMake module to handle this wrap, I'm not sure why this change is required.
  • method looks to be introduced with Meson v1.3.0, but meson.build requires meson_version: '>=1.1.0'. If it really is required, then we need to bump the minimum Meson version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meson subprojects download exits with an error code when cmake subprojects exists:

$ meson subprojects download
(...)
Download nv2a_vsh_cpu...
  -> Subproject exists but has no meson.build file.
(...)
Download SPIRV-Reflect...
  -> Subproject exists but has no meson.build file.
(...)
WARNING: Please check logs above as command failed in some subprojects which could have been left in conflict state: SPIRV-Reflect, VulkanMemoryAllocator, glslang, nv2a_vsh_cpu, volk
$ echo $?
5


libfatx = static_library('fatx', sources: 'fatx/fatx.c')
libfatx = static_library('fatx', sources: files('fatx/fatx.c') + genh)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does libfatx now depend on genh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because otherwise you get this error:

[13/1482] Linking static target thirdparty/libvma.a
samu: job failed: cc -Iui/thirdparty/libfatx.a.p -Iui/thirdparty -I../xemu/ui/thirdparty -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wformat-security -Wformat-y2k -Wignored-qualifiers -Wimplicit-fallthrough=2 -Winit-self -Wmissing-format-attribute -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -Wshadow=local -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wno-missing-include-dirs -Wno-psabi -Wno-shift-negative-value -isystem /build/xemu-git/src/xemu/linux-headers -isystem linux-headers -iquote . -iquote /build/xemu-git/src/xemu -iquote /build/xemu-git/src/xemu/include -iquote /build/xemu-git/src/xemu/host/include/x86_64 -iquote /build/xemu-git/src/xemu/host/include/generic -iquote /build/xemu-git/src/xemu/tcg/i386 -pthread -mcx16 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -DXBOX=1 -fPIE -MD -MQ ui/thirdparty/libfatx.a.p/fatx_fatx.c.o -MF ui/thirdparty/libfatx.a.p/fatx_fatx.c.o.d -o ui/thirdparty/libfatx.a.p/fatx_fatx.c.o -c ../xemu/ui/thirdparty/fatx/fatx.c
In file included from /build/xemu-git/src/xemu/include/qemu/osdep.h:38,
                 from ../xemu/ui/thirdparty/fatx/fatx.h:4,
                 from ../xemu/ui/thirdparty/fatx/fatx.c:1:
/build/xemu-git/src/xemu/include/exec/poison.h:7:10: fatal error: config-poison.h: No such file or directory
    7 | #include "config-poison.h"
      |          ^~~~~~~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants