代码拉取完成,页面将自动刷新
project(
'Setzer',
version: '66',
license: 'GPL-3.0-or-later',
)
python = import('python').find_installation()
python_bin = python.full_path()
# configure folders
prefix = get_option('prefix')
bindir = get_option('bindir')
datadir = get_option('datadir')
pymdir = python.get_install_dir()
resourcesdir = join_paths(datadir, 'Setzer')
localedir = get_option('localedir')
mandir = get_option('mandir')
config = configuration_data()
config.set('setzer_version', meson.project_version())
config.set('localedir_path', join_paths(prefix, localedir))
config.set('resources_path', join_paths(prefix, resourcesdir, 'resources'))
config.set('app_icons_path', join_paths(prefix, datadir, 'icons'))
config.set('python_path', python_bin)
config_dev = config
config_dev.set('localedir_path', '/tmp/usr/share/locale') # this is a workaround
config_dev.set('resources_path', join_paths(meson.source_root(), 'data', 'resources'))
config_dev.set('app_icons_path', join_paths(meson.source_root(), 'data'))
# install translations
subdir('po')
# install python sources
install_subdir(
'setzer',
install_dir: pymdir,
)
# install resources
install_subdir(
join_paths('data', 'resources'),
install_dir: resourcesdir,
)
# install program data
subdir('data')
# install binary
configure_file(
input: 'setzer.in',
output: 'setzer',
configuration: config,
install: true,
install_dir: bindir,
)
# create devel binary
configure_file(
input: 'setzer.in',
output: 'setzer_dev.py',
configuration: config_dev,
)
# run tests
subdir('tests')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。