Commit 8187458d authored by worldofpeace's avatar worldofpeace

Add option to specify path to pygobject override directory

parent 2051cdd7
option('tests', type : 'boolean', description : 'Build with test support')
option('debugging', type : 'boolean', value: false, description : 'Printing of debug messages')
option('python', type : 'boolean', description : 'Build with python support')
option('py-overrides-dir', type : 'string', value : '', description: 'Path to pygobject overrides directory')
option('documentation', type : 'boolean', description : 'Generate the documentation of the library')
option('introspection', type : 'boolean', description : 'Build with the GObject introspection support')
python_exec = find_program(['python3', 'python'])
py_override = get_option('py-overrides-dir')
if py_override == ''
python_exec = find_program(['python3', 'python'])
py_override_cmd = run_command(
python_exec,
['-c', 'import gi;print (gi._overridesdir, end="")'],
)
py_override_cmd = run_command(
python_exec,
['-c', 'import gi;print (gi._overridesdir, end="")'],
)
if py_override_cmd.returncode() != 0
error('Error getting the GObject Introspection override directory: ' + py_override_cmd.stderr())
endif
if py_override_cmd.returncode() != 0
error('Error getting the GObject Introspection override directory: ' + py_override_cmd.stderr())
endif
py_override = py_override_cmd.stdout()
py_override = py_override_cmd.stdout()
endif
install_data(
'Signon.py',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment