diff options
author | Niklas Claesson <niklas.claesson@cosylab.com> | 2018-05-21 01:27:57 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-06-10 23:36:54 +0300 |
commit | 14716ea90c5b4c7b8309751196ede734739a8ee0 (patch) | |
tree | 308255ee874e06df2d98a683dad3619593f366c9 /docs | |
parent | 26e11f5fd88c2bb65fe692015cf9c6ae9afcbcf0 (diff) | |
download | meson-14716ea90c5b4c7b8309751196ede734739a8ee0.zip meson-14716ea90c5b4c7b8309751196ede734739a8ee0.tar.gz meson-14716ea90c5b4c7b8309751196ede734739a8ee0.tar.bz2 |
Visual Studio: Implement startup project
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Build-options.md | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/docs/markdown/Build-options.md b/docs/markdown/Build-options.md index 9ccdf83..ec4a3bb 100644 --- a/docs/markdown/Build-options.md +++ b/docs/markdown/Build-options.md @@ -21,6 +21,8 @@ option('free_array_opt', type : 'array', value : ['one', 'two']) option('array_opt', type : 'array', choices : ['one', 'two', 'three'], value : ['one', 'two']) ``` +## Build option types + All types allow a `description` value to be set describing the option, if no option is set then the name of the option will be used instead. @@ -40,7 +42,7 @@ A combo allows any one of the values in the `choices` parameter to be selected. If no default value is set then the first value will be the default. -## Integers +### Integers An integer option contains a single integer with optional upper and lower values that are specified with the `min` and `max` keyword @@ -135,3 +137,29 @@ project which also has an option called `some_option`, then calling `get_option` returns the value of the superproject. If the value of `yield` is `false`, `get_option` returns the value of the subproject's option. + + +## Built-in build options + +There are a number of built-in options. To get the current list execute `meson +configure` in the build directory. + +### Visual Studio + +#### Startup project + +The backend\_startup\_project option can be set to define the default project +that will be executed with the "Start debugging F5" action in visual studio. +It should be the same name as an executable target name. + +```meson +project('my_project', 'c', default_options: ['backend_startup_project=my_exe']) +executable('my_exe', ...) +``` + +### Ninja + +#### Max links + +The backend\_max\_links can be set to limit the number of processes that ninja +will use to link. |