From c57f22b470961c15528590ac2c41332d8ae4c7a2 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Thu, 30 Jan 2025 22:23:29 +0100 Subject: [PATCH] adding relocatable option to meson build system --- meson.build | 3 +++ meson_options.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/meson.build b/meson.build index d58c9e3899..d2ae691333 100644 --- a/meson.build +++ b/meson.build @@ -73,6 +73,9 @@ if get_option('enable_update_checker') conf.set_quoted('UPDATE_CHECKER_SERVER', get_option('update_server')) conf.set_quoted('UPDATE_CHECKER_BASE_URL', get_option('update_url')) endif +if get_option('relocatable') and host_machine.system() == 'linux' + conf.set('APPIMAGE_BUILD', 1) +endif deps = [] deps_inc = [] diff --git a/meson_options.txt b/meson_options.txt index 1c29cd3b33..6b5d796457 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -26,3 +26,5 @@ option('update_server', type: 'string', value: 'https://aegisub-updates.redvice. option('update_url', type: 'string', value: '/trunk', description: 'Base path to use for the update checker') option('build_osx_bundle', type: 'boolean', value: false, description: 'Package Aegisub.app on OSX') + +option('relocatable', type: 'boolean', value: false, description: 'Enable relocatable build')