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 commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added
New install instructions for embedding the library in CMake without a package manager (#27)
For DJINNI_WITH_JNI: The library provides a new header file that includes a default implementation of JNI_OnLoad & JNI_OnUnload. This header is then automatically included by the gluecode generated by djinni-generator v1.0.0 (#26)
Changed
Requires at least C++17
Cleaned up CMakeLists.txt for it to be more standardized & have a reduced complexity, while adding support for it to be embedded into another CMake project easily:
Library now builds as static by default. Building a shared library can be enabled with BUILD_SHARED_LIBS=ON or DJINNI_LIBRARY_TYPE=SHARED
For DJINNI_WITH_JNI: Code is always built with -fPIC.
Configuring tests can be disabled with BUILD_TESTING=OFF or DJINNI_BUILD_TESTING=OFF
Why is this a major release?
The changes in CMakeLists.txt may break your existing setup if you embedded the library into another CMake project. Please refer to the updated install instructions to learn how to embed the library now.
The source file djinni/jni/djinni_main.cpp has been removed. With djinni-generator v1.0.0 you are not required to provide your own JNI_OnLoad implementation any more. For more details please consult the updated documentation on our JNI approach.