-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-17081: [Java][Datasets] Move JNI build configuration from cpp/ to java/ #13911
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cb6406b
ARROW-17081: [Java][Datasets] Move JNI build configuration from cpp/ …
kou a39203b
Fix build errors
kou 3fe8bdf
Exclude more tests
kou b2a2747
Add a missing file
kou 21ca701
Add missing dependency
kou 35a398e
Uncapitalize
kou a0bfb7f
Relax dependency
kou c8c1b31
Clean
kou 23d0e54
Remove needless copies
kou 78d80d7
Clean up
kou 98c9952
Don't enable test on integration test
kou 0d5ebc4
Fix java_jni_build.sh usage
kou cb6fb00
Fix a typo
kou 9078c70
Remove garbage
kou 12e3944
Build shared for JNI
kou 931b6da
Ignore more tests
kou 8992230
JNI libraries must be shared
kou 49dbee8
Resolve TODO for ARROW-12175
kou d085780
Fix link type
kou e79ee30
Use new CMake targets
kou 654513b
Add missing dependencies
kou 8627ade
Add cmake_policy() for IN_LIST
kou e53b824
Add FindProtobufAlt.cmake
kou 13957f7
Update document
kou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
set(find_package_args) | ||
if(AWSSDKAlt_FIND_VERSION) | ||
list(APPEND find_package_args ${AWSSDKAlt_FIND_VERSION}) | ||
endif() | ||
if(AWSSDKAlt_FIND_QUIETLY) | ||
list(APPEND find_package_args QUIET) | ||
endif() | ||
# See https://aws.amazon.com/blogs/developer/developer-experience-of-the-aws-sdk-for-c-now-simplified-by-cmake/ | ||
# Workaround to force AWS CMake configuration to look for shared libraries | ||
if(DEFINED ENV{CONDA_PREFIX}) | ||
if(DEFINED BUILD_SHARED_LIBS) | ||
set(BUILD_SHARED_LIBS_WAS_SET TRUE) | ||
set(BUILD_SHARED_LIBS_KEEP ${BUILD_SHARED_LIBS}) | ||
else() | ||
set(BUILD_SHARED_LIBS_WAS_SET FALSE) | ||
endif() | ||
set(BUILD_SHARED_LIBS ON) | ||
endif() | ||
find_package(AWSSDK ${find_package_args} | ||
COMPONENTS config | ||
s3 | ||
transfer | ||
identity-management | ||
sts) | ||
# Restore previous value of BUILD_SHARED_LIBS | ||
if(DEFINED ENV{CONDA_PREFIX}) | ||
if(BUILD_SHARED_LIBS_WAS_SET) | ||
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_KEEP}) | ||
else() | ||
unset(BUILD_SHARED_LIBS) | ||
endif() | ||
endif() | ||
set(AWSSDKAlt_FOUND ${AWSSDK_FOUND}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kou This seems to require protobuf when HDFS is enabled, is there any reason for it? Is it a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good catch! It might be a mistake. Let's try removing this: #39136