add meson.build

parent 982051be
ximperconf
vendor/
builddir/
\ No newline at end of file
project('ximperconf',
version: '0.1.0',
meson_version: '>= 1.0.0',
default_options: [
'warning_level=2',
],
)
go_root = run_command('printenv', 'GOROOT', check: false)
go_bin = go_root.returncode() != 0 ? find_program('go') : find_program(join_paths(go_root.stdout().strip(), 'bin', 'go'))
custom_target(
'go-build',
build_by_default: true,
build_always_stale: true,
output: meson.project_name(),
console: true,
install: true,
install_dir: get_option('bindir'),
command: [
'go', 'build','-o','@OUTPUT@',meson.current_source_dir()
],
env: [
'CGO_ENABLED=0'
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment