meson: fix up SYSTEM_LIBDIR, SYSTEM_INCLUDEDIR, PKG_DEFAULT_PATH

pull/122/head
William Pitcock 2017-06-20 01:23:55 -05:00
parent bca827649d
commit adc7f92874
1 changed files with 8 additions and 3 deletions

View File

@ -40,9 +40,14 @@ foreach f : check_functions
endif
endforeach
cdata.set_quoted('SYSTEM_LIBDIR', '/fixme')
cdata.set_quoted('SYSTEM_INCLUDEDIR', '/fixme')
cdata.set_quoted('PKG_DEFAULT_PATH', '/fixme')
default_path = []
foreach f : ['libdir', 'datadir']
default_path += [join_paths(get_option('prefix'), get_option(f), 'pkgconfig')]
endforeach
cdata.set_quoted('SYSTEM_LIBDIR', join_paths(get_option('prefix'), get_option('libdir')))
cdata.set_quoted('SYSTEM_INCLUDEDIR', join_paths(get_option('prefix'), get_option('includedir')))
cdata.set_quoted('PKG_DEFAULT_PATH', ':'.join(default_path))
cdata.set_quoted('PACKAGE_NAME', meson.project_name())
cdata.set_quoted('PACKAGE_VERSION', meson.project_version())
cdata.set_quoted('PACKAGE_BUGREPORT', 'http://github.com/pkgconf/pkgconf/issues')