-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new features in cmake 3.28 allow the cmake modules to be simplified.
- Loading branch information
Showing
10 changed files
with
214 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# Licensed 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. | ||
include_guard(GLOBAL) | ||
|
||
set(VELOX_ABSL_BUILD_VERSION 20240116.2) | ||
set(VELOX_ABSL_BUILD_SHA256_CHECKSUM | ||
733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc) | ||
string(CONCAT VELOX_ABSL_SOURCE_URL | ||
"https://github.com/abseil/abseil-cpp/archive/refs/tags/" | ||
"${VELOX_ABSL_BUILD_VERSION}.tar.gz") | ||
|
||
resolve_dependency_url(ABSL) | ||
|
||
message(STATUS "Building Abseil from source") | ||
|
||
FetchContent_Declare( | ||
absl | ||
URL ${VELOX_ABSL_SOURCE_URL} | ||
URL_HASH ${VELOX_ABSL_BUILD_SHA256_CHECKSUM} | ||
OVERRIDE_FIND_PACKAGE EXCLUDE_FROM_ALL SYSTEM) | ||
|
||
set(ABSL_BUILD_TESTING OFF) | ||
set(ABSL_PROPAGATE_CXX_STD ON) | ||
set(ABSL_ENABLE_INSTALL ON) | ||
FetchContent_MakeAvailable(absl) |
44 changes: 44 additions & 0 deletions
44
CMake/resolve_dependency_modules/google_cloud_cpp_storage.cmake
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,44 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# Licensed 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. | ||
include_guard(GLOBAL) | ||
|
||
set_source(absl) | ||
resolve_dependency(absl 20240116 EXACT) | ||
|
||
set_source(gRPC) | ||
resolve_dependency(gRPC 1.48.1 EXACT) | ||
|
||
set(VELOX_GOOGLE_CLOUD_CPP_BUILD_VERSION 2.22.0) | ||
set(VELOX_GOOGLE_CLOUD_CPP_BUILD_SHA256_CHECKSUM | ||
0c68782e57959c82e0c81def805c01460a042c1aae0c2feee905acaa2a2dc9bf) | ||
string( | ||
CONCAT VELOX_GOOGLE_CLOUD_CPP_SOURCE_URL | ||
"https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/" | ||
"v${VELOX_GOOGLE_CLOUD_CPP_BUILD_VERSION}.tar.gz") | ||
|
||
resolve_dependency_url(GOOGLE_CLOUD_CPP) | ||
|
||
message(STATUS "Building Google Cloud CPP storage from source") | ||
|
||
FetchContent_Declare( | ||
google_cloud_cpp | ||
URL ${VELOX_GOOGLE_CLOUD_CPP_SOURCE_URL} | ||
URL_HASH ${VELOX_GOOGLE_CLOUD_CPP_BUILD_SHA256_CHECKSUM} | ||
OVERRIDE_FIND_PACKAGE EXCLUDE_FROM_ALL SYSTEM) | ||
|
||
set(GOOGLE_CLOUD_CPP_ENABLE_EXAMPLES OFF) | ||
set(GOOGLE_CLOUD_CPP_ENABLE | ||
"storage" | ||
CACHE STRING "The list of libraries to build.") | ||
FetchContent_MakeAvailable(google_cloud_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,57 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# Licensed 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. | ||
include_guard(GLOBAL) | ||
|
||
set(VELOX_GRPC_BUILD_VERSION 1.48.1) | ||
set(VELOX_GRPC_BUILD_SHA256_CHECKSUM | ||
320366665d19027cda87b2368c03939006a37e0388bfd1091c8d2a96fbc93bd8) | ||
string(CONCAT VELOX_GRPC_SOURCE_URL | ||
"https://github.com/grpc/grpc/archive/refs/tags/" | ||
"v${VELOX_GRPC_BUILD_VERSION}.tar.gz") | ||
|
||
resolve_dependency_url(GRPC) | ||
|
||
message(STATUS "Building Google Cloud CPP from source") | ||
|
||
FetchContent_Declare( | ||
gRPC | ||
URL ${VELOX_GRPC_SOURCE_URL} | ||
URL_HASH ${VELOX_GRPC_BUILD_SHA256_CHECKSUM} | ||
OVERRIDE_FIND_PACKAGE EXCLUDE_FROM_ALL) | ||
|
||
set(gRPC_ABSL_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of absl library") | ||
set(gRPC_ZLIB_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of zlib library") | ||
set(gRPC_CARES_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of c-ares library") | ||
set(gRPC_RE2_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of re2 library") | ||
set(gRPC_SSL_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of ssl library") | ||
set(gRPC_PROTOBUF_PROVIDER | ||
"package" | ||
CACHE STRING "Provider of protobuf library") | ||
set(gRPC_INSTALL | ||
ON | ||
CACHE BOOL "Generate installation target") | ||
FetchContent_MakeAvailable(gRPC) | ||
add_library(gRPC::grpc ALIAS grpc) | ||
add_library(gRPC::grpc++ ALIAS grpc++) | ||
add_executable(gRPC::grpc_cpp_plugin ALIAS grpc_cpp_plugin) |
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