Build system: Fix indentation
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ i18n = import('i18n')
|
||||
|
||||
npm_exe = find_program('npm', required: false)
|
||||
if npm_exe.found()
|
||||
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
||||
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
||||
endif
|
||||
|
||||
subdir('src')
|
||||
|
||||
+12
-12
@@ -11,20 +11,20 @@ gnome.compile_resources(
|
||||
|
||||
glib_compile_schemas_exe = find_program('glib-compile-schemas')
|
||||
custom_target(
|
||||
'gschemas',
|
||||
build_by_default: true,
|
||||
output: 'gschemas.compiled',
|
||||
command: [
|
||||
glib_compile_schemas_exe,
|
||||
'--targetdir=@OUTDIR@',
|
||||
'@CURRENT_SOURCE_DIR@'
|
||||
],
|
||||
install: true,
|
||||
install_dir: INSTALL_DIR / 'schemas'
|
||||
'gschemas',
|
||||
build_by_default: true,
|
||||
output: 'gschemas.compiled',
|
||||
command: [
|
||||
glib_compile_schemas_exe,
|
||||
'--targetdir=@OUTDIR@',
|
||||
'@CURRENT_SOURCE_DIR@'
|
||||
],
|
||||
install: true,
|
||||
install_dir: INSTALL_DIR / 'schemas'
|
||||
)
|
||||
|
||||
icons = [
|
||||
'icons/nightthemeswitcher-ondemand-off-symbolic.svg',
|
||||
'icons/nightthemeswitcher-ondemand-on-symbolic.svg'
|
||||
'icons/nightthemeswitcher-ondemand-off-symbolic.svg',
|
||||
'icons/nightthemeswitcher-ondemand-on-symbolic.svg'
|
||||
]
|
||||
install_data(icons, install_dir: INSTALL_DIR / 'icons' / 'hicolor' / 'scalable' / 'status')
|
||||
|
||||
+30
-30
@@ -2,45 +2,45 @@
|
||||
# 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()
|
||||
},
|
||||
install_dir: INSTALL_DIR
|
||||
input: 'metadata.json.in',
|
||||
output: 'metadata.json',
|
||||
configuration: {
|
||||
'DNS': DNS,
|
||||
'UUID': UUID,
|
||||
'VERSION': meson.project_version()
|
||||
},
|
||||
install_dir: INSTALL_DIR
|
||||
)
|
||||
|
||||
main = [
|
||||
'extension.js',
|
||||
'prefs.js',
|
||||
'utils.js',
|
||||
'extension.js',
|
||||
'prefs.js',
|
||||
'utils.js',
|
||||
]
|
||||
enums = [
|
||||
'enums/Time.js',
|
||||
'enums/Time.js',
|
||||
]
|
||||
modules = [
|
||||
'modules/Switcher.js',
|
||||
'modules/SwitcherCommands.js',
|
||||
'modules/SwitcherTheme.js',
|
||||
'modules/Timer.js',
|
||||
'modules/TimerLocation.js',
|
||||
'modules/TimerNightlight.js',
|
||||
'modules/TimerOndemand.js',
|
||||
'modules/TimerSchedule.js',
|
||||
'modules/Switcher.js',
|
||||
'modules/SwitcherCommands.js',
|
||||
'modules/SwitcherTheme.js',
|
||||
'modules/Timer.js',
|
||||
'modules/TimerLocation.js',
|
||||
'modules/TimerNightlight.js',
|
||||
'modules/TimerOndemand.js',
|
||||
'modules/TimerSchedule.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',
|
||||
'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)
|
||||
|
||||
+19
-19
@@ -3,28 +3,28 @@
|
||||
|
||||
reuse_exe = find_program('reuse', required: false)
|
||||
if reuse_exe.found()
|
||||
test(
|
||||
'reuse',
|
||||
reuse_exe,
|
||||
args: [
|
||||
'--root',
|
||||
meson.project_source_root(),
|
||||
'lint'
|
||||
],
|
||||
suite: 'licensing',
|
||||
)
|
||||
test(
|
||||
'reuse',
|
||||
reuse_exe,
|
||||
args: [
|
||||
'--root',
|
||||
meson.project_source_root(),
|
||||
'lint'
|
||||
],
|
||||
suite: 'licensing',
|
||||
)
|
||||
endif
|
||||
|
||||
eslint_exe = find_program(
|
||||
'eslint', 'eslint.js',
|
||||
required: false,
|
||||
dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ]
|
||||
'eslint', 'eslint.js',
|
||||
required: false,
|
||||
dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ]
|
||||
)
|
||||
if eslint_exe.found()
|
||||
test(
|
||||
'eslint',
|
||||
eslint_exe,
|
||||
args: [ meson.project_source_root() / 'src' ],
|
||||
suite: 'code',
|
||||
)
|
||||
test(
|
||||
'eslint',
|
||||
eslint_exe,
|
||||
args: [ meson.project_source_root() / 'src' ],
|
||||
suite: 'code',
|
||||
)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user