summarylogtreecommitdiffstats
path: root/shellybuild.conf
blob: 9bfda5ff1718fd3a60780c4870174a141449c40e (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Optional overrides for Shelly's in-process AUR builder.
#
#      _          _ _       _           _ _     _                   __
#  ___| |__   ___| | |_   _| |__  _   _(_) | __| |  ___ ___  _ __  / _|
# / __| '_ \ / _ \ | | | | | '_ \| | | | | |/ _` | / __/ _ \| '_ \| |_
# \__ \ | | |  __/ | | |_| | |_) | |_| | | | (_| || (_| (_) | | | |  _|
# |___/_| |_|\___|_|_|\__, |_.__/ \__,_|_|_|\__,_(_)___\___/|_| |_|_|
#                     |___/
# Shelly has compiled defaults for every setting below.  This installed file is
# deliberately inert: uncomment only the values that should be system-wide
# overrides.  Per-user overrides belong in
# $XDG_CONFIG_HOME/shelly/shellybuild.conf.

[build]
# carch = "x86_64"
# chost = "x86_64-pc-linux-gnu"
# cppflags = []
# cflags = ["-O2", "-pipe"]
# cxxflags = ["-O2", "-pipe"]
# ldflags = ["-Wl,-z,relro", "-Wl,-z,now"]
# ltoflags = ["-flto=auto"]
# makeflags = ["-j2"]
# check = true
# ccache = false
# distcc = false
# distcc_hosts = []
# Native builds use a fixed system PATH, independent of the terminal/elevator.
# Extra absolute directories precede system tools (after ccache/distcc).
# Each directory must exist and be searchable by the build user.
# extra_path = ["/opt/toolchain/bin", "/home/your-user/.cargo/bin"]
# Literal variables for unprivileged native build subprocesses (also isolated).
# The user table replaces the system table; env = {} clears assignments.
# No shell, $HOME, or ~ expansion. Use extra_path and dedicated flag settings
# for PATH and compiler flags; identity and process-startup variables are reserved.
# env = { JAVA_HOME = "/usr/lib/jvm/default", CARGO_HOME = "/home/your-user/.cargo" }

[package]
# packager = "Unknown Packager"
# extension = ".pkg.tar.zst"
# Architecture written into built packages (.PKGINFO arch, .BUILDINFO pkgarch
# and the file name), like makepkg's PACKAGECARCH. Only packaging uses it:
# PKGBUILDs are still evaluated and checked with [build] carch, so packages
# declaring arch=('x86_64') build normally and come out labelled x86_64_v3.
# arch=('any') packages stay "any". Unset means [build] carch. Installing the
# result needs pacman to accept it: CachyOS pacman and Shelly expand
# Architecture = auto to x86_64_v2/v3/v4; stock Arch pacman needs it listed,
# e.g. Architecture = x86_64 x86_64_v3.
# carch = "x86_64_v3"
# Optional compression preset, from 1 (conservative) to 5 (maximum).
# The extension selects the format; each preset maps to its backend level:
# Level  Preset        zstd  gzip  xz  bzip2  Intended tradeoff
# 1      Conservative    1     1   0      1  Low resource use; larger packages
# 2      Fast            3     3   3      3  Quick builds; reasonable compression
# 3      Balanced        6     6   6      5  Recommended starting point
# 4      Compact        12     8   7      7  Favor smaller packages
# 5      Maximum        19     9   9      9  Highest compression effort offered
# All presets are lossless. Reliability here means reducing memory pressure
# and build time. Higher levels generally use more resources for smaller
# packages, but do not guarantee smaller output for every input.
# xz and zstd request one compression worker for every explicit preset.
# Precedence: CLI --compression-level > user config > system config.
# Omitting the setting everywhere retains the library's current defaults.
# compression_level = 3
# options = ["strip", "docs", "emptydirs", "zipman", "purge", "lto"]
# strip_binaries = ["--strip-all"]
# strip_shared = ["--strip-debug"]
# strip_static = ["--strip-unneeded"]
# sign = false
# sign_key = ""

[destinations]
# build = "/var/tmp/shellybuild"
# packages = "/var/cache/shelly/packages"
# sources = "/var/cache/shelly/sources"
# logs = "/var/log/shelly/build"

[sandbox]
#enabled = true
#extra_read = []
#extra_write = []