summaryrefslogtreecommitdiff
path: root/test cases/linuxlike/1 pkg-config/meson.build
AgeCommit message (Collapse)Author
2023-11-14dependencies: allow get_variable to define multiple pkgconfig definesEli Schwartz
It was previously impossible to do this: ``` dep.get_pkgconfig_variable( 'foo', define_variable: ['prefix', '/usr', 'datadir', '/usr/share'], ) ``` since get_pkgconfig_variable mandated exactly two (if any) arguments. However, you could do this: ``` dep.get_variable( 'foo', pkgconfig_define: ['prefix', '/usr', 'datadir', '/usr/share'], ) ``` It would silently do the wrong thing, by defining "prefix" as `/usr=datadir=/usr/share`, which might not "matter" if only datadir was used in the "foo" variable as the unmodified value might be adequate. The actual intention of anyone writing such a meson.build is that they aren't sure whether the .pc file uses ${prefix} or ${datadir} (or which one gets used, might have changed between versions of that .pc file, even). A recent refactor made this into a hard error, which broke some projects that were doing this and inadvertently depending on some .pc file that only used the second variable. (This was "fine" since the result was essentially meaningful, and even resulted in behavior identical to the intended behavior if both projects were installed into the same prefix -- in which case there's nothing to remap.) Re-allow this. There are two ways we could re-allow this: - ignore it with a warning - add a new feature to allow actually doing this Since the use case which triggered this bug actually has a pretty good reason to want to do this, it makes sense to add the new feature. Fixes https://bugs.gentoo.org/916576 Fixes https://github.com/containers/bubblewrap/issues/609
2019-11-18Use strict function prototypesMichael Hirsch, Ph.D
2019-11-17use '-Werror=unused-parameter' for gcc/clang on project tests and ↵Michael Hirsch, Ph.D
-fimplicit-none on fortran Fortran: check for undeclared variables by forcing implicit none everywhere C/C++: check for unused parameters and return types removed unused variables from test cases ci: do missing return and unused arg check with Github Actions
2018-12-22Can specify a string to print when dep not found. Closes #2407.Jussi Pakkanen
2018-02-08Add get_pkgconfig_variable(default:)Jon Turney
Also use that to squelch the warning for internal uses which handle the variable missing case (just gnome at the moment) A follow up to PR #2914
2017-12-03Merge pull request #2663 from inigomartinez/pkg-config-define-variableJussi Pakkanen
dependencies: Allow pkg-config to define variables
2017-12-01dependencies: Use prefix variable with define_variableIñigo Martínez
The test used by the new define_variable parameter was using the includedir directory. However, in order to get a successful test, the includedir variables needs to be relative to the prefix variable, otherwise the replacemente will not have any effect. This changes uses the prefix variable itself because we can assure that it will be present.
2017-11-26spelling: nonexistentJosh Soref
2017-11-20dependencies: Allow pkg-config to define variablesIñigo Martínez
pkg-config enables to define variables by using the define-variable option. This allows some packages to redefine relative paths, so files can be installed in the same relative paths but under prefix.
2017-05-09dependencies: Fix caching of native/cross dependenciesNirbheek Chauhan
All our cached_dep magic was totally useless since we ended up using the same identifier for native and cross deps. Just nuke all this cached_dep code since it is very error-prone and improve the identifier generation instead. For instance, this is broken *right now* with the `type_name` kwarg. Add a bunch of tests to ensure that all this actually works... Closes https://github.com/mesonbuild/meson/issues/1736
2016-12-23Can specify include directories to compiler tests.Jussi Pakkanen
2016-12-04tests/linuxlike/1: Improve zlib pkg-config testNirbheek Chauhan
Just checking that the version retrieved from the pkg-config file matches is not enough. It's nearly tautological since it just checks that we aren't returning garbage in dep.version(). Instead, check in the test executable that the pkg-config version retrieved matches the ZLIB_VERSION exported by zlib. Also don't require zlib 1.2.8 since RHEL (EPEL) 7 still has 1.2.7 and we don't really need 1.2.8 anyway.
2016-10-19Can query pkg-config variables from the system. Closes #726.Jussi Pakkanen
2016-05-29Can query version strings of dependencies.Jussi Pakkanen
2016-01-10Can use external libs as dependencies of dependencies. Closes #321.Jussi Pakkanen
2015-02-08Can specify version requirements to dependencies.Jussi Pakkanen
2014-06-22Renamed deps -> dependencies.Jussi Pakkanen
2013-06-02Renamed find_dep to dependency.Jussi Pakkanen
2013-06-02Renamed add_test to test.Jussi Pakkanen
2013-06-01The default value of required is true for dependencies.Jussi Pakkanen
2013-03-03Split test suite into common and platform dependent parts.Jussi Pakkanen