summaryrefslogtreecommitdiff
path: root/test cases/osx/2 library versions
AgeCommit message (Collapse)Author
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger
2019-12-17Fix macOS library test when using system zlib.Jussi Pakkanen
2019-12-04ci/test: unused args for WindowsMichael Hirsch, Ph.D
2019-01-31tests: Don't require pkg-config for macOS testsNirbheek Chauhan
Only require it on the CI or if pkg-config is found.
2018-08-29Improve support for macOS dylib versioningNirbheek Chauhan
We now use the soversion to set compatibility_version and current_version by default. This is the only sane thing we can do by default because of the restrictions on the values that can be used for compatibility and current version. Users can override this value with the `darwin_versions:` kwarg, which can be a single value or a two-element list of values. The first one is the compatibility version and the second is the current version. Fixes https://github.com/mesonbuild/meson/issues/3555 Fixes https://github.com/mesonbuild/meson/issues/1451
2018-08-28Deduplicate build-tree RPATHs on macOSDavid Seifert
* Currently, RPATHs coming from dependencies and `build_rpath` provided by the user might contain the same path. Apple's `install_name` tool is allergic to providing the same argument twice when removing RPATHs: error: install_name_tool: "-delete_rpath /usr/lib" specified more than once
2017-11-26Specify build_rpath manually to targets linked by hand.Jussi Pakkanen
2017-11-26Update CMake reference file.Jussi Pakkanen
2017-04-04Don't generate import library for shared modulesNirbheek Chauhan
Also add a test for this on all platforms.
2017-03-05tests: Minor fixes to the library-usage testsNirbheek Chauhan
Actually use the myFunc() symbol from the library, and actually run the built executable on macOS.
2017-03-04Add a cmake file for manual comparisonNirbheek Chauhan
We differ from cmake in the following manner: * We only set the major version (SOVERSION) in the dylib * If SOVERSION is not specified, we deduce it from version (VERSION) See installed_files.txt for a list of output dylib names.
2017-03-04darwin: Also add the major version in the dylibNirbheek Chauhan
And symlink to the unversioned library for build-time linking. https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html#//apple_ref/doc/uid/TP40002013-SW2 Unlike Autotools, we do not add the minor or micro version in the filename because the Apple documentation says you must embed that inside the library with -current_version.
2016-08-16Add a test to find libfoo.X.dylib via -lfooNirbheek Chauhan
Alex Băluț reported that on OS X libfoo.0.dylib cannot be found as -lfoo by the linker, and you must use -lfoo.0 instead. Add a test for this so the CI can catch such problems. The next commit will contain the fix.
2016-07-01Fix tests for the new library/executable naming schemeNirbheek Chauhan
Also add new tests for the platform-specific and compiler-specific versioning scheme. A rough summary is: 1. A bug in how run_tests.py:validate_install checked for files has been fixed. Earlier it wasn't checking the install directory properly. 2. Shared libraries are no longer installed in common tests, and the library name/path testing is now done in platform-specific tests. 3. Executables are now always called something?exe in the installed_files.txt file, and the suffix automatically corrected depending on the platform. 4. If a test installs a file called 'no-installed-files', the installed files for that test are not validated. This is required to implement compiler-specific tests for library names/paths such as MSVC vs MinGW 5. The platform-specific file renaming in run_tests.py has been mostly removed since it is broken for shared libraries and isn't needed for static libraries. 6. run_tests.py now reports all missing and extra files. The logic for finding these has been reworked.