From a216de4898cc7b9aafaecf6ebbe19d79d1c5aea3 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 18 Aug 2021 19:42:28 +0200 Subject: [PATCH] docs: Remove the deleted function find_library --- docs/markdown/Reference-manual.md | 8 +------- docs/markdown/Vala.md | 2 +- docs/markdown/howtox.md | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index fd78a1edc..fd156f9f2 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -780,12 +780,6 @@ creating the final list. The returned object also has methods that are documented in the [object methods section](#build-target-object) below. -### find_library() - -*(since 0.31.0)* **(deprecated)** Use `find_library()` method of -[the compiler object](#compiler-object) as obtained from -`meson.get_compiler(lang)`. - ### find_program() ``` meson @@ -2865,7 +2859,7 @@ env.prepend('MY_PATH', '0') ### `external library` object -This object is returned by [`find_library()`](#find_library) and +This object is returned by [`find_library()`](#compiler-object) and contains an external (i.e. not built as part of this project) library. This object has the following methods: diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md index d3edce0e2..606cf0d36 100644 --- a/docs/markdown/Vala.md +++ b/docs/markdown/Vala.md @@ -38,7 +38,7 @@ map Vala code to the library's C programming interface. It is the [`pkg-config`](https://www.freedesktop.org/wiki/Software/pkg-config/) tool that makes finding these installed files all work seamlessly behind the scenes. When a `pkg-config` file doesn't exist for the -library then the [`find_library()`](Reference-manual.md#find_library) +library then the `find_library()` method of the [compiler object](Reference-manual.md#compiler-object) needs to be used. Examples are given later. diff --git a/docs/markdown/howtox.md b/docs/markdown/howtox.md index 1521f7244..5c64bcb86 100644 --- a/docs/markdown/howtox.md +++ b/docs/markdown/howtox.md @@ -85,7 +85,7 @@ executable(..., override_options : ['c_std=c11']) ## Enable threads -Lots of people seem to do this manually with `find_library('pthread')` +Lots of people seem to do this manually with `cc.find_library('pthread')` or something similar. Do not do that. It is not portable. Instead do this.