Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit a6b5305

Browse files
committed
Add slint_style option to meson
This adds ability to set SLINT_STYLE at compile time.
1 parent 977ed94 commit a6b5305

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cargo = find_program('cargo')
44

55
buildtype = get_option('buildtype')
66
cargo_mode = buildtype.startswith('debug') ? [] : ['--release']
7+
slint_style = get_option('slint_style')
78

89
custom_target(
910
'salam',
@@ -16,6 +17,9 @@ custom_target(
1617
'--manifest-path', meson.project_source_root() / 'Cargo.toml',
1718
]
1819
+ cargo_mode,
20+
env: {
21+
'SLINT_STYLE': slint_style,
22+
},
1923
console: true,
2024
)
2125

meson_options.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
option('slint_style',
2+
type: 'combo',
3+
choices: ['native', 'fluent', 'material', 'cupertino'],
4+
value: 'native',
5+
description: 'Slint style to use at compile time')

0 commit comments

Comments
 (0)