-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commits due to rename: * meson: Update reaper default_options (doesn't work) * meson: Generate version information for `ULWGL_VERSIONS.json` * meson: Use meson string interpolation * meson: Add man pages to meson * meson: Use configure_file instead of sed * meson: Use ulwgl version for reaper too * meson: Rename ulwgl to umu
- Loading branch information
1 parent
4b19aef
commit 3059fa7
Showing
9 changed files
with
120 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
scdoc = find_program('scdoc') | ||
|
||
custom_target('man1', | ||
input : 'umu.1.scd', | ||
output : 'umu.1', | ||
command : [ scdoc ], | ||
feed : true, | ||
capture : true, | ||
install : true, | ||
install_dir : get_option('mandir'), | ||
) | ||
|
||
custom_target('man5', | ||
input : 'umu.5.scd', | ||
output : 'umu.5', | ||
command : [ scdoc ], | ||
feed : true, | ||
capture : true, | ||
install : true, | ||
install_dir : get_option('mandir'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
project('umu', | ||
['cpp'], | ||
license : 'GPL-3.0-only', | ||
license_files : ['LICENSE'], | ||
) | ||
|
||
subproject('reaper', | ||
default_options : [ | ||
'prefix=' + get_option('prefix'), | ||
'bindir=' + get_option('prefix') / get_option('datadir') / meson.project_name(), | ||
], | ||
) | ||
|
||
subdir('umu') | ||
subdir('docs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[wrap-git] | ||
directory = reaper | ||
url = https://github.com/Plagman/reaper.git | ||
revision = head | ||
depth = 1 | ||
|
||
[provide] | ||
program_names = reaper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
git = find_program('git') | ||
|
||
umu_run_data = configuration_data() | ||
umu_run_data.set('INSTALL_PATH', get_option('prefix') / get_option('datadir') / meson.project_name()) | ||
configure_file( | ||
input : 'umu-run.in', | ||
output : 'umu-run', | ||
configuration : umu_run_data, | ||
install : true, | ||
install_dir : get_option('bindir'), | ||
install_mode: 'rwxr-xr-x', | ||
) | ||
|
||
install_data( | ||
[ | ||
'umu_consts.py', | ||
'umu_dl_util.py', | ||
'umu_log.py', | ||
'umu_plugins.py', | ||
'umu_util.py', | ||
], | ||
install_dir: get_option('datadir') / meson.project_name(), | ||
) | ||
install_data( | ||
[ | ||
'umu_run.py', | ||
], | ||
install_dir: get_option('datadir') / meson.project_name(), | ||
install_mode: 'rwxr-xr-x', | ||
) | ||
|
||
umu_desc = run_command( | ||
git, '-C', meson.source_root(), 'describe', '--always', '--long', '--tags', check: true | ||
).stdout().strip() | ||
reaper_desc = run_command( | ||
git, '-C', meson.source_root() / 'subprojects/reaper', 'describe', '--always', '--long', '--tags', check: true | ||
).stdout().strip() | ||
umu_version_data = configuration_data() | ||
umu_version_data.set('UMU_VERSION', umu_desc) | ||
umu_version_data.set('REAPER_VERSION', umu_desc) | ||
configure_file( | ||
input : 'umu_version.json.in', | ||
output : 'umu_version.json', | ||
configuration : umu_version_data, | ||
install : true, | ||
install_dir: get_option('datadir') / meson.project_name(), | ||
) | ||
|
||
subdir('umu-launcher') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
fs = import('fs') | ||
|
||
configure_file( | ||
input : 'umu-run.in', | ||
output : 'umu-run', | ||
configuration : umu_run_data, | ||
install : false, | ||
install_dir : get_option('datadir') / meson.project_name() / fs.name(meson.current_source_dir()), | ||
install_mode: 'rwxr-xr-x', | ||
) | ||
|
||
install_data( | ||
[ | ||
'compatibilitytool.vdf', | ||
'toolmanifest.vdf' | ||
], | ||
install_dir: get_option('datadir') / meson.project_name() / fs.name(meson.current_source_dir()), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
##INSTALL_PATH##/umu_run.py "$@" | ||
@INSTALL_PATH@/umu_run.py "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
##INSTALL_PATH##/umu_run.py "$@" | ||
@INSTALL_PATH@/umu_run.py "$@" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters