File tree Expand file tree Collapse file tree 12 files changed +154
-28
lines changed
main/paradox/obtaining-bindgen Expand file tree Collapse file tree 12 files changed +154
-28
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 @@ -91,10 +91,11 @@ lazy val tools = project in file("tools")
91
91
92
92
lazy val docs = project
93
93
.in(file(" docs" ))
94
- .enablePlugins(ParadoxPlugin )
94
+ .enablePlugins(GhpagesPlugin , ParadoxSitePlugin )
95
95
.settings(
96
96
paradoxTheme := Some (builtinParadoxTheme(" generic" )),
97
- paradoxProperties in Compile ++= Map (
97
+ paradoxProperties in Paradox ++= Map (
98
98
" github.base_url" -> " https://github.com/kornilova-l/scala-native-bindgen/tree/master/"
99
- )
99
+ ),
100
+ git.remoteRepo
:= " [email protected] :kornilova-l/scala-native-bindgen.git"
100
101
)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ scala-native-bindgen --name uv /usr/include/uv.h -- > uv.scala
14
14
15
15
## Bindgen Options
16
16
17
- | Option | Description |
18
- | ----------------------| -------------------------------------------------------------------------------------------------------------- |
19
- | ` --link ` | Library to link with, e.g. ` --link ` uv for libuv. |
20
- | ` --no-link ` | Library is static and does not require linking. |
21
- | ` --name ` | Scala object name that contains bindings. If ` --no-link ` is specified then ` name ` should match library name. |
22
- | ` --package ` | Package name of generated Scala file. |
23
- | ` --exclude-prefix ` | Functions and unused typedefs will be removed if their names have given prefix. |
24
- | ` --extra-arg ` | Additional argument to append to the compiler command line. |
25
- | ` --extra-arg-before ` | Additional argument to prepend to the compiler command line. |
17
+ | Option | Description |
18
+ | ----------------------| ---------------------------------------------------------------------------------|
19
+ | ` --link ` | Library to link with, e.g. ` --link ` uv for libuv. |
20
+ | ` --no-link ` | Library does not require linking. |
21
+ | ` --name ` | Scala object name that contains bindings. Default value set to library name. |
22
+ | ` --package ` | Package name of generated Scala file. |
23
+ | ` --exclude-prefix ` | Functions and unused typedefs will be removed if their names have given prefix. |
24
+ | ` --extra-arg ` | Additional argument to append to the compiler command line. |
25
+ | ` --extra-arg-before ` | Additional argument to prepend to the compiler command line. |
Original file line number Diff line number Diff line change 2
2
3
3
@@@ index
4
4
5
- * [ Obtaining bindgen ] ( obtaining-bindgen/index.md )
6
- * [ Usage] ( command-line-usage/index.md )
5
+ * [ Obtaining Bindgen ] ( obtaining-bindgen/index.md )
6
+ * [ Command Line Usage] ( command-line-usage/index.md )
7
7
* [ Limitations] ( limitations/index.md )
8
+ * [ Using Generated Bindings] ( using-generated-bindings/README.md )
8
9
9
10
@@@
10
11
File renamed without changes.
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
Original file line number Diff line number Diff line change
1
+ # Obtaining Bindgen
2
+
3
+ @@@ index
4
+
5
+ * [ Use Docker Container] ( docker-container.md )
6
+ * [ Build Binary with CMake] ( cmake.md )
7
+ * [ Build Binary with docker-compose] ( docker-compose.md )
8
+
9
+ @@@
10
+
11
+ There are 3 ways to obtain bindgen:
12
+
13
+ * @ref :[ Use docker container] ( docker-container.md )
14
+
15
+ * @ref :[ Build binary with CMake] ( cmake.md )
16
+
17
+ * @ref :[ Build binary with docker-compose] ( docker-compose.md )
You can’t perform that action at this time.
0 commit comments