Browse Source

add meson path option

before_cleanup
Alexandros Theodotou 3 years ago
parent
commit
aaef5bf4fd
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 10
      meson.build
  2. 10
      meson_options.txt

10
meson.build

@ -25,11 +25,12 @@ project ( @@ -25,11 +25,12 @@ project (
cc = meson.get_compiler ('c')
bash = find_program ('bash')
meson_bin = find_program ('meson')
meson_bin = get_option ('meson-path')
prefix = get_option ('prefix')
libdir = get_option ('libdir')
distro = get_option ('distro')
zrythm_git_ver = get_option ('zrythm-git-ver')
zrythm_pkg_ver = get_option ('zrythm-pkg-ver')
zplugins_ver = get_option ('zplugins-ver')
@ -54,7 +55,7 @@ temp_library_pkgconfig_path = temp_library_prefix / libdir / 'pkgconfig' @@ -54,7 +55,7 @@ temp_library_pkgconfig_path = temp_library_prefix / libdir / 'pkgconfig'
global_conf = configuration_data ()
global_conf.set ('PREFIX', prefix)
global_conf.set (
'MESON_BIN', meson_bin.full_path ())
'MESON_BIN', meson_bin)
global_conf.set (
'MESON_BUILD_ROOT', meson.build_root ())
global_conf.set (
@ -68,7 +69,7 @@ global_conf.set ( @@ -68,7 +69,7 @@ global_conf.set (
global_conf.set (
'ZRYTHM_PKG_VERSION', zrythm_pkg_ver)
global_conf.set (
'ZRYTHM_SOURCE_TARBALL_FILENAME',
'ZRYTHM_SOURCE_TARBALL_FILENAME',
zrythm_src_tarball_filename)
global_conf.set (
'ZRYTHM_INNER_DIR_NAME', zrythm_inner_dir_name)
@ -147,4 +148,7 @@ lsp_dsp_lib_installation = custom_target ( @@ -147,4 +148,7 @@ lsp_dsp_lib_installation = custom_target (
install: false,
)
is_debian = distro.contains ('debian') or distro.contains ('ubuntu')
if is_debian
subdir ('debian')
endif

10
meson_options.txt

@ -15,6 +15,11 @@ @@ -15,6 +15,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
option (
'meson-path', type: 'string',
value: 'meson',
description: 'Full path to meson or meson.py')
option (
'zrythm-git-ver', type: 'string',
value: 'master',
@ -96,3 +101,8 @@ option ( @@ -96,3 +101,8 @@ option (
'jack-ver', type: 'string',
value: '1.9.14.r1',
description: 'JACK version')
option (
'breeze-dark-path', type: 'string',
value: '',
description: 'Breeze dark icons path')

Loading…
Cancel
Save