File tree Expand file tree Collapse file tree 11 files changed +23
-30
lines changed Expand file tree Collapse file tree 11 files changed +23
-30
lines changed Original file line number Diff line number Diff line change 1
1
target /
2
2
scripts /.coursier
3
3
scripts /.scalafmt- *
4
+ /docs /_book /
Original file line number Diff line number Diff line change @@ -88,13 +88,3 @@ lazy val samples = project
88
88
)
89
89
90
90
lazy val tools = project in file(" tools" )
91
-
92
- lazy val docs = project
93
- .in(file(" docs" ))
94
- .enablePlugins(ParadoxPlugin )
95
- .settings(
96
- paradoxTheme := Some (builtinParadoxTheme(" generic" )),
97
- paradoxProperties in Compile ++= Map (
98
- " github.base_url" -> " https://github.com/kornilova-l/scala-native-bindgen/tree/master/"
99
- )
100
- )
Original file line number Diff line number Diff line change 1
1
# Scala Native Bindgen
2
2
3
- @@@ index
4
-
5
- * [ Obtaining bindgen] ( obtaining-bindgen/index.md )
6
- * [ Usage] ( command-line-usage/index.md )
7
- * [ Limitations] ( limitations/index.md )
8
-
9
- @@@
10
-
11
3
This tool generates Scala Native bindings from C headers.
12
4
It's built upon clang and [ LibTooling] and thus respects the conventions of clang-tools.
13
5
14
6
## License
15
7
16
8
This project is distributed under the Scala license.
17
- @ github [ See LICENSE.txt for details] ( /LICENSE.txt )
9
+ [ See LICENSE.txt for details] ( /LICENSE.txt )
18
10
19
11
[ LibTooling ] : https://clang.llvm.org/docs/LibTooling.html
Original file line number Diff line number Diff line change
1
+ # Summary
2
+
3
+ * [ Obtaining bindgen] ( obtaining-bindgen/README.md )
4
+ * [ Use docker container] ( obtaining-bindgen/docker-container.md )
5
+ * [ Build binary with CMake] ( obtaining-bindgen/cmake.md )
6
+ * [ Build binary with docker-compose] ( obtaining-bindgen/docker-compose.md )
7
+ * [ Usage] ( command-line-usage/README.md )
8
+ * [ Limitations] ( limitations/README.md )
9
+
File renamed without changes.
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ There are multiple unsupported cases that should be considered when generating b
30
30
```
31
31
32
32
3 . There is no way to reuse already generated bindings.
33
- Bindgen outputs bindings also for headers that were included in a given header. See @github [#2 ](# 2 ) .
33
+ Bindgen outputs bindings also for headers that were included in a given header. See [#2 ].
34
34
4 . Type qualifiers `const `, `volatile ` and `restrict ` are not supported.
35
- 5 . Extern variables are read-only. See @github[scala-native/scala-native#202 ](scala-native/scala-native#202 ).
35
+ 5 . Extern variables are read-only. See [scala-native/scala-native#202 ].
36
+
37
+ [#2 ]: https:// github.com/kornilova-l/scala-native-bindgen/issues/2
38
+ [scala-native/scala-native#202 ]: https:// github.com/scala-native/scala-native/issues/202
Original file line number Diff line number Diff line change 1
1
# Obtaining Bindgen
2
2
3
- @@@ index
4
-
3
+ There are 3 ways to obtain bindgen:
5
4
* [ Use docker container] ( docker-container.md )
6
5
* [ Build binary with CMake] ( cmake.md )
7
6
* [ Build binary with docker-compose] ( docker-compose.md )
8
-
9
- @@@
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -18,13 +18,15 @@ docker run -v "$(pwd)":/src -v /usr/include:/usr/include \
18
18
19
19
The docker image does not contain standard headers so it is important to
20
20
mount all system include directories that are used by the header file
21
- passed to ` scala-native-bindgen ` . See the @github [ docker-bindgen.sh] ( /scripts/docker-bindgen.sh ) script for
22
- how to wrap the dockerized program. The ` $CWD ` of the container is
23
- ` /src ` which should be mounted from ` $(pwd) ` in case relative paths are
24
- used.
21
+ passed to ` scala-native-bindgen ` .
22
+
23
+ See the [ docker-bindgen.sh] script for how to wrap the dockerized program.
24
+ The ` $CWD ` of the container is ` /src ` which should be mounted from ` $(pwd) `
25
+ in case relative paths are used.
25
26
26
27
Note, the ` scalabindgen/scala-native-bindgen:latest ` image is updated on
27
28
each merge to the ` master ` branch.
28
29
29
30
[ Docker ] : https://www.docker.com/
31
+ [ docker-bindgen.sh ] : https://github.com/kornilova-l/scala-native-bindgen/blob/master/scripts/docker-bindgen.sh
30
32
You can’t perform that action at this time.
0 commit comments