config.def.lua (1192B)
1 local sets = dofile(basedir..'/sets.lua') 2 3 -- configuration table 4 local C = {} 5 6 -- build output directory 7 C.builddir = 'out' 8 9 -- install prefix (needed by some packages) 10 C.prefix = '' 11 12 -- distfile directory 13 C.distdir = 'dist' 14 15 -- compress man pages 16 C.gzman = true 17 18 --[[ 19 package/file selection 20 21 Each entry contains a list of packages, a list of patterns to 22 include, and a list of patterns to exclude. If no patterns 23 are specified, all files from the package are included. 24 25 You may also specify a list of patterns to include or exclude 26 for any packages not matching any entries. If no patterns are 27 specified, all files from the package are excluded. 28 include={...}, exclude={...}, 29 --]] 30 C.fs = { 31 { sets.bin, exclude = {'^include/', '^lib/.*%.a$'} }, 32 { sets.lib }, 33 } 34 35 -- target toolchain and flags 36 C.target = { 37 platform='x86_64-gentoo-linux-musl', 38 cflags='-Os -fPIE -pipe', 39 ldflags='-s -static-pie', 40 } 41 42 -- host toolchain and flags 43 C.host = { cflags = '-O2 -pipe', ldflags = '', } 44 45 -- output git repository 46 C.repo = { 47 path='$builddir/root.git', 48 flags='--bare', 49 tag='tree', 50 branch='master', 51 } 52 53 -- GPU driver (possible_values: amdgpu intel nouveau) 54 -- C.video_drivers={intel=true} 55 56 return C