diff options
| author | Michael Forney <mforney@mforney.org> | 2017-10-24 01:28:38 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-10-24 02:01:14 -0700 |
| commit | 003dbc74886944c98f6ed5bd696bee7e7130c348 (patch) | |
| tree | 9156c1a6cb3d825fc23db16ec04928deb8cf7fec /config.def.lua | |
| parent | ce46e7b5099b98406dd7b6013d1ab50aa23de676 (diff) | |
Move defaults to config.def.lua
Diffstat (limited to 'config.def.lua')
| -rw-r--r-- | config.def.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/config.def.lua b/config.def.lua index af777f4b..37ea53c7 100644 --- a/config.def.lua +++ b/config.def.lua @@ -1,10 +1,41 @@ local sets = dofile 'sets.lua' return { + -- build output directory + builddir='out', + + -- package/file selection fs={ + -- Each entry contains a list of packages, a list of patterns to + -- include, and a list of patterns to exclude. If no patterns + -- are specified, all files from the package are included. {sets.core, exclude={'^include/', '^lib/.*%.a$'}}, }, + -- target toolchain and flags + target={ + toolchain='x86_64-linux-musl', + cflags='-O2 -pipe', + cxxflags='$target_cflags', + ldflags='-s -static', + }, + + -- host toolchain and flags + host={ + toolchain='default', + cflags='-pipe', + cxxflags='$host_cflags', + ldflags='', + }, + + -- output git repository + repo={ + path='$builddir/root.git', + flags='--bare', + tag='tree', + branch='master', + }, + -- TLS implementation (possible_values: libressl bearssl) tls='libressl', |
