Files
gnome-night-theme-switcher/src/meson.build
T

65 lines
1.5 KiB
Meson

# SPDX-FileCopyrightText: 2022 Romain Vigier <contact AT romainvigier.fr>
# SPDX-License-Identifier: GPL-3.0-or-later
configure_file(
input: 'metadata.json.in',
output: 'metadata.json',
configuration: {
'DNS': DNS,
'UUID': UUID,
'VERSION': meson.project_version(),
'BUILD_TYPE': get_option('buildtype')
},
install_dir: INSTALL_DIR
)
main = [
'debug.js',
'extension.js',
'prefs.js',
'utils.js',
]
enums = [
'enums/Time.js',
]
icons = [
'data/icons/nightthemeswitcher-symbolic.svg',
]
modules = [
'modules/Switcher.js',
'modules/SwitcherCommands.js',
'modules/SwitcherTheme.js',
'modules/Timer.js',
]
preferences = [
'preferences/BackgroundButton.js',
'preferences/BackgroundsPage.js',
'preferences/ClearableEntry.js',
'preferences/CommandsPage.js',
'preferences/ContributePage.js',
'preferences/DropDownChoice.js',
'preferences/SchedulePage.js',
'preferences/ShortcutButton.js',
'preferences/ThemesPage.js',
'preferences/TimeChooser.js',
]
install_data(main, install_dir: INSTALL_DIR)
install_data(enums, install_dir: INSTALL_DIR / 'enums')
install_data(icons, install_dir: INSTALL_DIR / 'icons')
install_data(modules, install_dir: INSTALL_DIR / 'modules')
install_data(preferences, install_dir: INSTALL_DIR / 'preferences')
subdir('data')
subdir('po')
if (get_option('pack'))
zip_exe = find_program('zip')
meson.add_install_script(
meson.project_source_root() / 'build-aux' / 'pack.sh',
zip_exe.full_path(),
UUID,
meson.project_source_root() / get_option('packdir')
)
endif