aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Generating-sources.md2
-rw-r--r--docs/markdown/Release-notes-for-0.45.0.md31
-rw-r--r--docs/markdown/snippets/improved-meson-init.md19
3 files changed, 39 insertions, 13 deletions
diff --git a/docs/markdown/Generating-sources.md b/docs/markdown/Generating-sources.md
index 1c3225b..cbe6c0d 100644
--- a/docs/markdown/Generating-sources.md
+++ b/docs/markdown/Generating-sources.md
@@ -127,7 +127,7 @@ argument list as separate elements.
gen3 = generator(genprog,
output : '@BASENAME@.cc',
arguments : ['@INPUT@', '@EXTRA_ARGS@', '@OUTPUT@'])
-gen3_src1 = gen3.process('input1.y)
+gen3_src1 = gen3.process('input1.y')
gen3_src2 = gen3.process('input2.y', extra_args: '--foo')
gen3_src3 = gen3.process('input3.y', extra_args: ['--foo', '--bar'])
```
diff --git a/docs/markdown/Release-notes-for-0.45.0.md b/docs/markdown/Release-notes-for-0.45.0.md
index 23bff93..6b24183 100644
--- a/docs/markdown/Release-notes-for-0.45.0.md
+++ b/docs/markdown/Release-notes-for-0.45.0.md
@@ -5,13 +5,18 @@ short-description: Release notes for 0.45
# New features
+## Python minimum version is now 3.5
+
+Meson will from this version on require Python version 3.5 or newer.
+
## Config-Tool based dependencies can be specified in a cross file
-Tools like LLVM and pcap use a config tool for dependencies, this is a script
-or binary that is run to get configuration information (cflags, ldflags, etc)
-from.
+Tools like LLVM and pcap use a config tool for dependencies, this is a
+script or binary that is run to get configuration information (cflags,
+ldflags, etc) from.
-These binaries may now be specified in the `binaries` section of a cross file.
+These binaries may now be specified in the `binaries` section of a
+cross file.
```dosini
[binaries]
@@ -109,8 +114,8 @@ values. It can be specified like this in the `meson_options.txt` file:
## New method meson.project_license()
-The `meson` builtin object now has a `project_license()` method that returns a
-list of all licenses for the project.
+The `meson` builtin object now has a `project_license()` method that
+returns a list of all licenses for the project.
## Rust cross-compilation
@@ -147,10 +152,10 @@ meson init --name=myproject --type=executable --language=c
## Improve test setup selection
-Test setups are now identified (also) by the project they belong to and it
-is possible to select the used test setup from a specific project. E.g.
-to use a test setup `some_setup` from project `some_project` for all
-executed tests one can use
+Test setups are now identified (also) by the project they belong to
+and it is possible to select the used test setup from a specific
+project. E.g. to use a test setup `some_setup` from project
+`some_project` for all executed tests one can use
meson test --setup some_project:some_setup
@@ -171,9 +176,11 @@ The `promote` command makes it easy to copy nested dependencies to the top level
meson wrap promote scommon
-This will search the project tree for a subproject called `scommon` and copy it to the top level.
+This will search the project tree for a subproject called `scommon`
+and copy it to the top level.
-If there are many embedded subprojects with the same name, you have to specify which one to promote manually like this:
+If there are many embedded subprojects with the same name, you have to
+specify which one to promote manually like this:
meson wrap promote subprojects/s1/subprojects/scommon
diff --git a/docs/markdown/snippets/improved-meson-init.md b/docs/markdown/snippets/improved-meson-init.md
new file mode 100644
index 0000000..ec17bc4
--- /dev/null
+++ b/docs/markdown/snippets/improved-meson-init.md
@@ -0,0 +1,19 @@
+## Autogeneration of simple meson.build files
+
+A feature to generate a meson.build file compiling given C/C++ source
+files into a single executable has been added to "meson init". By
+default, it will take all recognizable source files in the current
+directory. You can also specify a list of dependencies with the -d
+flag and automatically invoke a build with the -b flag to check if the
+code builds with those dependencies.
+
+For example,
+
+```meson
+meson init -fbd sdl2,gl
+```
+
+will look for C or C++ files in the current directory, generate a
+meson.build for them with the dependencies of sdl2 and gl and
+immediately try to build it, overwriting any previous meson.build and
+build directory.