summaryrefslogtreecommitdiff
path: root/docs/markdown/tmp.json
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-03-29 15:03:43 -0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-04-26 17:56:33 +0300
commitb371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f (patch)
tree6e1a3c34b1a85479d3b9f42ccd071096e637929b /docs/markdown/tmp.json
parent7dc747ea54480c452b913e4bfe682ec67061c9bf (diff)
downloadmeson-b371875e02cce2fb3fbb9fbb8f07eb5817ae0e8f.tar.gz
docs: Import the website and wiki and build with hotdoc
This allows us to more easily have the documentation in sync with the source code as people will have to document new features etc right at the time where they implement it.
Diffstat (limited to 'docs/markdown/tmp.json')
-rw-r--r--docs/markdown/tmp.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/markdown/tmp.json b/docs/markdown/tmp.json
new file mode 100644
index 000000000..190d12f49
--- /dev/null
+++ b/docs/markdown/tmp.json
@@ -0,0 +1,29 @@
+{
+ "functions": {
+ "add_global_arguments": {
+ "doc": ["Adds the positional arguments to the compiler command line for the language specified in `language` keyword argument. Note that there is no way to remove an argument set in this way.",
+ "If you have an argument that is only used in a subset of targets, you have to specify it in per-target flags.",
+ "The arguments are used in all compiler invocations with the exception of compile tests, because you might need to run a compile test with and without the argument in question. For this reason only the arguments explicitly specified are used during compile tests.",
+ "**Note:** Usually you should use `add_project_arguments` instead, because that works even when you project is used as a subproject.",
+ "**Note:** You must pass always arguments individually `arg1, arg2, ...` rather than as a string `'arg1 arg2', ...`"]
+ "arguments": [
+ {"name": "args1", "doc": "Some argument"}
+ ]
+ }
+ }
+ "objects": [
+ "meson": {
+ "doc": ["The `meson` object allows you to introspect various properties of the system. This object is always mapped in the `meson` variable. It has the following methods."]
+ "methods": [
+ "get_compiler": {
+ "arguments": [
+ {"name": "language", "doc": "returns [an object describing a compiler](#compiler-object), takes one positional argument which is the language to use. ",
+ "It also accepts one keyword argument, `native` which when set to true makes Meson return the compiler for the build machine (the \"native\" compiler)",
+ "and when false it returns the host compiler (the \"cross\" compiler). If `native` is omitted, Meson returns the \"cross\" compiler if we're currently",
+ " cross-compiling and the \"native\" compiler if we're not."}
+ ]
+ }
+ ]
+ }
+ ]
+}