build: Add option to specify path to perl binary
This commit is contained in:
parent
ee85129a9b
commit
ed6f544572
|
@ -90,7 +90,7 @@ if get_option('with-plugin')
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('with-perl')
|
if get_option('with-perl') != 'false'
|
||||||
plugin_metainfo += [
|
plugin_metainfo += [
|
||||||
['Perl', 'Provides a scripting interface in Perl', 'GPL-2.0+']
|
['Perl', 'Provides a scripting interface in Perl', 'GPL-2.0+']
|
||||||
]
|
]
|
||||||
|
|
|
@ -42,8 +42,8 @@ option('with-fishlim', type: 'boolean',
|
||||||
option('with-lua', type: 'string', value: 'luajit',
|
option('with-lua', type: 'string', value: 'luajit',
|
||||||
description: 'Lua scripting plugin, value is pkg-config name to use or "false"'
|
description: 'Lua scripting plugin, value is pkg-config name to use or "false"'
|
||||||
)
|
)
|
||||||
option('with-perl', type: 'boolean',
|
option('with-perl', type: 'string', value: 'perl',
|
||||||
description: 'Perl scripting plugin'
|
description: 'Perl scripting plugin, value is path to perl executable or "false"'
|
||||||
)
|
)
|
||||||
option('with-python', type: 'string', value: 'python3',
|
option('with-python', type: 'string', value: 'python3',
|
||||||
description: 'Python scripting plugin. value is pkg-config name to use or "false"'
|
description: 'Python scripting plugin. value is pkg-config name to use or "false"'
|
||||||
|
|
|
@ -26,7 +26,7 @@ if get_option('with-lua') != 'false'
|
||||||
subdir('lua')
|
subdir('lua')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('with-perl')
|
if get_option('with-perl') != 'false'
|
||||||
subdir('perl')
|
subdir('perl')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ if get_option('with-perl-legacy-api')
|
||||||
perl_cflags += '-DOLD_PERL'
|
perl_cflags += '-DOLD_PERL'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
perl = find_program('perl')
|
perl = find_program(get_option('with-perl'))
|
||||||
|
|
||||||
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
|
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
|
||||||
if ret.returncode() != 0
|
if ret.returncode() != 0
|
||||||
|
|
Loading…
Reference in New Issue