meson: use summary() instead of message
It's cleaner, it's nicer looking, and it's a nice builtin. Signed-off-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Simon Ser <contact@emersion.fr>main
parent
cc16120543
commit
7aede93ef9
|
@ -41,10 +41,10 @@ stages:
|
||||||
BUILD_OS: debian
|
BUILD_OS: debian
|
||||||
FDO_DISTRIBUTION_VERSION: buster
|
FDO_DISTRIBUTION_VERSION: buster
|
||||||
FDO_DISTRIBUTION_PACKAGES: 'build-essential docbook-xsl libatomic-ops-dev libcairo2-dev libcunit1-dev libpciaccess-dev meson ninja-build pkg-config python3 python3-pip python3-wheel python3-setuptools python3-docutils valgrind'
|
FDO_DISTRIBUTION_PACKAGES: 'build-essential docbook-xsl libatomic-ops-dev libcairo2-dev libcunit1-dev libpciaccess-dev meson ninja-build pkg-config python3 python3-pip python3-wheel python3-setuptools python3-docutils valgrind'
|
||||||
FDO_DISTRIBUTION_EXEC: 'pip3 install meson==0.52.1'
|
FDO_DISTRIBUTION_EXEC: 'pip3 install meson==0.53.0'
|
||||||
# bump this tag every time you change something which requires rebuilding the
|
# bump this tag every time you change something which requires rebuilding the
|
||||||
# base image
|
# base image
|
||||||
FDO_DISTRIBUTION_TAG: "2021-08-03.0"
|
FDO_DISTRIBUTION_TAG: "2022-01-19.0"
|
||||||
|
|
||||||
.debian-x86_64:
|
.debian-x86_64:
|
||||||
extends:
|
extends:
|
||||||
|
|
32
meson.build
32
meson.build
|
@ -23,7 +23,7 @@ project(
|
||||||
['c'],
|
['c'],
|
||||||
version : '2.4.109',
|
version : '2.4.109',
|
||||||
license : 'MIT',
|
license : 'MIT',
|
||||||
meson_version : '>= 0.52',
|
meson_version : '>= 0.53',
|
||||||
default_options : ['buildtype=debugoptimized', 'c_std=c99'],
|
default_options : ['buildtype=debugoptimized', 'c_std=c99'],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ if _intel != 'false'
|
||||||
with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86')
|
with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
summary('Intel', with_intel)
|
||||||
|
|
||||||
with_radeon = false
|
with_radeon = false
|
||||||
_radeon = get_option('radeon')
|
_radeon = get_option('radeon')
|
||||||
|
@ -100,6 +101,7 @@ if _radeon != 'false'
|
||||||
endif
|
endif
|
||||||
with_radeon = true
|
with_radeon = true
|
||||||
endif
|
endif
|
||||||
|
summary('Radeon', with_radeon)
|
||||||
|
|
||||||
with_amdgpu = false
|
with_amdgpu = false
|
||||||
_amdgpu = get_option('amdgpu')
|
_amdgpu = get_option('amdgpu')
|
||||||
|
@ -109,6 +111,7 @@ if _amdgpu != 'false'
|
||||||
endif
|
endif
|
||||||
with_amdgpu = true
|
with_amdgpu = true
|
||||||
endif
|
endif
|
||||||
|
summary('AMDGPU', with_amdgpu)
|
||||||
|
|
||||||
with_nouveau = false
|
with_nouveau = false
|
||||||
_nouveau = get_option('nouveau')
|
_nouveau = get_option('nouveau')
|
||||||
|
@ -118,12 +121,14 @@ if _nouveau != 'false'
|
||||||
endif
|
endif
|
||||||
with_nouveau = true
|
with_nouveau = true
|
||||||
endif
|
endif
|
||||||
|
summary('Nouveau', with_nouveau)
|
||||||
|
|
||||||
with_vmwgfx = false
|
with_vmwgfx = false
|
||||||
_vmwgfx = get_option('vmwgfx')
|
_vmwgfx = get_option('vmwgfx')
|
||||||
if _vmwgfx != 'false'
|
if _vmwgfx != 'false'
|
||||||
with_vmwgfx = true
|
with_vmwgfx = true
|
||||||
endif
|
endif
|
||||||
|
summary('vmwgfx', with_vmwgfx)
|
||||||
|
|
||||||
with_omap = false
|
with_omap = false
|
||||||
_omap = get_option('omap')
|
_omap = get_option('omap')
|
||||||
|
@ -133,6 +138,7 @@ if _omap == 'true'
|
||||||
endif
|
endif
|
||||||
with_omap = true
|
with_omap = true
|
||||||
endif
|
endif
|
||||||
|
summary('OMAP', with_omap)
|
||||||
|
|
||||||
with_freedreno = false
|
with_freedreno = false
|
||||||
_freedreno = get_option('freedreno')
|
_freedreno = get_option('freedreno')
|
||||||
|
@ -143,6 +149,8 @@ if _freedreno != 'false'
|
||||||
with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
summary('Freedreno', with_freedreno)
|
||||||
|
summary('Freedreon-kgsl', with_freedreno_kgsl)
|
||||||
|
|
||||||
with_tegra = false
|
with_tegra = false
|
||||||
_tegra = get_option('tegra')
|
_tegra = get_option('tegra')
|
||||||
|
@ -152,6 +160,7 @@ if _tegra == 'true'
|
||||||
endif
|
endif
|
||||||
with_tegra = true
|
with_tegra = true
|
||||||
endif
|
endif
|
||||||
|
summary('Tegra', with_tegra)
|
||||||
|
|
||||||
with_etnaviv = false
|
with_etnaviv = false
|
||||||
_etnaviv = get_option('etnaviv')
|
_etnaviv = get_option('etnaviv')
|
||||||
|
@ -161,14 +170,17 @@ if _etnaviv == 'true'
|
||||||
endif
|
endif
|
||||||
with_etnaviv = true
|
with_etnaviv = true
|
||||||
endif
|
endif
|
||||||
|
summary('Etnaviv', with_etnaviv)
|
||||||
|
|
||||||
with_exynos = get_option('exynos') == 'true'
|
with_exynos = get_option('exynos') == 'true'
|
||||||
|
summary('EXYNOS', with_exynos)
|
||||||
|
|
||||||
with_vc4 = false
|
with_vc4 = false
|
||||||
_vc4 = get_option('vc4')
|
_vc4 = get_option('vc4')
|
||||||
if _vc4 != 'false'
|
if _vc4 != 'false'
|
||||||
with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
|
||||||
endif
|
endif
|
||||||
|
summary('VC4', with_vc4)
|
||||||
|
|
||||||
# XXX: Apparently only freebsd and dragonfly bsd actually need this (and
|
# XXX: Apparently only freebsd and dragonfly bsd actually need this (and
|
||||||
# gnu/kfreebsd), not openbsd and netbsd
|
# gnu/kfreebsd), not openbsd and netbsd
|
||||||
|
@ -177,6 +189,7 @@ _libkms = get_option('libkms')
|
||||||
if _libkms != 'false'
|
if _libkms != 'false'
|
||||||
with_libkms = _libkms == 'true' or (['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) and not android)
|
with_libkms = _libkms == 'true' or (['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) and not android)
|
||||||
endif
|
endif
|
||||||
|
summary('libkms', with_libkms)
|
||||||
|
|
||||||
# Among others FreeBSD does not have a separate dl library.
|
# Among others FreeBSD does not have a separate dl library.
|
||||||
if not cc.has_function('dlsym')
|
if not cc.has_function('dlsym')
|
||||||
|
@ -391,20 +404,3 @@ if with_man_pages
|
||||||
endif
|
endif
|
||||||
subdir('data')
|
subdir('data')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
|
|
||||||
message('')
|
|
||||||
message('@0@ will be compiled with:'.format(meson.project_name()))
|
|
||||||
message('')
|
|
||||||
message(' libkms @0@'.format(with_libkms))
|
|
||||||
message(' Intel API @0@'.format(with_intel))
|
|
||||||
message(' vmwgfx API @0@'.format(with_vmwgfx))
|
|
||||||
message(' Radeon API @0@'.format(with_radeon))
|
|
||||||
message(' AMDGPU API @0@'.format(with_amdgpu))
|
|
||||||
message(' Nouveau API @0@'.format(with_nouveau))
|
|
||||||
message(' OMAP API @0@'.format(with_omap))
|
|
||||||
message(' EXYNOS API @0@'.format(with_exynos))
|
|
||||||
message(' Freedreno API @0@ (kgsl: @1@)'.format(with_freedreno, with_freedreno_kgsl))
|
|
||||||
message(' Tegra API @0@'.format(with_tegra))
|
|
||||||
message(' VC4 API @0@'.format(with_vc4))
|
|
||||||
message(' Etnaviv API @0@'.format(with_etnaviv))
|
|
||||||
message('')
|
|
||||||
|
|
Loading…
Reference in New Issue