aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-10-13 23:26:11 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-13 23:26:11 +0300
commit2d5e2142e9b129c12e77a66a969c21cb6493b981 (patch)
treeae79dcc4557daaf26842dd5ed16f0ab80b794b5b /docs
parent0ea626b89d66089705177f68b3f15d2750dbe0bc (diff)
downloadmeson-2d5e2142e9b129c12e77a66a969c21cb6493b981.zip
meson-2d5e2142e9b129c12e77a66a969c21cb6493b981.tar.gz
meson-2d5e2142e9b129c12e77a66a969c21cb6493b981.tar.bz2
Added add_project_arguments description to argument page. [skip ci]
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Adding-arguments.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/Adding-arguments.md b/docs/markdown/Adding-arguments.md
index 117622b..8dd8488 100644
--- a/docs/markdown/Adding-arguments.md
+++ b/docs/markdown/Adding-arguments.md
@@ -37,6 +37,19 @@ You should set only the most essential flags with this setting, you
should *not* set debug or optimization flags. Instead they should be
specified by selecting an appropriate build type.
+Project arguments
+--
+
+Project arguments work similar to global arguments except that they
+are valid only within the current subproject. The usage is simple:
+
+```meson
+add_project_arguments('-DMYPROJ=projname', language : 'c')
+```
+
+This would add the compiler flags to all C sources in the current
+project.
+
Per target arguments
--