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)
|
npm_exe = find_program('npm', required: false)
|
||||||
if npm_exe.found()
|
if npm_exe.found()
|
||||||
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
|||||||
+12
-12
@@ -11,20 +11,20 @@ gnome.compile_resources(
|
|||||||
|
|
||||||
glib_compile_schemas_exe = find_program('glib-compile-schemas')
|
glib_compile_schemas_exe = find_program('glib-compile-schemas')
|
||||||
custom_target(
|
custom_target(
|
||||||
'gschemas',
|
'gschemas',
|
||||||
build_by_default: true,
|
build_by_default: true,
|
||||||
output: 'gschemas.compiled',
|
output: 'gschemas.compiled',
|
||||||
command: [
|
command: [
|
||||||
glib_compile_schemas_exe,
|
glib_compile_schemas_exe,
|
||||||
'--targetdir=@OUTDIR@',
|
'--targetdir=@OUTDIR@',
|
||||||
'@CURRENT_SOURCE_DIR@'
|
'@CURRENT_SOURCE_DIR@'
|
||||||
],
|
],
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: INSTALL_DIR / 'schemas'
|
install_dir: INSTALL_DIR / 'schemas'
|
||||||
)
|
)
|
||||||
|
|
||||||
icons = [
|
icons = [
|
||||||
'icons/nightthemeswitcher-ondemand-off-symbolic.svg',
|
'icons/nightthemeswitcher-ondemand-off-symbolic.svg',
|
||||||
'icons/nightthemeswitcher-ondemand-on-symbolic.svg'
|
'icons/nightthemeswitcher-ondemand-on-symbolic.svg'
|
||||||
]
|
]
|
||||||
install_data(icons, install_dir: INSTALL_DIR / 'icons' / 'hicolor' / 'scalable' / 'status')
|
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
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'metadata.json.in',
|
input: 'metadata.json.in',
|
||||||
output: 'metadata.json',
|
output: 'metadata.json',
|
||||||
configuration: {
|
configuration: {
|
||||||
'DNS': DNS,
|
'DNS': DNS,
|
||||||
'UUID': UUID,
|
'UUID': UUID,
|
||||||
'VERSION': meson.project_version()
|
'VERSION': meson.project_version()
|
||||||
},
|
},
|
||||||
install_dir: INSTALL_DIR
|
install_dir: INSTALL_DIR
|
||||||
)
|
)
|
||||||
|
|
||||||
main = [
|
main = [
|
||||||
'extension.js',
|
'extension.js',
|
||||||
'prefs.js',
|
'prefs.js',
|
||||||
'utils.js',
|
'utils.js',
|
||||||
]
|
]
|
||||||
enums = [
|
enums = [
|
||||||
'enums/Time.js',
|
'enums/Time.js',
|
||||||
]
|
]
|
||||||
modules = [
|
modules = [
|
||||||
'modules/Switcher.js',
|
'modules/Switcher.js',
|
||||||
'modules/SwitcherCommands.js',
|
'modules/SwitcherCommands.js',
|
||||||
'modules/SwitcherTheme.js',
|
'modules/SwitcherTheme.js',
|
||||||
'modules/Timer.js',
|
'modules/Timer.js',
|
||||||
'modules/TimerLocation.js',
|
'modules/TimerLocation.js',
|
||||||
'modules/TimerNightlight.js',
|
'modules/TimerNightlight.js',
|
||||||
'modules/TimerOndemand.js',
|
'modules/TimerOndemand.js',
|
||||||
'modules/TimerSchedule.js',
|
'modules/TimerSchedule.js',
|
||||||
]
|
]
|
||||||
preferences = [
|
preferences = [
|
||||||
'preferences/BackgroundButton.js',
|
'preferences/BackgroundButton.js',
|
||||||
'preferences/BackgroundsPage.js',
|
'preferences/BackgroundsPage.js',
|
||||||
'preferences/ClearableEntry.js',
|
'preferences/ClearableEntry.js',
|
||||||
'preferences/CommandsPage.js',
|
'preferences/CommandsPage.js',
|
||||||
'preferences/ContributePage.js',
|
'preferences/ContributePage.js',
|
||||||
'preferences/DropDownChoice.js',
|
'preferences/DropDownChoice.js',
|
||||||
'preferences/SchedulePage.js',
|
'preferences/SchedulePage.js',
|
||||||
'preferences/ShortcutButton.js',
|
'preferences/ShortcutButton.js',
|
||||||
'preferences/ThemesPage.js',
|
'preferences/ThemesPage.js',
|
||||||
'preferences/TimeChooser.js',
|
'preferences/TimeChooser.js',
|
||||||
]
|
]
|
||||||
|
|
||||||
install_data(main, install_dir: INSTALL_DIR)
|
install_data(main, install_dir: INSTALL_DIR)
|
||||||
|
|||||||
+19
-19
@@ -3,28 +3,28 @@
|
|||||||
|
|
||||||
reuse_exe = find_program('reuse', required: false)
|
reuse_exe = find_program('reuse', required: false)
|
||||||
if reuse_exe.found()
|
if reuse_exe.found()
|
||||||
test(
|
test(
|
||||||
'reuse',
|
'reuse',
|
||||||
reuse_exe,
|
reuse_exe,
|
||||||
args: [
|
args: [
|
||||||
'--root',
|
'--root',
|
||||||
meson.project_source_root(),
|
meson.project_source_root(),
|
||||||
'lint'
|
'lint'
|
||||||
],
|
],
|
||||||
suite: 'licensing',
|
suite: 'licensing',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
eslint_exe = find_program(
|
eslint_exe = find_program(
|
||||||
'eslint', 'eslint.js',
|
'eslint', 'eslint.js',
|
||||||
required: false,
|
required: false,
|
||||||
dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ]
|
dirs: [ meson.project_source_root() / 'node_modules' / 'eslint' / 'bin' ]
|
||||||
)
|
)
|
||||||
if eslint_exe.found()
|
if eslint_exe.found()
|
||||||
test(
|
test(
|
||||||
'eslint',
|
'eslint',
|
||||||
eslint_exe,
|
eslint_exe,
|
||||||
args: [ meson.project_source_root() / 'src' ],
|
args: [ meson.project_source_root() / 'src' ],
|
||||||
suite: 'code',
|
suite: 'code',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user