-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from kornilova-l/sbt-plugin
sbt plugin improvements
- Loading branch information
Showing
5 changed files
with
156 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
sbt-scala-native-bindgen/src/sbt-test/bindgen/generate/src/main/resources/core.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
int count_words(const char *text); | ||
void __not_excluded(void); |
1 change: 1 addition & 0 deletions
1
...dgen/generate/src/main/resources/header.h → ...dgen/generate/src/main/resources/stdlib.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
int access(const char *path, int mode); | ||
int read(int fildes, void *buf, int nbyte); | ||
int printf(const char *restrict format, ...); | ||
int __excluded(void); |
11 changes: 10 additions & 1 deletion
11
sbt-scala-native-bindgen/src/sbt-test/bindgen/generate/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
> check | ||
> checkSingle | ||
$ exists target/scala-2.11/src_managed/main/sbt-scala-native-bindgen/stdlib.scala | ||
> set target in (Compile, nativeBindgen) := nativeBindgenCustomTarget.value | ||
> checkSingle | ||
$ exists src/main/scala/org/example/stdlib.scala | ||
> clean | ||
> set nativeBindings in Compile += nativeBindgenCoreBinding.value | ||
> checkMultiple | ||
$ exists src/main/scala/org/example/core.scala | ||
$ exists src/main/scala/org/example/stdlib.scala |