You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This plugin must be explicitly enabled. To enable it add the following line
14
+
* to your `.sbt` file:
15
+
* {{{
16
+
* enablePlugins(ScalaNativeBindgenPlugin)
17
+
* }}}
18
+
*
19
+
* By default, the plugin reads the configured header file and generates
20
+
* a single Scala source file in the managed source directory.
21
+
*
22
+
* See the [[https://github.com/kornilova-l/scala-native-bindgen/tree/master/sbt-scala-native-bindgen/src/sbt-test/bindgen/generate example project]].
23
+
*
24
+
* == Configuration ==
25
+
*
26
+
* Keys are defined in [[ScalaNativeBindgenPlugin.autoImport]].
27
+
*
28
+
* - `nativeBindgenHeader`: The C header file to read.
29
+
*
30
+
* - `nativeBindgenPackage`: Package of the enclosing object.
31
+
* No package by default.
32
+
*
33
+
* - `name in nativeBindgen`: Name of the enclosing object.
34
+
*
35
+
* @example
36
+
* {{{
37
+
* nativeBindgenHeader in Compile := file("/usr/include/ctype.h")
38
+
* nativeBindgenPackage in Compile := Some("org.example.app")
39
+
* name in (Compile, nativeBindgen) := "ctype"
40
+
* }}}
41
+
*/
42
+
objectScalaNativeBindgenPluginextendsAutoPlugin {
43
+
44
+
objectautoImport {
45
+
valnativeBindgenPath=
46
+
taskKey[Option[File]]("Path to the scala-native-bindgen executable")
0 commit comments