Update build configuration
This commit is contained in:
18
meson.build
18
meson.build
@@ -6,9 +6,27 @@ project('cartridges',
|
||||
|
||||
i18n = import('i18n')
|
||||
gnome = import('gnome')
|
||||
python = import('python')
|
||||
|
||||
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
||||
|
||||
profile = get_option('profile')
|
||||
if profile == 'development'
|
||||
app_id = 'hu.kramo.Cartridges.Devel'
|
||||
prefix = '/hu/kramo/Cartridges/Devel/'
|
||||
elif profile == 'release'
|
||||
app_id = 'hu.kramo.Cartridges'
|
||||
prefix = '/hu/kramo/Cartridges/'
|
||||
endif
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('PYTHON', python.find_installation('python3').full_path())
|
||||
conf.set('APP_ID', app_id)
|
||||
conf.set('PREFIX', prefix)
|
||||
conf.set('VERSION', meson.project_version())
|
||||
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
||||
conf.set('pkgdatadir', pkgdatadir)
|
||||
|
||||
subdir('data')
|
||||
subdir('src')
|
||||
subdir('po')
|
||||
|
||||
Reference in New Issue
Block a user