aboutsummaryrefslogtreecommitdiff
path: root/tools/meson.build
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-10-04 16:48:54 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2020-10-04 20:14:05 +0300
commitdb3c9c8d3b5903b353bca2fa349d3386c1f68096 (patch)
tree53775743b0f1ec64c271175f595d06502ea1bcaf /tools/meson.build
parentRemove outparam section in Configuration parse (diff)
downloadsmolbote-db3c9c8d3b5903b353bca2fa349d3386c1f68096.tar.xz
Remove Breakpad optdepend
Diffstat (limited to 'tools/meson.build')
-rw-r--r--tools/meson.build26
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'),