[Java][JNI] Improve current cmake java libraries dependencies that needs Protobuf_ROOT and Protobuf_USE_STATIC_LIBS variables
Open
- Dominant language
- Java
- Stars
- 94
- Forks
- 152
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 11
Description
### Describe the enhancement requested
The current Java JNI build needs to declare these CMAKE variables in order to build correctly:
- -DProtobuf_USE_STATIC_LIBS=ON
- -DProtobuf_ROOT=${project.basedir}/../cpp-jni/protobuf_ep-install
It may be possible to add support for installing bundled protocols.
### Component(s)
Documentation, Java
Contributor guide
Research direction
Start by locating the Java JNI CMake dependency configuration and the current Protobuf setup. Check how Protobuf_USE_STATIC_LIBS and Protobuf_ROOT are passed during the build, then verify a build without undocumented manual configuration; separately determine whether bundled protocol installation is in scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100