-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathmeson.yaml
More file actions
64 lines (56 loc) · 2.06 KB
/
meson.yaml
File metadata and controls
64 lines (56 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# SPDX-FileCopyrightText: 2023 AerynOS Developers
# SPDX-License-Identifier: MPL-2.0
actions:
- meson:
description: Run meson with the default options in a subdirectory
command: |
test -e ./meson.build || ( echo "%%meson: The ./meson.build script could not be found" ; exit 1 )
meson setup %(options_meson) "%(builddir)"
dependencies:
- binary(cmake)
- binary(meson)
- binary(pkgconf)
- meson_unity:
description: Run meson with unity build enabled
command: |
test -e ./meson.build || ( echo "%%meson: The ./meson.build script could not be found" ; exit 1 )
meson setup --unity on %(options_meson) "%(builddir)"
dependencies:
- binary(cmake)
- binary(meson)
- binary(pkgconf)
- meson_build:
description: Build the meson project
command: |
meson compile --verbose -j "%(jobs)" -C "%(builddir)"
dependencies:
- binary(meson)
- meson_install:
description: Install results of the build to the destination directory
command: |
DESTDIR="%(installroot)" meson install --no-rebuild -C "%(builddir)"
dependencies:
- binary(meson)
- meson_test:
description: Run meson test
command: |
meson test --no-rebuild --print-errorlogs --verbose -j "%(jobs)" -C "%(builddir)"
dependencies:
- binary(meson)
definitions:
# Default meson options as passed to meson
- options_meson: |
--buildtype="plain" \
--prefix="%(prefix)" \
--libdir="lib%(libsuffix)" \
--bindir="%(bindir)" \
--sbindir="%(sbindir)" \
--libexecdir="lib%(libsuffix)/%(name)" \
--includedir="%(includedir)" \
--datadir="%(datadir)" \
--mandir="%(mandir)" \
--infodir="%(infodir)" \
--localedir="%(localedir)" \
--sysconfdir="%(sysconfdir)" \
--localstatedir="%(localstatedir)" \
--wrap-mode="nodownload"