Imaginer/src/meson.build

41 lines
993 B
Meson
Raw Normal View History

2023-04-26 12:52:27 +00:00
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
moduledir = join_paths(pkgdatadir, 'bavarder')
gnome = import('gnome')
python = import('python')
configure_file(
input: 'bavarder.in',
output: 'bavarder',
configuration: conf,
install: true,
install_dir: get_option('bindir'),
install_mode: 'r-xr--r--'
)
configure_file(
input: 'constants.py.in',
output: 'constants.py',
configuration: configuration_data({
'APP_ID': APPLICATION_ID,
'RELEASE_VER': meson.project_version(),
'VERSION': meson.project_version() + VERSION_SUFFIX,
'BUILD_TYPE': get_option('buildtype'),
'PROJECT_URL': PROJECT_URL,
'DATA_DIR': conf.get('DATA_DIR'),
'PKGDATA_DIR': PKGDATA_DIR,
'LOCALE_DIR': conf.get('LOCALE_DIR'),
}),
install: true,
2023-04-26 22:32:45 +00:00
install_dir: moduledir
2023-04-26 12:52:27 +00:00
)
bavarder_sources = [
'__init__.py',
'main.py',
2023-04-26 22:32:45 +00:00
'preferences.py',
2023-04-26 12:52:27 +00:00
'window.py',
]
2023-04-26 22:32:45 +00:00
PY_INSTALLDIR.install_sources(bavarder_sources, subdir: moduledir)