Skip to content

Commit

Permalink
meson: use install_subdir for gtk assets
Browse files Browse the repository at this point in the history
  • Loading branch information
lassekongo83 committed Dec 14, 2020
1 parent 76d2fa1 commit a54296d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 105 deletions.
43 changes: 1 addition & 42 deletions gtk/src/Plano/gtk-2.0/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,8 @@ gtk2_theme_data_sources = [
'gtkrc',
]

gtk2_asset_dir = join_paths(gtk2_dir, 'assets')

# static asset files to copy
gtk2_asset_data_sources = [
'assets/button-default.png',
'assets/button-hover.png',
'assets/button-pressed.png',
'assets/button-pressed-hover.png',
'assets/button-insensitive.png',
'assets/checkbox-unchecked.png',
'assets/checkbox-unchecked-hover.png',
'assets/checkbox-checked.png',
'assets/checkbox-unchecked-insensitive.png',
'assets/checkbox-checked-insensitive.png',
'assets/checkbox-mixed.png',
'assets/checkbox-mixed-insensitive.png',
'assets/radio-unchecked.png',
'assets/radio-unchecked-hover.png',
'assets/radio-checked.png',
'assets/radio-unchecked-insensitive.png',
'assets/radio-checked-insensitive.png',
'assets/radio-mixed.png',
'assets/radio-mixed-insensitive.png',
'assets/handle.png',
'assets/resize-grip.png',
'assets/null.png',
'assets/base-color.png',
'assets/scrollarrow-down.png',
'assets/scrollarrow-down-insensitive.png',
'assets/scrollarrow-up.png',
'assets/scrollarrow-up-insensitive.png',
'assets/scrollarrow-left.png',
'assets/scrollarrow-left-insensitive.png',
'assets/scrollarrow-right.png',
'assets/scrollarrow-right-insensitive.png',
'assets/scrollbar-slider.png',
'assets/scrollbar-slider-hover.png',
'assets/scrollbar-trough.png',
'assets/selected-color.png',
]

# Install theme files
install_data(gtk2_theme_data_sources, install_dir: gtk2_dir)

# Install asset files
install_data(gtk2_asset_data_sources, install_dir: gtk2_asset_dir)
install_subdir('assets', install_dir : gtk2_dir, strip_directory : false)
64 changes: 1 addition & 63 deletions gtk/src/Plano/gtk-3.0/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,68 +18,6 @@ gtk3_scss_dependencies = [
'_drawing.scss',
]

gtk3_asset_dir = join_paths(gtk3_dir, 'assets')

gtk3_assets = [
'assets/bullet-symbolic.svg',
'assets/check-symbolic.svg',
'assets/dash-symbolic.svg',
'assets/bullet-symbolic.symbolic.png',
'assets/[email protected]',
'assets/check-symbolic.symbolic.png',
'assets/[email protected]',
'assets/dash-symbolic.symbolic.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/[email protected]',
'assets/scrollarrow-down-dark.png',
'assets/[email protected]',
'assets/scrollarrow-down-insensitive.png',
'assets/scrollarrow-down.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/scrollarrow-left-dark.png',
'assets/[email protected]',
'assets/scrollarrow-left-insensitive.png',
'assets/scrollarrow-left.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/scrollarrow-right-dark.png',
'assets/[email protected]',
'assets/scrollarrow-right-insensitive.png',
'assets/scrollarrow-right.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/scrollarrow-up-dark.png',
'assets/[email protected]',
'assets/scrollarrow-up-insensitive.png',
'assets/scrollarrow-up.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/titlebutton-close-backdrop.png',
'assets/[email protected]',
'assets/titlebutton-close-hover.png',
'assets/titlebutton-close.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/titlebutton-maximize-backdrop.png',
'assets/[email protected]',
'assets/titlebutton-maximize-hover.png',
'assets/titlebutton-maximize.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/titlebutton-minimize-backdrop.png',
'assets/[email protected]',
'assets/titlebutton-minimize-hover.png',
'assets/titlebutton-minimize.png',
'assets/[email protected]',
'assets/[email protected]',
'assets/titlebutton-unmaximize-backdrop.png',
'assets/[email protected]',
'assets/titlebutton-unmaximize-hover.png',
'assets/titlebutton-unmaximize.png',
]

# Generate .css files and install
gtk3_scss_dependencies = files(gtk3_scss_dependencies)
#
Expand All @@ -96,4 +34,4 @@ foreach f : gtk3_scss_sources
endforeach

# Install asset files to themes/ThemeName/gtk-3.0/assets
install_data(gtk3_assets, install_dir: gtk3_asset_dir)
install_subdir('assets', install_dir : gtk3_dir, strip_directory : false)

0 comments on commit a54296d

Please sign in to comment.