1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

Add a build option to tag official releases

This commit is contained in:
Ryan Lucia 2023-12-03 13:01:44 -08:00
parent 0b40de8bea
commit c29c24093c
3 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,9 @@ conf.set_quoted('P_LOCALE', localedir)
if get_option('credit') != ''
conf.set_quoted('BUILD_CREDIT', get_option('credit'))
endif
if get_option('official_release')
conf.set('AEGI_OFFICIAL_RELEASE', 1)
endif
conf.set('WITH_UPDATE_CHECKER', get_option('enable_update_checker'))
deps = []

View File

@ -19,6 +19,7 @@ option('local_boost', type: 'boolean', value: false, description: 'Force using l
option('wx_version', type: 'string', value: '3.0.0', description: 'The minimum wxWidgets version to use')
option('credit', type: 'string', value: '', description: 'Build credit shown in program title')
option('official_release', type: 'boolean', value: false, description: 'Set on official builds')
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')

View File

@ -67,7 +67,11 @@ const char *GetAegisubBuildCredit() {
#endif
bool GetIsOfficialRelease() {
#ifdef AEGI_OFFICIAL_RELEASE
return AEGI_OFFICIAL_RELEASE;
#else
return false;
#endif
}
const char *GetVersionNumber() {