Commit 74aebbea authored by Christopher Baines's avatar Christopher Baines

Support use of gdlib from the system

Rather than jumping straight away to downloading it, and handling it
as a subproject.
parent e359345b
......@@ -36,16 +36,21 @@ LIB_DIR = join_paths(get_option('prefix'), get_option('libdir'), meson.project_n
LOCALE_DIR = join_paths(get_option('prefix'), get_option('localedir'))
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
subproject('libgd',
default_options: [
'with-introspection=true',
'with-notification=true',
'static=false',
'pkgdatadir=' + DATA_DIR,
'pkglibdir=' + LIB_DIR
]
)
libgd_dep = dependency('gdlib', required : false)
if not libgd_dep.found()
libgd_proj = subproject('libgd',
default_options: [
'with-introspection=true',
'with-notification=true',
'static=false',
'pkgdatadir=' + DATA_DIR,
'pkglibdir=' + LIB_DIR
]
)
libgd_dep = libgd_proj.get_variable('libgd_dep')
endif
# Configuration params
conf = configuration_data()
......
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