Gradience/gradience/backend/meson.build
tfuxu e834e55b11
backend/models: refactor Preset model object
This commit is the first in a series of commits that will introduce new CLI interface for Gradience. Currently we need to move some parts of code that reside mostly in frontend modules to their new backend modules, and this commit is the beggining of this whole ordeal.

* Refactor Preset model object, in order to make it more readable and to allow `new` function that directly takes new values for properties
* Move presets_dir from models/preset to new backend/globals module
* Create new utils/colors module (will be used in later commits)
* Update all modules that are affected by above changes
2022-12-08 12:43:12 +01:00

34 lines
866 B
Meson

backenddir = 'gradience/backend'
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,
'BUGTRACKER_URL': BUGTRACKER_URL,
'HELP_URL': HELP_URL,
'TRANSLATE_URL': TRANSLATE_URL,
'PKGDATA_DIR': PKGDATA_DIR,
'LOCALE_DIR': conf.get('LOCALE_DIR'),
}),
install: true,
install_dir: PY_INSTALLDIR.get_install_dir() / backenddir,
)
subdir('models')
subdir('utils')
gradience_sources = [
'__init__.py',
'css_parser.py',
'flatpak_overrides.py',
'globals.py',
'logger.py',
'preset_downloader.py'
]
PY_INSTALLDIR.install_sources(gradience_sources, subdir: backenddir)