Debian Codegraph @

src/buildstream_plugins/elements/meson.yaml

raw
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 # See the License for the specific language governing permissions and
11 # limitations under the License.
12
13 # Meson default configuration
14
15 variables:
16
17 build-dir: _builddir
18
19 # Project-wide extra arguments to be passed to `meson`
20 meson-global: ''
21
22 # Element-specific extra arguments to be passed to `meson`.
23 meson-local: ''
24
25 meson-args: |
26
27 --prefix=%{prefix} \
28 --bindir=%{bindir} \
29 --sbindir=%{sbindir} \
30 --sysconfdir=%{sysconfdir} \
31 --datadir=%{datadir} \
32 --includedir=%{includedir} \
33 --libdir=%{libdir} \
34 --libexecdir=%{libexecdir} \
35 --localstatedir=%{localstatedir} \
36 --sharedstatedir=%{sharedstatedir} \
37 --mandir=%{mandir} \
38 --infodir=%{infodir} %{meson-global} %{meson-local}
39
40 meson: meson setup %{conf-root} %{build-dir} %{meson-args}
41
42 meson-build: |
43 ninja -v -j ${JOBS} -C %{build-dir}
44
45 meson-install: |
46 env DESTDIR="%{install-root}" meson install -C %{build-dir} --no-rebuild
47
48 # Set this if the sources cannot handle parallelization.
49 #
50 # notparallel: True
51
52 config:
53
54 # Commands for configuring the software
55 #
56 configure-commands:
57 - |
58 %{meson}
59
60 # Commands for building the software
61 #
62 build-commands:
63 - |
64 %{meson-build}
65
66 # Commands for installing the software into a
67 # destination folder
68 #
69 install-commands:
70 - |
71 %{meson-install}
72
73 # Commands for stripping debugging information out of
74 # installed binaries
75 #
76 strip-commands:
77 - |
78 %{strip-binaries}
79
80 # Use max-jobs CPUs for building
81 environment:
82 JOBS: |
83 %{max-jobs}
84
85 # And dont consider JOBS as something which may
86 # affect build output.
87 environment-nocache:
88 - JOBS