11 changed files with 70 additions and 17 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#!@BASH@ |
||||
|
||||
tracktypes_dir="$DESTDIR/@TRACK_TYPES_DIR@" |
||||
|
||||
# 'cp' or 'ln' |
||||
cmd1="@CMD1@" |
||||
# '-s' or 'empty' |
||||
cmd2="@CMD2@" |
||||
|
||||
declare -a icons=( |
||||
"actions/bus" |
||||
"actions/markers" |
||||
"status/bars" |
||||
"status/signal-audio" |
||||
"status/signal-midi") |
||||
|
||||
cd $tracktypes_dir |
||||
for icon in "${icons[@]}"; do |
||||
$cmd1 $cmd2 ../$icon.svg ./ |
||||
done |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org> |
||||
# |
||||
# This file is part of Zrythm |
||||
# |
||||
# Zrythm is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU Affero General Public License as published by |
||||
# the Free Software Foundation, either version 3 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# Zrythm is distributed in the hope that it will be useful, |
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
# GNU Affero General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU Affero General Public License |
||||
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>. |
||||
|
||||
theme_iconsdir = themesdir / 'icons' |
||||
|
||||
# install zrythm dark icon theme |
||||
install_subdir ( |
||||
'zrythm-dark', |
||||
install_dir: theme_iconsdir) |
||||
|
||||
install_icons = configure_file ( |
||||
output: 'install_tracktype_icons.sh', |
||||
input: 'install_tracktype_icons.sh.in', |
||||
configuration: { |
||||
'BASH': bash.full_path (), |
||||
'TRACK_TYPES_DIR': theme_iconsdir / 'zrythm-dark' / 'scalable' / 'tracktypes', |
||||
'CMD1': os_windows ? 'cp' : 'ln', |
||||
'CMD2': os_windows ? '' : '-s', |
||||
}) |
||||
|
||||
# create symlinks/copies for track icons |
||||
meson.add_install_script ( |
||||
meson.current_build_dir () / 'install_tracktype_icons.sh') |
||||
|
||||
# install app icon |
||||
install_data ( |
||||
'zrythm-dark/scalable/apps/zrythm.svg', |
||||
install_dir: |
||||
datadir / 'icons/hicolor/scalable/apps') |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
../status/bars.svg |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
../actions/bus.svg |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
../actions/markers.svg |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
../status/signal-audio.svg |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
../status/signal-midi.svg |
Loading…
Reference in new issue