diff --git a/gtk/src/Plano/gtk-2.0/meson.build b/gtk/src/Plano/gtk-2.0/meson.build index b3268e3..9d1ae9f 100644 --- a/gtk/src/Plano/gtk-2.0/meson.build +++ b/gtk/src/Plano/gtk-2.0/meson.build @@ -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) diff --git a/gtk/src/Plano/gtk-3.0/meson.build b/gtk/src/Plano/gtk-3.0/meson.build index a27e407..edbb8d8 100644 --- a/gtk/src/Plano/gtk-3.0/meson.build +++ b/gtk/src/Plano/gtk-3.0/meson.build @@ -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/bullet@2-symbolic.symbolic.png', - 'assets/check-symbolic.symbolic.png', - 'assets/check@2-symbolic.symbolic.png', - 'assets/dash-symbolic.symbolic.png', - 'assets/dash@2-symbolic.symbolic.png', - 'assets/scrollarrow-down@2.png', - 'assets/scrollarrow-down-dark@2.png', - 'assets/scrollarrow-down-dark.png', - 'assets/scrollarrow-down-insensitive@2.png', - 'assets/scrollarrow-down-insensitive.png', - 'assets/scrollarrow-down.png', - 'assets/scrollarrow-left@2.png', - 'assets/scrollarrow-left-dark@2.png', - 'assets/scrollarrow-left-dark.png', - 'assets/scrollarrow-left-insensitive@2.png', - 'assets/scrollarrow-left-insensitive.png', - 'assets/scrollarrow-left.png', - 'assets/scrollarrow-right@2.png', - 'assets/scrollarrow-right-dark@2.png', - 'assets/scrollarrow-right-dark.png', - 'assets/scrollarrow-right-insensitive@2.png', - 'assets/scrollarrow-right-insensitive.png', - 'assets/scrollarrow-right.png', - 'assets/scrollarrow-up@2.png', - 'assets/scrollarrow-up-dark@2.png', - 'assets/scrollarrow-up-dark.png', - 'assets/scrollarrow-up-insensitive@2.png', - 'assets/scrollarrow-up-insensitive.png', - 'assets/scrollarrow-up.png', - 'assets/titlebutton-close@2.png', - 'assets/titlebutton-close-backdrop@2.png', - 'assets/titlebutton-close-backdrop.png', - 'assets/titlebutton-close-hover@2.png', - 'assets/titlebutton-close-hover.png', - 'assets/titlebutton-close.png', - 'assets/titlebutton-maximize@2.png', - 'assets/titlebutton-maximize-backdrop@2.png', - 'assets/titlebutton-maximize-backdrop.png', - 'assets/titlebutton-maximize-hover@2.png', - 'assets/titlebutton-maximize-hover.png', - 'assets/titlebutton-maximize.png', - 'assets/titlebutton-minimize@2.png', - 'assets/titlebutton-minimize-backdrop@2.png', - 'assets/titlebutton-minimize-backdrop.png', - 'assets/titlebutton-minimize-hover@2.png', - 'assets/titlebutton-minimize-hover.png', - 'assets/titlebutton-minimize.png', - 'assets/titlebutton-unmaximize@2.png', - 'assets/titlebutton-unmaximize-backdrop@2.png', - 'assets/titlebutton-unmaximize-backdrop.png', - 'assets/titlebutton-unmaximize-hover@2.png', - 'assets/titlebutton-unmaximize-hover.png', - 'assets/titlebutton-unmaximize.png', -] - # Generate .css files and install gtk3_scss_dependencies = files(gtk3_scss_dependencies) # @@ -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)