-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new
--jni-generate-main
parameter (#49)
* add new commandline parameter `--jni-generate-main` to resolve the currently discussed issue on how to provide a default JNI_OnLoad & JNI_OnUnload implementation without the user having to know about the internals. The paramater, if true, generates a file `djinni_jni_main.cpp` that includes the `djinni/jni/djinni_jni_main.hpp` header provided by djinni-support-lib. That way by default the user automatically gets a default JNI_OnLoad implementation if he builds a shared library from all sources. This is a breaking change because it generates a new type of file. This requires the upcoming djinni-support-lib v1.0.0, that comes with the required header file, to work properly.
- Loading branch information
Showing
21 changed files
with
67 additions
and
13 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
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
4 changes: 4 additions & 0 deletions
4
src/it/resources/expected/all_datatypes/jni/djinni_jni_main.cpp
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,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
1 change: 1 addition & 0 deletions
1
src/it/resources/expected/my_client_interface/generated-files.txt
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
4 changes: 4 additions & 0 deletions
4
src/it/resources/expected/my_client_interface/jni/djinni_jni_main.cpp
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,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
4 changes: 4 additions & 0 deletions
4
src/it/resources/expected/my_cpp_interface/jni/djinni_jni_main.cpp
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,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
4 changes: 4 additions & 0 deletions
4
src/it/resources/expected/using_custom_datatypes/jni/djinni_jni_main.cpp
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,4 @@ | ||
// AUTOGENERATED FILE - DO NOT MODIFY! | ||
// The file included here provides default JNI_OnLoad and JNI_OnUnload implementations. | ||
// Disable the generation of this file with `--jni-generate-main=false`. | ||
#include "djinni/jni/djinni_jni_main.hpp" |
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
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