1
0
Fork 0

meson: set dataroot correctly for osx bundle

This commit is contained in:
Ryan Lucia 2021-01-30 16:22:05 -05:00
parent 1fd574f556
commit c32c612dc3
1 changed files with 2 additions and 1 deletions

View File

@ -37,14 +37,15 @@ if host_machine.system() == 'darwin' and get_option('build_osx_bundle')
bindir = prefix / 'MacOS'
datadir = prefix / 'SharedSupport'
localedir = prefix / 'Resources'
dataroot = datadir
else
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')
localedir = prefix / get_option('localedir')
dataroot = datadir / 'aegisub'
endif
docdir = prefix / 'doc'
dataroot = datadir / 'aegisub'
# MSVC sets this automatically with -MDd, but it has a different meaning on other platforms
if get_option('debug') and host_machine.system() != 'windows'