Skip to content

Commit 1124484

Browse files
committed
cleanup meson files
1 parent 5ba2e07 commit 1124484

File tree

3 files changed

+31
-112
lines changed

3 files changed

+31
-112
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"mesonbuild.configureOnOpen": true
3+
}

Helium/gtk-3.0/meson.build

+14-34
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,22 @@ gtk3_dir = join_paths(theme_dir, 'gtk-3.0')
33
# Install asset files to themes/ThemeName/gtk-3.0/assets
44
install_subdir('assets', install_dir : gtk3_dir, strip_directory : false)
55

6-
# theme sources .scss files
7-
8-
# The files that need to be compiled
9-
if get_option('dark')
10-
gtk3_scss_sources = [
11-
'gtk',
12-
'gtk-dark',
13-
]
14-
else
15-
gtk3_scss_sources = [
16-
'gtk',
17-
'gtk-dark',
18-
]
19-
endif
20-
21-
# Dependencies of the files that need to be compiled
22-
gtk3_scss_dependencies = [
23-
'_functions.scss',
24-
'_colors-public.scss',
25-
'_custom.scss',
26-
'_colors.scss',
27-
'_common.scss',
28-
'_drawing.scss',
29-
]
30-
31-
# Generate .css files and install
32-
gtk3_scss_dependencies = files(gtk3_scss_dependencies)
33-
#
34-
foreach f : gtk3_scss_sources
35-
custom_target('generate_' + f,
36-
input: f + '.scss',
37-
output: f + '.css',
38-
depend_files: gtk3_scss_dependencies,
6+
generate_gtk3_light = custom_target('generate_gtk3_light',
7+
input: 'gtk.scss',
8+
output: 'gtk.css',
399
command: [sass, '--no-source-map', '-s', 'compressed', '@INPUT@', '@OUTPUT@'],
4010
build_by_default: true,
4111
install: true,
4212
install_dir: gtk3_dir,
4313
)
44-
endforeach
14+
15+
if get_option('dark')
16+
generate_gtk3_dark = custom_target('generate_gtk3_dark',
17+
input: 'gtk-dark.scss',
18+
output: 'gtk-dark.css',
19+
command: [sass, '--no-source-map', '-s', 'compressed', '@INPUT@', '@OUTPUT@'],
20+
build_by_default: true,
21+
install: true,
22+
install_dir: gtk3_dir,
23+
)
24+
endif

Helium/gtk-4.0/meson.build

+14-78
Original file line numberDiff line numberDiff line change
@@ -3,86 +3,22 @@ gtk4_dir = join_paths(theme_dir, 'gtk-4.0')
33
# Install asset files to themes/ThemeName/gtk-4.0/assets
44
install_subdir('assets', install_dir : gtk4_dir, strip_directory : false)
55

6-
# theme sources .scss files
7-
8-
# The files that need to be compiled
9-
if get_option('dark')
10-
gtk4_scss_sources = [
11-
'gtk',
12-
'gtk-dark',
13-
]
14-
else
15-
gtk4_scss_sources = [
16-
'gtk',
17-
'gtk-dark',
18-
]
19-
endif
20-
21-
# Dependencies of the files that need to be compiled
22-
gtk4_scss_dependencies = [
23-
'_colors.scss',
24-
'_common.scss',
25-
'_compat-colors.scss',
26-
'_defaults.scss',
27-
'_drawing.scss',
28-
'_functions.scss',
29-
'_widgets.scss',
30-
'_tauos.scss',
31-
32-
'widgets/_avatar.scss',
33-
'widgets/_buttons.scss',
34-
'widgets/_calendar.scss',
35-
'widgets/_checks.scss',
36-
'widgets/_color-chooser.scss',
37-
'widgets/_dialogs.scss',
38-
'widgets/_dropdowns.scss',
39-
'widgets/_emoji-chooser.scss',
40-
'widgets/_entries.scss',
41-
'widgets/_expanders.scss',
42-
'widgets/_file-chooser.scss',
43-
'widgets/_header-bar.scss',
44-
'widgets/_labels.scss',
45-
'widgets/_level-bar.scss',
46-
'widgets/_linked.scss',
47-
'widgets/_links.scss',
48-
'widgets/_lists.scss',
49-
'widgets/_menus.scss',
50-
'widgets/_message-dialog.scss',
51-
'widgets/_misc.scss',
52-
'widgets/_notebook.scss',
53-
'widgets/_paned.scss',
54-
'widgets/_popovers.scss',
55-
'widgets/_preferences.scss',
56-
'widgets/_progress-bar.scss',
57-
'widgets/_scale.scss',
58-
'widgets/_scrolling.scss',
59-
'widgets/_shortcuts-window.scss',
60-
'widgets/_sidebars.scss',
61-
'widgets/_spinner.scss',
62-
'widgets/_spin-button.scss',
63-
'widgets/_switch.scss',
64-
'widgets/_tab-view.scss',
65-
'widgets/_text-selection.scss',
66-
'widgets/_toolbars.scss',
67-
'widgets/_tooltip.scss',
68-
'widgets/_transition-shadow.scss',
69-
'widgets/_trees.scss',
70-
'widgets/_views.scss',
71-
'widgets/_view-switcher.scss',
72-
'widgets/_window.scss',
73-
]
74-
75-
# Generate .css files and install
76-
gtk4_scss_dependencies = files(gtk4_scss_dependencies)
77-
#
78-
foreach f : gtk4_scss_sources
79-
custom_target('generate_' + f,
80-
input: f + '.scss',
81-
output: f + '.css',
82-
depend_files: gtk4_scss_dependencies,
6+
generate_gtk4_light = custom_target('generate_gtk4_light',
7+
input: 'gtk.scss',
8+
output: 'gtk.css',
839
command: [sass, '--no-source-map', '-s', 'compressed', '@INPUT@', '@OUTPUT@'],
8410
build_by_default: true,
8511
install: true,
8612
install_dir: gtk4_dir,
8713
)
88-
endforeach
14+
15+
if get_option('dark')
16+
generate_gtk4_dark = custom_target('generate_gtk4_dark',
17+
input: 'gtk-dark.scss',
18+
output: 'gtk-dark.css',
19+
command: [sass, '--no-source-map', '-s', 'compressed', '@INPUT@', '@OUTPUT@'],
20+
build_by_default: true,
21+
install: true,
22+
install_dir: gtk4_dir,
23+
)
24+
endif

0 commit comments

Comments
 (0)