File: configure

package info (click to toggle)
elogind 255.17-1debian4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,552 kB
  • sloc: ansic: 162,957; xml: 22,072; python: 1,158; sh: 250; makefile: 174; cpp: 51; awk: 29
file content (24 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e

cflags="CFLAGS=${CFLAGS-}"
cxxflags="CXXFLAGS=${CXXFLAGS-}"
args=()

for arg in "$@"; do
    case "$arg" in
        CFLAGS=*)
            cflags="$arg"
            ;;
        CXXFLAGS=*)
            cxxflags="$arg"
            ;;
        *)
            args+=("$arg")
    esac
done

export "${cflags?}" "${cxxflags?}"
set -x
exec meson setup build "${args[@]}"