diff options
| author | Michael Forney <mforney@mforney.org> | 2017-10-20 21:52:13 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-10-20 21:52:13 -0700 |
| commit | 6026883449f412761b4cf066585c2ec1d1f28f6f (patch) | |
| tree | c52769fdb5dd092b4b04cd355fe9315290f108fb /gen.lua | |
| parent | 677b59c07c7bf2306a9cb387a402cb0feec3ced2 (diff) | |
Remove need for build.ninja and config.ninja
Diffstat (limited to 'gen.lua')
| -rw-r--r-- | gen.lua | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,21 @@ +set('builddir', config.builddir or 'out') +set('outdir', '$builddir') + +set('target_toolchain', config.target_toolchain or 'x86_64-linux-musl') +set('target_cflags', config.target_cflags or '-O2 -pipe') +set('target_cxxflags', config.target_cxxflags or '$target_cflags') +set('target_ldflags', config.target_ldflags or '-s -static') + +set('host_toolchain', config.host_toolchain or 'default') +set('host_cflags', config.host_cflags or '-pipe') +set('host_cxxflags', config.host_cxxflags or '$host_cflags') +set('host_ldflags', config.host_ldflags or '') + +set('repo', config.repo or '$builddir/root.git') +set('repo_flags', config.repo_flags or '--bare') +set('repo_tag', config.repo_tag or 'tree') +set('repo_branch', config.repo_branch or 'master') + include 'rules.ninja' toolchain 'target' |
