| 1 |
# SPDX-FileCopyrightText: 2017 Florian Müllner <[email protected]> |
| 2 |
# |
| 3 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 4 |
|
| 5 |
extension_data += configure_file( |
| 6 |
input: metadata_name + '.in', |
| 7 |
output: metadata_name, |
| 8 |
configuration: metadata_conf |
| 9 |
) |
| 10 |
extension_data += files( |
| 11 |
'stylesheet-dark.css', |
| 12 |
'stylesheet-light.css' |
| 13 |
) |
| 14 |
|
| 15 |
transform_stylesheet = [ |
| 16 |
'sed', '-E', |
| 17 |
'-e', 's:^\.(workspace-indicator):.window-list-\\1:', |
| 18 |
'-e', '/^@import/d', |
| 19 |
'@INPUT@', |
| 20 |
] |
| 21 |
|
| 22 |
workspaceIndicatorSources = [ |
| 23 |
configure_file( |
| 24 |
input: '../workspace-indicator/workspaceIndicator.js', |
| 25 |
output: '@PLAINNAME@', |
| 26 |
copy: true, |
| 27 |
), |
| 28 |
configure_file( |
| 29 |
input: '../workspace-indicator/stylesheet-dark.css', |
| 30 |
output: 'stylesheet-workspace-switcher-dark.css', |
| 31 |
command: transform_stylesheet, |
| 32 |
capture: true, |
| 33 |
), |
| 34 |
configure_file( |
| 35 |
input: '../workspace-indicator/stylesheet-light.css', |
| 36 |
output: 'stylesheet-workspace-switcher-light.css', |
| 37 |
command: transform_stylesheet, |
| 38 |
capture: true, |
| 39 |
), |
| 40 |
files('../workspace-indicator/workspacePrefs.js'), |
| 41 |
] |
| 42 |
|
| 43 |
extension_sources += files('prefs.js') + workspaceIndicatorSources |
| 44 |
extension_schemas += files(metadata_conf.get('gschemaname') + '.gschema.xml') |