diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-01-21 21:14:14 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-09-10 07:20:41 +0000 |
commit | fc0f0df74b5bf7327b566531b58b23620cba195a (patch) | |
tree | ad302c96e98e56d1a8ce24a4645f6478ccd5515b /docs/markdown/Reference-manual.md | |
parent | 4cef45af21465f4c860dbd467796b1c768f556f4 (diff) | |
download | meson-fc0f0df74b5bf7327b566531b58b23620cba195a.zip meson-fc0f0df74b5bf7327b566531b58b23620cba195a.tar.gz meson-fc0f0df74b5bf7327b566531b58b23620cba195a.tar.bz2 |
Don't require build machine compilers for project() languages
This means that, in the common case of a simple meson.build which
doesn't contain any 'native: true' targets, we won't require a native
compiler when cross-compiling, without needing any changes in the
meson.build.
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index fafc9cb..01052b0 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1312,11 +1312,7 @@ My Project 1.0 ``` The first argument to this function must be a string defining the name -of this project. It is followed by programming languages that the -project uses. Supported values for languages are `c`, `cpp` (for -`C++`), `cuda`, `d`, `objc`, `objcpp`, `fortran`, `java`, `cs` (for `C#`), -`vala` and `rust`. *(since 0.40.0)* The list of languages -is optional. +of this project. The project name can be any string you want, it's not used for anything except descriptive purposes. However since it is written to @@ -1325,6 +1321,18 @@ same as the project tarball or pkg-config name. So for example you would probably want to use the name _libfoobar_ instead of _The Foobar Library_. +It may be followed by the list of programming languages that the project uses. + +*(since 0.40.0)* The list of languages is optional. + +These languages may be used both for `native: false` (the default) (host +machine) targets and for `native: true` (build machine) targets. *(since +0.56.0)* The build machine compilers for the specified languages are not +required. + +Supported values for languages are `c`, `cpp` (for `C++`), `cuda`, `d`, +`objc`, `objcpp`, `fortran`, `java`, `cs` (for `C#`), `vala` and `rust`. + Project supports the following keyword arguments. - `default_options`: takes an array of strings. The strings are in the |