meson: fix up SYSTEM_LIBDIR, SYSTEM_INCLUDEDIR, PKG_DEFAULT_PATH

feature/tap-sh
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 endif
endforeach endforeach
cdata.set_quoted('SYSTEM_LIBDIR', '/fixme') default_path = []
cdata.set_quoted('SYSTEM_INCLUDEDIR', '/fixme') foreach f : ['libdir', 'datadir']
cdata.set_quoted('PKG_DEFAULT_PATH', '/fixme') 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_NAME', meson.project_name())
cdata.set_quoted('PACKAGE_VERSION', meson.project_version()) cdata.set_quoted('PACKAGE_VERSION', meson.project_version())
cdata.set_quoted('PACKAGE_BUGREPORT', 'http://github.com/pkgconf/pkgconf/issues') cdata.set_quoted('PACKAGE_BUGREPORT', 'http://github.com/pkgconf/pkgconf/issues')