Skip to content

Commit

Permalink
meson: use install_data to replace install_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist authored and lukefromdc committed Jul 13, 2019
1 parent d86c29b commit 1960241
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 20 deletions.
4 changes: 4 additions & 0 deletions src/themes/ClearlooksRe/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'ClearlooksRe', 'metacity-1'),
)
4 changes: 4 additions & 0 deletions src/themes/Dopple-Left/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Dopple-Left', 'metacity-1'),
)
4 changes: 4 additions & 0 deletions src/themes/Dopple/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Dopple', 'metacity-1'),
)
17 changes: 17 additions & 0 deletions src/themes/DustBlue/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
install_data(
'button_close_normal.png',
'button_close_prelight.png',
'button_close_pressed.png',
'button_max_normal.png',
'button_max_prelight.png',
'button_max_pressed.png',
'button_menu_normal.png',
'button_menu_prelight.png',
'button_menu_pressed.png',
'button_min_normal.png',
'button_min_prelight.png',
'button_min_pressed.png',
'menu.png',
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'DustBlue', 'metacity-1')
)
4 changes: 4 additions & 0 deletions src/themes/Spidey-Left/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Spidey-Left', 'metacity-1'),
)
4 changes: 4 additions & 0 deletions src/themes/Spidey/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Spidey', 'metacity-1'),
)
4 changes: 4 additions & 0 deletions src/themes/Splint-Left/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Splint-Left', 'metacity-1'),
)
4 changes: 4 additions & 0 deletions src/themes/Splint/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_data(
'metacity-theme-1.xml',
install_dir : join_paths(datadir, 'themes', 'Splint', 'metacity-1'),
)
14 changes: 14 additions & 0 deletions src/themes/WinMe/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
install_data(
'close_normal.png',
'close_normal_small.png',
'close_pressed.png',
'close_pressed_small.png',
'maximize_normal.png',
'maximize_pressed.png',
'metacity-theme-1.xml',
'minimize_normal.png',
'minimize_pressed.png',
'restore_normal.png',
'restore_pressed.png',
install_dir : join_paths(datadir, 'themes', 'WinMe', 'metacity-1')
)
24 changes: 24 additions & 0 deletions src/themes/eOS/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
install_data(
'close.png',
'close_unfocused_over.png',
'close_unfocused.png',
'maximize.png',
'maximize_unfocused_over.png',
'maximize_unfocused.png',
'menu.png',
'menu_prelight.png',
'metacity-theme-1.xml',
'minimize.png',
'minimize_unfocused_over.png',
'minimize_unfocused.png',
'trough_left.png',
'trough_left_unfocused.png',
'trough_middle.png',
'trough_middle_unfocused.png',
'trough_right.png',
'trough_right_unfocused.png',
'unmaximize.png',
'unmaximize_unfocused_over.png',
'unmaximize_unfocused.png',
install_dir : join_paths(datadir, 'themes', 'eOS', 'metacity-1')
)
30 changes: 10 additions & 20 deletions src/themes/meson.build
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
themes = [
'ClearlooksRe',
'eOS',
'DustBlue',
'WinMe',
'Splint-Left',
'Dopple',
'Spidey-Left',
'Splint',
'Dopple-Left',
'Spidey',
]

themedir = join_paths(datadir, 'themes')
foreach theme: themes
install_subdir(theme,
install_dir : join_paths(themedir, theme, 'metacity-1'),
strip_directory : true
)
endforeach
subdir('ClearlooksRe')
subdir('eOS')
subdir('DustBlue')
subdir('WinMe')
subdir('Splint-Left')
subdir('Dopple')
subdir('Spidey-Left')
subdir('Splint')
subdir('Dopple-Left')
subdir('Spidey')

0 comments on commit 1960241

Please sign in to comment.