File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,40 @@ SWIG. So how is it different from SWIG?
23
23
* Strongly-typed customization APIs
24
24
* Can be used as a library
25
25
26
- # 2. Targets
26
+ # 2. Generator Backends
27
27
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:
30
33
31
34
- C# (P/Invoke)
32
35
- C++/CLI
33
36
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
+
37
60
38
61
# 3. C/C++ language features
39
62
@@ -449,4 +472,4 @@ class __declspec(dllexport) ExposedClass
449
472
{
450
473
// class definition
451
474
}
452
- ```
475
+ ```
You can’t perform that action at this time.
0 commit comments