Skip to content

Commit 359cc90

Browse files
authored
Update UsersManual.md
1 parent 748b7b5 commit 359cc90

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

docs/UsersManual.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,40 @@ SWIG. So how is it different from SWIG?
2323
* Strongly-typed customization APIs
2424
* Can be used as a library
2525

26-
# 2. Targets
26+
# 2. Generator Backends
2727

28-
The backend of the generator is abstracted and it can target different .NET
29-
binding technologies:
28+
The backend of the bindings generator is abstracted and can support several different targets.
29+
30+
It can be changed by using the `Options.GeneratorKind` option.
31+
32+
For .NET we support these bindings technologies:
3033

3134
- C# (P/Invoke)
3235
- C++/CLI
3336

34-
We have recently introduced an option which makes Clang look up MSVC headers.
35-
If it works well, we're going to make it the default in our next release.
36-
Its only disadvantage is the ability to select a specific version of MSVC.
37+
There is also experimental support for these JavaScript-related targets:
38+
39+
- N-API (Node.js)
40+
- QuickJS
41+
- TypeScript
42+
43+
# 3. Native Targets
44+
45+
The parser supports several different targets and needs to be correctly configured to match the compiled native code.
46+
47+
This can be done by using the `ParserOptions.TargetTriple` option.
48+
49+
These triples follow the same format as LLVM/Clang, which is documented [here](https://clang.llvm.org/docs/CrossCompilation.html#target-triple).
50+
51+
Here are a few examples for the most common variants:
52+
53+
- `i686-pc-win32-msvc`
54+
- `x86_64-pc-win32-msvc`
55+
- `i686-linux-gnu`
56+
- `x86_64-linux-gnu`
57+
- `i686-apple-darwin`
58+
- `x86_64-apple-darwin`
59+
3760

3861
# 3. C/C++ language features
3962

@@ -449,4 +472,4 @@ class __declspec(dllexport) ExposedClass
449472
{
450473
// class definition
451474
}
452-
```
475+
```

0 commit comments

Comments
 (0)