Skip to content

Instantly share code, notes, and snippets.

@enzuru
Created March 23, 2024 21:45
Show Gist options
  • Save enzuru/f30b846fd9c8fc949afbba5def378df3 to your computer and use it in GitHub Desktop.
Save enzuru/f30b846fd9c8fc949afbba5def378df3 to your computer and use it in GitHub Desktop.
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.
Core properties:
Source dir /home/enzuru/src/mesa
Main project options:
Core options Default Value Possible Values Description
-------------- ------------- --------------- -----------
auto_features auto [enabled, disabled, auto] Override value of all 'auto' features
backend ninja [ninja, vs, vs2010, vs2012, Backend to use
vs2013, vs2015, vs2017, vs2019,
vs2022, xcode, none]
buildtype debugoptimized [plain, debug, debugoptimized, Build type to use
release, minsize, custom]
cmake_prefix_path [] [] List of additional prefixes for cmake to search
debug true [true, false] Enable debug symbols and other information
default_library shared [shared, static, both] Default library type
force_fallback_for [] [] Force fallback for those subprojects
install_umask 0022 [preserve, 0000-0777] Default umask to apply on permissions of installed files
layout mirror [mirror, flat] Build directory layout
optimization 2 [plain, 0, g, 1, 2, 3, s] Optimization level
pkg_config_path [/gnu/store/jq6wfyn63iva57b83bmr [] List of additional paths for pkg-config to search
knafxcsxsn09-
profile/lib/pkgconfig, /gnu/sto
re/jq6wfyn63iva57b83bmrknafxcsx
sn09-profile/share/pkgconfig, /
gnu/store/aa63lbm98fmy2cakg1pif
ab4iil0sn5w-
profile/lib/pkgconfig, /gnu/sto
re/aa63lbm98fmy2cakg1pifab4iil0
sn5w-profile/share/pkgconfig,
/home/enzuru/.guix-
profile/lib/pkgconfig,
/home/enzuru/.guix-
profile/share/pkgconfig]
prefer_static false [true, false] Whether to try static linking before shared linking
strip false [true, false] Strip targets on install
unity off [on, off, subprojects] Unity build
unity_size 4 >=2 Unity block size
vsenv false [true, false] Activate Visual Studio environment
warning_level 1 [0, 1, 2, 3, everything] Compiler warning level to use
werror false [true, false] Treat warnings as errors
wrap_mode default [default, nofallback, Wrap mode
nodownload, forcefallback,
nopromote]
build.cmake_prefix_path [] [] List of additional prefixes for cmake to search
build.pkg_config_path [/gnu/store/jq6wfyn63iva57b83bmr [] List of additional paths for pkg-config to search
knafxcsxsn09-
profile/lib/pkgconfig, /gnu/sto
re/jq6wfyn63iva57b83bmrknafxcsx
sn09-profile/share/pkgconfig, /
gnu/store/aa63lbm98fmy2cakg1pif
ab4iil0sn5w-
profile/lib/pkgconfig, /gnu/sto
re/aa63lbm98fmy2cakg1pifab4iil0
sn5w-profile/share/pkgconfig,
/home/enzuru/.guix-
profile/lib/pkgconfig,
/home/enzuru/.guix-
profile/share/pkgconfig]
Backend options Default Value Possible Values Description
----------------- ------------- --------------- -----------
backend_max_links 0 >=0 Maximum number of linker processes to run or 0 for no limit
Base options Default Value Possible Values Description
-------------- ------------- --------------- -----------
b_asneeded true [true, false] Use -Wl,--as-needed when linking
b_colorout always [auto, always, never] Use colored output
b_coverage false [true, false] Enable coverage tracking.
b_lto false [true, false] Use link time optimization
b_lto_threads 0 Use multiple threads for Link Time Optimization
b_lundef true [true, false] Use -Wl,--no-undefined when linking
b_ndebug if-release [true, false, if-release] Disable asserts
b_pch true [true, false] Use precompiled headers
b_pgo off [off, generate, use] Use profile guided optimization
b_pie false [true, false] Build executables as position independent
b_sanitize none [none, address, thread, Code sanitizer to use
undefined, memory, leak,
address,undefined]
b_staticpic true [true, false] Build static libraries as position independent
Compiler options Default Value Possible Values Description
------------------ ------------- --------------- -----------
c_args [] [] Extra arguments passed to the c compiler
c_link_args [] [] Extra arguments passed to the c linker
c_std c11 [none, c89, c99, c11, c17, c18, C language standard to use
c2x, gnu89, gnu99, gnu11,
gnu17, gnu18, gnu2x]
cpp_args [] [] Extra arguments passed to the cpp compiler
cpp_debugstl false [true, false] STL debug mode
cpp_eh default [none, default, a, s, sc] C++ exception handling type.
cpp_link_args [] [] Extra arguments passed to the cpp linker
cpp_rtti true [true, false] Enable RTTI
cpp_std c++17 [none, c++98, c++03, c++11, C++ language standard to use
c++14, c++17, c++1z, c++2a,
c++20, gnu++03, gnu++11,
gnu++14, gnu++17, gnu++1z,
gnu++2a, gnu++20]
rust_args [] [] Extra arguments passed to the rust compiler
rust_link_args [] [] Extra arguments passed to the rust linker
rust_std 2021 [none, 2015, 2018, 2021] Rust edition to use
build.c_args [] [] Extra arguments passed to the c compiler
build.c_link_args [] [] Extra arguments passed to the c linker
build.c_std none [none, c89, c99, c11, c17, c18, C language standard to use
c2x, gnu89, gnu99, gnu11,
gnu17, gnu18, gnu2x]
build.cpp_args [] [] Extra arguments passed to the cpp compiler
build.cpp_debugstl false [true, false] STL debug mode
build.cpp_eh default [none, default, a, s, sc] C++ exception handling type.
build.cpp_link_args [] [] Extra arguments passed to the cpp linker
build.cpp_rtti true [true, false] Enable RTTI
build.cpp_std none [none, c++98, c++03, c++11, C++ language standard to use
c++14, c++17, c++1z, c++2a,
c++20, gnu++03, gnu++11,
gnu++14, gnu++17, gnu++1z,
gnu++2a, gnu++20]
build.rust_args [] [] Extra arguments passed to the rust compiler
build.rust_link_args [] [] Extra arguments passed to the rust linker
build.rust_std none [none, 2015, 2018, 2021] Rust edition to use
pkgconfig module options Default Value Possible Values Description
-------------------------- ------------- --------------- -----------
pkgconfig.relocatable false [true, false] Generate pkgconfig files as relocatable
python module options Default Value Possible Values Description
----------------------- ------------- --------------- -----------
python.install_env prefix [auto, prefix, system, venv] Which python environment to install to
python.platlibdir Directory for site-specific, platform-specific files.
python.purelibdir Directory for site-specific, non-platform-specific files.
Directories Default Value Possible Values Description
------------- ------------- --------------- -----------
bindir bin Executable directory
datadir share Data file directory
includedir include Header file directory
infodir share/info Info page directory
libdir lib Library directory
libexecdir libexec Library executable directory
licensedir Licenses directory
localedir share/locale Locale data directory
localstatedir /var/local Localstate data directory
mandir share/man Manual page directory
prefix /usr/local Installation prefix
sbindir sbin System executable directory
sharedstatedir /var/local/lib Architecture-independent data directory
sysconfdir etc Sysconf data directory
Testing options Default Value Possible Values Description
----------------- ------------- --------------- -----------
errorlogs true [true, false] Whether to print the logs from failing tests
stdsplit true [true, false] Split stdout and stderr in test logs
Project options Default Value Possible Values Description
----------------- ------------- --------------- -----------
allow-kcmp auto [enabled, disabled, auto] Allow using KCMP_FILE to compare file descriptions. auto =
allowed everywhere except on Android
android-libbacktrace auto [enabled, disabled, auto] Use Android's libbacktrace
android-stub false [true, false] Build against android-stub
build-aco-tests false [true, false] Build ACO tests. These require RADV and glslang but not an
AMD GPU.
build-tests false [true, false] Build unit tests. Currently this will build *all* unit tests
except the ACO tests, which may build more than expected.
custom-shader-replacement Enable a custom shader replacement mechanism. Note that
enabling this option requires adding/generating a
shader_replacement.h file that can be included (see
shaderapi.c).
d3d-drivers-path Location of D3D drivers. Default: $libdir/d3d
datasources [auto] [auto, panfrost, intel, List of Perfetto datasources to build. If this is set to
freedreno] `auto`, datasources that can not be build are skipped.
Default: [`auto`]
draw-use-llvm true [true, false] Whether to use LLVM for the Gallium draw module, if LLVM is
included.
dri-drivers-path Location to install dri drivers. Default: $libdir/dri.
dri-search-path Locations to search for dri drivers, passed as colon
separated list. Default: dri-drivers-path.
dri3 auto [enabled, disabled, auto] enable support for dri3
egl auto [enabled, disabled, auto] Build support for EGL platform
egl-lib-suffix Suffix to append to EGL library name. Default: none.
egl-native-platform auto [auto, x11, wayland, haiku, the window system EGL assumes for EGL_DEFAULT_DISPLAY
android, windows, surfaceless,
drm]
enable-glcpp-tests true [true, false] Build glcpp unit tests. These are flaky on CI.
execmem true [true, false] Does nothing, left here for a while to avoid build breakages.
expat auto [enabled, disabled, auto] Controls the use of expat. Cannot be disabled if xmlconfig is
enabled.
freedreno-kmds [msm] [msm, kgsl, virtio] List of kernel-mode drivers to enable for freedreno gallium
and vulkan driver
gallium-d3d10umd false [true, false] build gallium D3D10 WDDM UMD frontend.
gallium-d3d12-video auto [enabled, disabled, auto] build gallium d3d12 with video support.
gallium-drivers [auto] [auto, kmsro, radeonsi, r300, List of gallium drivers to build. If this is set to auto all
r600, nouveau, freedreno, drivers applicable to the target OS/architecture will be
swrast, v3d, vc4, etnaviv, built
tegra, i915, svga, virgl,
panfrost, iris, lima, zink,
d3d12, asahi, crocus, all]
gallium-extra-hud false [true, false] Enable HUD block/NIC I/O HUD status support
gallium-nine false [true, false] build gallium "nine" Direct3D 9.x frontend.
gallium-omx auto [auto, disabled, bellagio, enable gallium omx frontend.
tizonia]
gallium-opencl disabled [icd, standalone, disabled] build gallium "clover" OpenCL frontend.
gallium-rusticl true [true, false] build gallium "rusticl" OpenCL frontend.
gallium-va auto [enabled, disabled, auto] enable gallium va frontend.
gallium-vdpau auto [enabled, disabled, auto] enable gallium vdpau frontend.
gallium-windows-dll-name libgallium_wgl name of gallium megadriver DLL built for Windows. defaults to
libgallium_wgl.dll to match DRI
gallium-xa auto [enabled, disabled, auto] enable gallium xa frontend.
gbm auto [enabled, disabled, auto] Build support for gbm platform
gbm-backends-path Locations to search for gbm backends, passed as colon
separated list. Default: $libdir/gbm.
gles-lib-suffix Suffix to append to GLES library names. Default: none.
gles1 auto [enabled, disabled, auto] Build support for OpenGL ES 1.x
gles2 auto [enabled, disabled, auto] Build support for OpenGL ES 2.x and 3.x
glvnd false [true, false] Enable GLVND support.
glvnd-vendor-name mesa Vendor name string to use for glvnd libraries
glx auto [auto, disabled, dri, xlib] Build support for GLX platform
glx-direct true [true, false] Enable direct rendering in GLX and EGL for DRI
glx-read-only-text false [true, false] Disable writable .text section on x86 (decreases performance)
gpuvis false [true, false] Enable tracing markers for gpuvis. Default: false
imagination-srv false [true, false] Enable Services backend for Imagination Technologies vulkan
driver
install-intel-gpu-tests false [true, false] Build and install Intel unit tests which require the GPU.
This option is for developers and the Intel CI system only.
intel-clc disabled [enabled, disabled, system] Build the intel-clc compiler (enables Vulkan Intel Ray
Tracing on supported hardware).
intel-xe-kmd disabled [enabled, disabled, auto] Enable Intel Xe KMD support.
libunwind auto [enabled, disabled, auto] Use libunwind for stack-traces
llvm auto [enabled, disabled, auto] Build with LLVM support.
lmsensors auto [enabled, disabled, auto] Enable HUD lmsensors support.
microsoft-clc auto [enabled, disabled, auto] Build support for the Microsoft CLC to DXIL compiler
min-windows-version 8 >=7, <=11 Minimum Windows version to support. Defaults to Windows 8.
moltenvk-dir Location of the MoltenVk SDK. Default:
omx-libs-path path to put omx libraries. defaults to omx-bellagio pkg-
config pluginsdir.
opencl-external-clang-headers auto [enabled, disabled, auto] Use system Clang headers at runtime for OpenCL kernel
compilation.
opencl-spirv false [true, false] build gallium "clover" OpenCL frontend with SPIR-V binary
support.
opengl true [true, false] Build support for desktop OpenGL
osmesa false [true, false] Build OSmesa.
perfetto false [true, false] Enable performance analysis with Perfetto. Default: false
platform-sdk-version 25 >=25, <=10000 Android Platform SDK version. Default: Nougat version.
platforms [auto] [auto, x11, wayland, haiku, window systems to support. If this is set to `auto`, all
android, windows] platforms applicable will be enabled.
power8 auto [enabled, disabled, auto] Enable power8 optimizations.
radv-build-id Override build id for shader cache keys (hex string). Can be
extracted with readelf -x .note.gnu.build-id
selinux false [true, false] Build an SELinux-aware Mesa. This currently disables execmem
support at runtime unless SELinux is configured with
allow_execmem.
shader-cache auto [enabled, disabled, auto] Build with on-disk shader cache support.
shader-cache-default true [true, false] If set to false, the feature is only activated when
environment variable MESA_SHADER_CACHE_DISABLE is set to
false
shader-cache-max-size Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment
variable. If set, determines the maximum size of the on-disk
cache of compiled shader programs, can be overriden by
enviroment variable if needed. Should be set to a number
optionally followed by ``K``, ``M``, or ``G`` to specify a
size in kilobytes, megabytes, or gigabytes. By default,
gigabytes will be assumed. And if unset, a maximum size of
1GB will be used.
shared-glapi auto [enabled, disabled, auto] Whether to build a shared or static glapi. Defaults to
disabled on Windows, enabled elsewhere
shared-llvm auto [enabled, disabled, auto] Whether to link LLVM shared or statically.
spirv-to-dxil false [true, false] Build support for the SPIR-V to DXIL library
sse2 true [true, false] use msse2 flag for x86. Uses sse/sse2 instead of x87.
Default: true
static-libclc [] [spirv, spirv64, all] Link libclc SPIR-V statically.
tools [] [drm-shim, etnaviv, freedreno, List of tools to build. (Note: `intel-ui` selects `intel`)
glsl, intel, intel-ui, nir,
nouveau, lima, panfrost, asahi,
imagination, all, dlclose-skip]
va-libs-path path to put va libraries. defaults to $libdir/dri.
valgrind auto [enabled, disabled, auto] Build with valgrind support
vdpau-libs-path path to put vdpau libraries. defaults to $libdir/vdpau.
video-codecs [] [vc1dec, h264dec, h264enc, List of patent encumbered codecs to build support for.
h265dec, h265enc] Distros might want to consult their legal department before
enabling these. This is used for all video APIs (vaapi,
vdpau, vulkan). Non-patent encumbered codecs will be enabled
by default.
vmware-mks-stats false [true, false] Build gallium VMware/svga driver with mksGuestStats
instrumentation.
vulkan-beta false [true, false] Build vulkan drivers with BETA extensions enabled.
vulkan-drivers [auto] [auto, amd, broadcom, freedreno, List of vulkan drivers to build. If this is set to auto all
intel, intel_hasvk, panfrost, drivers applicable to the target OS/architecture will be
swrast, virtio, imagination- built
experimental, microsoft-
experimental, nouveau-
experimental, all]
vulkan-icd-dir Location relative to prefix to put vulkan icds on install.
Default: $datadir/vulkan/icd.d
vulkan-layers [] [device-select, intel-nullhw, List of vulkan layers to build
overlay]
xlib-lease auto [enabled, disabled, auto] Enable VK_EXT_acquire_xlib_display.
xmlconfig auto [enabled, disabled, auto] Build custom xmlconfig (driconf) support. If disabled, the
default driconf file is hardcoded into Mesa. Requires expat.
zlib enabled [enabled, disabled, auto] Use ZLIB to build driver. Default: enabled
zstd auto [enabled, disabled, auto] Use ZSTD instead of ZLIB in some cases.
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment