diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-01 02:12:13 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-01-01 02:12:13 +0200 |
commit | d4985d981fea5ec026745efb41be88f25d41bb32 (patch) | |
tree | ff7c86a54be37250f3452a5a586d5e7aaf7e67ef /docs/markdown/Project-templates.md | |
parent | f2b33b8dcba7e8d948982cfb682e003d57e0f696 (diff) | |
parent | 4a189cf8c53e22b747521cae93c18cac3a45cc5a (diff) | |
download | meson-d4985d981fea5ec026745efb41be88f25d41bb32.zip meson-d4985d981fea5ec026745efb41be88f25d41bb32.tar.gz meson-d4985d981fea5ec026745efb41be88f25d41bb32.tar.bz2 |
Merged init branch.
Diffstat (limited to 'docs/markdown/Project-templates.md')
-rw-r--r-- | docs/markdown/Project-templates.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/markdown/Project-templates.md b/docs/markdown/Project-templates.md new file mode 100644 index 0000000..d8459c6 --- /dev/null +++ b/docs/markdown/Project-templates.md @@ -0,0 +1,30 @@ +--- +short-description: Project templates +... + +# Project templates + +To make it easier for new developers to start working, Meson ships a +tool to generate the basic setup of different kinds of projects. This +functionality can be accessed with the `meson init` command. A typical +project setup would go like this: + +```console +$ mkdir project_name +$ cd project_name +$ meson init --language=c --name=myproject --version=0.1 +``` + +This would create the build definitions for a helloworld type +project. The result can be compiled as usual. For example compiling it +with Ninja could be done like this: + +``` +$ meson builddir +$ ninja -C builddir +``` + +The generator has many different projects and settings. They can all +be listed by invoking the command `meson test --help`. + +This feature is available since Meson version 0.45.0. |