File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,25 @@ cmake \
7777cmake --build " ${build_dir} /cpp" --target install
7878github_actions_group_end
7979
80+ absl_build_dir=" ${build_dir} /cpp/_deps/absl-build"
81+ absl_cmake_dir=" "
82+ if [ -d " ${absl_build_dir} " ]; then
83+ github_actions_group_begin " Installing bundled Abseil"
84+ cmake --build " ${build_dir} /cpp" --target _deps/absl-build/all --config Release
85+ cmake --install " ${absl_build_dir} " --prefix " ${install_dir} " --config Release
86+ absl_cmake_dir=" ${install_dir} /lib/cmake/absl"
87+ if [ ! -f " ${absl_cmake_dir} /abslConfig.cmake" ]; then
88+ echo " Bundled Abseil CMake package was not installed in ${absl_cmake_dir} " >&2
89+ exit 1
90+ fi
91+ github_actions_group_end
92+ fi
93+
8094JAVA_JNI_CMAKE_ARGS=" -DProtobuf_ROOT=${build_dir} /cpp/_deps/protobuf-build"
8195JAVA_JNI_CMAKE_ARGS+=" -DProtobuf_SRC_ROOT_FOLDER=${build_dir} /cpp/_deps/protobuf-src"
96+ if [ -n " ${absl_cmake_dir} " ]; then
97+ JAVA_JNI_CMAKE_ARGS+=" -Dabsl_DIR=${absl_cmake_dir} "
98+ fi
8299export JAVA_JNI_CMAKE_ARGS
83100" ${source_dir} /ci/scripts/jni_build.sh" \
84101 " ${source_dir} " \
You can’t perform that action at this time.
0 commit comments