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')