From cf05a925688b4963e7646c9edf203d350afe27da Mon Sep 17 00:00:00 2001 From: odrling Date: Wed, 27 Nov 2019 02:23:29 +0100 Subject: [PATCH] [meson] fix update checker --- meson.build | 22 +++++++++++++++------- meson_options.txt | 4 ++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index e4456b370..cc56b012a 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project('Aegisub', ['c', 'cpp'], meson_version: '>=0.50.0', # c_std=c11 should be here but it breaks Linux builds for some reason, needs investigation default_options: ['cpp_std=c++11', 'b_lto=true'], - version: '3.2.2') + version: '3.3.2-2') if host_machine.system() == 'windows' version_sh = find_program('tools/version.ps1') @@ -42,6 +42,8 @@ if get_option('credit') != '' conf.set_quoted('BUILD_CREDIT', get_option('credit')) endif conf.set('WITH_UPDATE_CHECKER', 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')) deps = [] deps_inc = [] @@ -69,9 +71,18 @@ deps += iconv_dep deps += dependency('libass', version: '>=0.9.7', fallback: ['libass', 'libass_dep']) -deps += dependency('boost', version: '>=1.50.0', - modules: ['chrono', 'filesystem', 'locale', 'regex', - 'system', 'thread']) + +if get_option('enable_update_checker') + deps += dependency('boost', version: '>=1.66.0', + modules: ['chrono', 'filesystem', 'locale', 'regex', + 'system', 'thread']) + deps += dependency('openssl') +else + deps += dependency('boost', version: '>=1.50.0', + modules: ['chrono', 'filesystem', 'locale', 'regex', + 'system', 'thread']) +endif + deps += dependency('zlib', fallback: ['zlib', 'zlib_dep']) wx_dep = dependency('wxWidgets', version: '>=3.0.0', @@ -225,9 +236,6 @@ endif deps += dep_gl -ssl = dependency('openssl') -deps += ssl - # TODO: csri acconf = configure_file(output: 'acconf.h', configuration: conf) diff --git a/meson_options.txt b/meson_options.txt index 60db33554..d4bf9beb5 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -19,7 +19,7 @@ option('wx_path', type: 'string', value: '', description: 'Path to wxWidgets lib option('credit', type: 'string', value: '', description: 'Build credit shown in program title') option('enable_update_checker', type: 'boolean', value: false, description: 'Enable the update checker') -option('update_server', type: 'string', value: 'updates.aegisub.org', description: 'Server to use for the update checker') -option('update_url', type: 'string', value: '/trunk', description: 'Base path to use for the update checker') +option('update_server', type: 'string', value: 'mugen.karaokes.moe', description: 'Server to use for the update checker') +option('update_url', type: 'string', value: '/downloads/aegisub-japan7', description: 'Base path to use for the update checker') option('build_osx_bundle', type: 'boolean', value: 'false', description: 'Package Aegisub.app on OSX')