diff options
Diffstat (limited to 'tools/meson.build')
-rw-r--r-- | tools/meson.build | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tools/meson.build b/tools/meson.build index fd1547e..7008eca 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -1,29 +1,3 @@ -if get_option('crashhandler').enabled() or get_option('updater').enabled() - go = find_program('go', required: true) - go_args = [ '-buildmode=pie' ] -endif - -if get_option('crashhandler').enabled() - -# normally, you'd use configure_file to create this file, but that would only place it in build, -# and go will refuse to build from files in two different directories -meson.add_postconf_script(meson.source_root()/'scripts/gen-crashhandler-default-go.py', - '--kconfig=' + meson.source_root()/'Kconfig', - '--dotconfig=' + meson.source_root()/host_machine.system()/'.config', - '--input=' + meson.current_source_dir()/'src/crashhandler/defaults.go.in', - '--output=' + meson.current_source_dir()/'src/crashhandler/defaults.go' -) - -custom_target('poi-crash', - input: [ files('src/updater/main.go'), meson.current_source_dir()/'src/crashhandler/defaults.go' ], - output: 'poi-crash', - command: ['env', 'GOPATH='+meson.current_source_dir(), go, 'build', go_args, '-o=@OUTPUT@', 'crashhandler'], - build_by_default: true, - install: true, - install_dir: get_option('bindir'), -) -endif - if get_option('updater').enabled() custom_target('poi-update', input: files('src/updater/main.go'), |