Collated release note snippets to main file.

pull/2457/head
Jussi Pakkanen 7 years ago
parent 93aa32219f
commit 683947d943
  1. 109
      docs/markdown/Release-notes-for-0.43.0.md
  2. 10
      docs/markdown/Release-notes-for-0.43.0/001-boost-platform-improvement.md
  3. 4
      docs/markdown/Release-notes-for-0.43.0/001-generator-capture.md
  4. 0
      docs/markdown/snippets/add_release_note_snippets_here
  5. 15
      docs/markdown/snippets/cross_find.md
  6. 21
      docs/markdown/snippets/custom-target-index.md
  7. 23
      docs/markdown/snippets/get-supported-arguments.md
  8. 20
      docs/markdown/snippets/prebuilt.md
  9. 4
      docs/markdown/snippets/wrap-svn.md
  10. 1
      docs/sitemap.txt

@ -3,14 +3,109 @@ title: Release 0.43
short-description: Release notes for 0.43 (preliminary)
...
# New features
# Portability improvements to Boost Dependency
This page is a placeholder for the eventual release notes.
The Boost dependency has been improved to better detect the various ways to
install boost on multiple platforms. At the same time the `modules` semantics
for the dependency has been changed. Previously it was allowed to specify
header directories as `modules` but it wasn't required. Now, modules are only
used to specify libraries that require linking.
Notable new features should come with release note updates. This is
done by creating a file snippet called `snippets/featurename.md` and
whose contents should look like this:
This is a breaking change and the fix is to remove all modules that aren't
found.
# Feature name
# Generator learned capture
A short description explaining the new feature and how it should be used.
Generators can now be configured to capture the standard output. See
`test cases/common/98 gen extra/meson.build` for an example.
# Can index CustomTaget objects
The `CustomTarget` object can now be indexed like an array. The resulting
object can be used as a source file for other Targets, this will create a
dependency on the original `CustomTarget`, but will only insert the generated
file corresponding to the index value of the `CustomTarget`'s `output` keyword.
c = CustomTarget(
...
output : ['out.h', 'out.c'],
)
lib1 = static_library(
'lib1',
[lib1_sources, c[0]],
...
)
exec = executable(
'executable',
c[1],
link_with : lib1,
)
# Can override executables in the cross file
The cross file can now be used for overriding the result of
`find_program`. As an example if you want to find the `objdump`
command and have the following definition in your cross file:
[binaries]
...
objdump = '/usr/bin/arm-linux-gnueabihf-objdump-6'
Then issuing the command `find_program('objdump')` will return the
version specified in the cross file. If you need the build machine's
objdump, you can specify the `native` keyword like this:
native_objdump = find_program('objdump', native : true)
# Easier handling of supported compiler arguments
A common pattern for handling multiple desired compiler arguments, was to
test their presence and add them to an array one-by-one, e.g.:
warning_flags_maybe = [
'-Wsomething',
'-Wanother-thing',
'-Wno-the-other-thing',
]
warning_flags = []
foreach flag : warning_flags_maybe
if cc.has_argument(flag)
warning_flags += flag
endif
endforeach
cc.add_project_argument(warning_flags)
A helper has been added for the foreach/has_argument pattern, so you can
now simply do:
warning_flags = [ ... ]
flags = cc.get_supported_flags(warning_flags)
# Better support for shared libraries in non-system paths
Meson has had support for prebuilt object files and static libraries.
This release adds feature parity to shared libraries that are either
in non-standard system paths or shipped as part of your project. On
systems that support rpath, Meson automatically adds rpath entries
to built targets using manually found external libraries.
This means that e.g. supporting prebuilt libraries shipped with your
source or provided by subprojects or wrap definitions by writing a
build file like this:
project('myprebuiltlibrary', 'c')
cc = meson.get_compiler('c')
prebuilt = cc.find_library('mylib', dirs : meson.current_source_dir())
mydep = declare_dependency(include_directories : include_directories('.'),
dependencies : prebuilt)
Then you can use the dependency object in the same way as any other.
# wrap-svn
The [Wrap dependency system](Wrap-dependency-system-manual.md) now
supports [Subversion](https://subversion.apache.org/) (svn). This
support is rudimentary. The repository url has to point to a specific
(sub)directory containing the `meson.build` file (typically
`trunk/`). However, providing a `revision` is supported.

@ -1,10 +0,0 @@
## Portability improvements to Boost Dependency
The Boost dependency has been improved to better detect the various ways to
install boost on multiple platforms. At the same time the `modules` semantics
for the dependency has been changed. Previously it was allowed to specify
header directories as `modules` but it wasn't required. Now, modules are only
used to specify libraries that require linking.
This is a breaking change and the fix is to remove all modules that aren't
found.

@ -1,4 +0,0 @@
## Generator learned capture
Generators can now be configured to capture the standard output. See
`test cases/common/98 gen extra/meson.build` for an example.

@ -1,15 +0,0 @@
# Can override executables in the cross file
The cross file can now be used for overriding the result of
`find_program`. As an example if you want to find the `objdump`
command and have the following definition in your cross file:
[binaries]
...
objdump = '/usr/bin/arm-linux-gnueabihf-objdump-6'
Then issuing the command `find_program('objdump')` will return the
version specified in the cross file. If you need the build machine's
objdump, you can specify the `native` keyword like this:
native_objdump = find_program('objdump', native : true)

@ -1,21 +0,0 @@
# Can index CustomTaget objects
The `CustomTarget` object can now be indexed like an array. The resulting
object can be used as a source file for other Targets, this will create a
dependency on the original `CustomTarget`, but will only insert the generated
file corresponding to the index value of the `CustomTarget`'s `output` keyword.
c = CustomTarget(
...
output : ['out.h', 'out.c'],
)
lib1 = static_library(
'lib1',
[lib1_sources, c[0]],
...
)
exec = executable(
'executable',
c[1],
link_with : lib1,
)

@ -1,23 +0,0 @@
# Easier handling of supported compiler arguments
A common pattern for handling multiple desired compiler arguments, was to
test their presence and add them to an array one-by-one, e.g.:
warning_flags_maybe = [
'-Wsomething',
'-Wanother-thing',
'-Wno-the-other-thing',
]
warning_flags = []
foreach flag : warning_flags_maybe
if cc.has_argument(flag)
warning_flags += flag
endif
endforeach
cc.add_project_argument(warning_flags)
A helper has been added for the foreach/has_argument pattern, so you can
now simply do:
warning_flags = [ ... ]
flags = cc.get_supported_flags(warning_flags)

@ -1,20 +0,0 @@
# Better support for shared libraries in non-system paths
Meson has had support for prebuilt object files and static libraries.
This release adds feature parity to shared libraries that are either
in non-standard system paths or shipped as part of your project. On
systems that support rpath, Meson automatically adds rpath entries
to built targets using manually found external libraries.
This means that e.g. supporting prebuilt libraries shipped with your
source or provided by subprojects or wrap definitions by writing a
build file like this:
project('myprebuiltlibrary', 'c')
cc = meson.get_compiler('c')
prebuilt = cc.find_library('mylib', dirs : meson.current_source_dir())
mydep = declare_dependency(include_directories : include_directories('.'),
dependencies : prebuilt)
Then you can use the dependency object in the same way as any other.

@ -1,4 +0,0 @@
# wrap-svn
The [Wrap dependency system](Wrap-dependency-system-manual.md) now supports [Subversion](https://subversion.apache.org/) (svn).
This support is rudimentary. The repository url has to point to a specific (sub)directory containing the `meson.build` file (typically `trunk/`). However, providing a `revision` is supported.

@ -61,6 +61,7 @@ index.md
Shipping-prebuilt-binaries-as-wraps.md
fallback-wraptool.md
Release-notes.md
Release-notes-for-0.44.0.md
Release-notes-for-0.43.0.md
Release-notes-for-0.42.0.md
Release-notes-for-0.41.0.md

Loading…
Cancel
Save