Browse Source

pass arguments to zrythm_launch script

export_samplerate
Alexandros Theodotou 3 years ago
parent
commit
32bd509d21
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 12
      data/meson.build
  2. 2
      data/zrythm_launch.in
  3. 19
      meson.build

12
data/meson.build

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
gschema_top = 'org.zrythm.Zrythm'
gschema_top = 'org.' + prog_name_lowercase + '.' + prog_name
gschema = configure_file (
input: gen_gschema_wrap,
output: gschema_top + '.gschema.xml',
@ -47,9 +47,11 @@ if os_gnu or os_freebsd @@ -47,9 +47,11 @@ if os_gnu or os_freebsd
'SCHEMAS_DIR', schemasdir)
zrythm_launcher_config.set (
'BIN_DIR', bindir)
zrythm_launcher_config.set (
'PROGRAM_NAME_LOWERCASE', prog_name_lowercase)
zrythm_launcher = configure_file (
input: 'zrythm_launch.in',
output: 'zrythm_launch',
output: prog_name_lowercase + '_launch',
configuration: zrythm_launcher_config,
install: true,
install_dir: bindir,
@ -61,7 +63,7 @@ if os_gnu or os_freebsd @@ -61,7 +63,7 @@ if os_gnu or os_freebsd
configuration: zrythm_launcher_config)
localized_desktop_file = i18n.merge_file (
input: desktop_file,
output: 'zrythm.desktop',
output: prog_name_lowercase + '.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
@ -91,7 +93,7 @@ if not os_windows @@ -91,7 +93,7 @@ if not os_windows
install_dir: join_paths (
sysconfdir, 'bash_completion.d'),
install_mode: 'r--r--r--',
rename: 'zrythm')
rename: prog_name_lowercase)
endif
# GtkSourceView styles
@ -104,6 +106,6 @@ install_data ( @@ -104,6 +106,6 @@ install_data (
install_data (
'theme.css',
install_dir: themesdir,
rename: 'zrythm-theme.css')
rename: prog_name_lowercase + '-theme.css')
subdir('windows')

2
data/zrythm_launch.in

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
#!/usr/bin/env sh
export GSETTINGS_SCHEMA_DIR=@SCHEMAS_DIR@
@BIN_DIR@/zrythm
@BIN_DIR@/@PROGRAM_NAME_LOWERCASE@ "$@"

19
meson.build

@ -27,6 +27,9 @@ project ( @@ -27,6 +27,9 @@ project (
],
)
prog_name = get_option ('program_name')
prog_name_lowercase = prog_name.to_lower()
gnome = import ('gnome')
fs = import ('fs')
cmake = import ('cmake')
@ -42,12 +45,12 @@ datadir = join_paths (prefix, get_option('datadir')) @@ -42,12 +45,12 @@ datadir = join_paths (prefix, get_option('datadir'))
sysconfdir = join_paths (prefix, get_option('sysconfdir'))
mandir = join_paths (datadir, 'man', 'man1')
schemasdir = join_paths (datadir, 'glib-2.0/schemas')
fontsdir = join_paths (datadir, 'fonts', 'zrythm')
zrythmdatadir = join_paths (datadir, 'zrythm')
themesdir = join_paths (zrythmdatadir, 'themes')
samplesdir = join_paths (zrythmdatadir, 'samples')
docdir = join_paths (datadir, 'doc', 'zrythm')
sourceviewstylesdir = join_paths (zrythmdatadir, 'sourceview-styles')
fontsdir = datadir / 'fonts' / prog_name_lowercase
zrythmdatadir = datadir / prog_name_lowercase
themesdir = zrythmdatadir / 'themes'
samplesdir = zrythmdatadir / 'samples'
docdir = datadir / 'doc' / prog_name_lowercase
sourceviewstylesdir = zrythmdatadir / 'sourceview-styles'
# Used for building manpages, manual, etc., using
# foreach
@ -73,8 +76,6 @@ elif host_machine.system() == 'windows' @@ -73,8 +76,6 @@ elif host_machine.system() == 'windows'
lib_suffix = '.dll'
endif
prog_name = get_option ('program_name')
prog_name_lowercase = prog_name.to_lower()
have_custom_name = prog_name != 'Zrythm'
have_custom_logo_and_splash = get_option ('custom_logo_and_splash')
@ -363,7 +364,7 @@ test_cflags = [ @@ -363,7 +364,7 @@ test_cflags = [
'-D__(x)=x',
# use structured log
'-DG_LOG_USE_STRUCTURED=1',
'-DG_LOG_DOMAIN="zrythm"',
'-DG_LOG_DOMAIN="' + prog_name_lowercase + '"',
]
if cc.get_id() == 'clang'

Loading…
Cancel
Save