Skip to content

Commit

Permalink
apply format to velox/
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Jun 18, 2024
1 parent 609e240 commit bc16b11
Show file tree
Hide file tree
Showing 39 changed files with 297 additions and 200 deletions.
31 changes: 12 additions & 19 deletions velox/common/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ velox_add_library(velox_exception Exceptions.cpp VeloxException.cpp
Exceptions.h)
velox_link_libraries(
velox_exception
PUBLIC
velox_flag_definitions
velox_process
Folly::folly
fmt::fmt
gflags::gflags
glog::glog)
PUBLIC velox_flag_definitions
velox_process
Folly::folly
fmt::fmt
gflags::gflags
glog::glog)

velox_add_library(
velox_common_base
Expand All @@ -41,16 +40,8 @@ velox_add_library(

velox_link_libraries(
velox_common_base
PUBLIC
velox_exception
Folly::folly
fmt::fmt
xsimd
PRIVATE
velox_common_compression
velox_process
velox_test_util
glog::glog)
PUBLIC velox_exception Folly::folly fmt::fmt xsimd
PRIVATE velox_common_compression velox_process velox_test_util glog::glog)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand All @@ -72,5 +63,7 @@ velox_link_libraries(
gflags::gflags)

velox_add_library(velox_status Status.cpp)
velox_link_libraries(velox_status PUBLIC fmt::fmt Folly::folly PRIVATE
glog::glog)
velox_link_libraries(
velox_status
PUBLIC fmt::fmt Folly::folly
PRIVATE glog::glog)
22 changes: 10 additions & 12 deletions velox/common/caching/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ velox_add_library(
StringIdMap.cpp)
velox_link_libraries(
velox_caching
PUBLIC
velox_common_base
velox_exception
velox_file
velox_memory
velox_process
velox_time
Folly::folly
fmt::fmt
gflags::gflags
PRIVATE
velox_time)
PUBLIC velox_common_base
velox_exception
velox_file
velox_memory
velox_process
velox_time
Folly::folly
fmt::fmt
gflags::gflags
PRIVATE velox_time)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
6 changes: 4 additions & 2 deletions velox/common/compression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ if(${VELOX_BUILD_TESTING})
endif()

velox_add_library(velox_common_compression Compression.cpp LzoDecompressor.cpp)
velox_link_libraries(velox_common_compression PUBLIC Folly::folly PRIVATE
velox_exception)
velox_link_libraries(
velox_common_compression
PUBLIC Folly::folly
PRIVATE velox_exception)
9 changes: 2 additions & 7 deletions velox/common/file/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ include_directories(.)
velox_add_library(velox_file File.cpp FileSystems.cpp Utils.cpp)
velox_link_libraries(
velox_file
PUBLIC
velox_exception
Folly::folly
PRIVATE
velox_common_base
fmt::fmt
glog::glog)
PUBLIC velox_exception Folly::folly
PRIVATE velox_common_base fmt::fmt glog::glog)

if(${VELOX_BUILD_TESTING} OR ${VELOX_BUILD_TEST_UTILS})
add_subdirectory(tests)
Expand Down
6 changes: 4 additions & 2 deletions velox/common/hyperloglog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
velox_add_library(velox_common_hyperloglog BiasCorrection.cpp DenseHll.cpp
SparseHll.cpp)

velox_link_libraries(velox_common_hyperloglog PUBLIC velox_memory PRIVATE
velox_exception)
velox_link_libraries(
velox_common_hyperloglog
PUBLIC velox_memory
PRIVATE velox_exception)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
23 changes: 10 additions & 13 deletions velox/common/memory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ velox_add_library(

velox_link_libraries(
velox_memory
PUBLIC
velox_common_base
velox_exception
velox_flag_definitions
velox_time
velox_type
Folly::folly
fmt::fmt
gflags::gflags
glog::glog
PRIVATE
velox_test_util
re2::re2)
PUBLIC velox_common_base
velox_exception
velox_flag_definitions
velox_time
velox_type
Folly::folly
fmt::fmt
gflags::gflags
glog::glog
PRIVATE velox_test_util re2::re2)
10 changes: 2 additions & 8 deletions velox/common/process/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,8 @@ velox_add_library(

velox_link_libraries(
velox_process
PUBLIC
velox_file
velox_flag_definitions
Folly::folly
PRIVATE
fmt::fmt
gflags::gflags
glog::glog)
PUBLIC velox_file velox_flag_definitions Folly::folly
PRIVATE fmt::fmt gflags::gflags glog::glog)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
2 changes: 1 addition & 1 deletion velox/common/serialization/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
velox_add_library(velox_serialization DeserializationRegistry.cpp)

velox_link_libraries(velox_serialization PUBLIC velox_exception Folly::folly
glog::glog)
glog::glog)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
9 changes: 2 additions & 7 deletions velox/common/time/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@ if(${VELOX_BUILD_TESTING})
endif()

velox_add_library(velox_time CpuWallTimer.cpp Timer.cpp)
velox_link_libraries(
velox_time
PUBLIC
velox_process
velox_test_util
Folly::folly
fmt::fmt)
velox_link_libraries(velox_time PUBLIC velox_process velox_test_util
Folly::folly fmt::fmt)
29 changes: 14 additions & 15 deletions velox/connectors/hive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,21 @@ velox_add_library(

velox_link_libraries(
velox_hive_connector
PUBLIC
velox_hive_iceberg_splitreader
PUBLIC velox_hive_iceberg_splitreader
PRIVATE
velox_common_io
velox_connector
velox_dwio_catalog_fbhive
velox_dwio_dwrf_reader
velox_dwio_dwrf_writer
velox_dwio_parquet_reader
velox_dwio_parquet_writer
velox_file
velox_hive_partition_function
velox_s3fs
velox_hdfs
velox_gcs
velox_abfs)
velox_common_io
velox_connector
velox_dwio_catalog_fbhive
velox_dwio_dwrf_reader
velox_dwio_dwrf_writer
velox_dwio_parquet_reader
velox_dwio_parquet_writer
velox_file
velox_hive_partition_function
velox_s3fs
velox_hdfs
velox_gcs
velox_abfs)

velox_add_library(velox_hive_partition_function HivePartitionFunction.cpp)

Expand Down
27 changes: 15 additions & 12 deletions velox/connectors/hive/storage_adapters/abfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@
velox_add_library(velox_abfs RegisterAbfsFileSystem.cpp)

if(VELOX_ENABLE_ABFS)
velox_sources(velox_abfs PRIVATE AbfsFileSystem.cpp AbfsUtils.cpp
AbfsWriteFile.cpp)
velox_sources(
velox_abfs
PRIVATE
AbfsFileSystem.cpp
AbfsUtils.cpp
AbfsWriteFile.cpp)
velox_link_libraries(
velox_abfs
PUBLIC
velox_file
velox_core
velox_hive_config
velox_dwio_common_exception
Azure::azure-storage-blobs
Azure::azure-storage-files-datalake
Folly::folly
glog::glog
fmt::fmt)
PUBLIC velox_file
velox_core
velox_hive_config
velox_dwio_common_exception
Azure::azure-storage-blobs
Azure::azure-storage-files-datalake
Folly::folly
glog::glog
fmt::fmt)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
8 changes: 6 additions & 2 deletions velox/connectors/hive/storage_adapters/hdfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
velox_add_library(velox_hdfs RegisterHdfsFileSystem.cpp)

if(VELOX_ENABLE_HDFS)
velox_sources(velox_hdfs PRIVATE HdfsFileSystem.cpp HdfsReadFile.cpp
HdfsWriteFile.cpp)
velox_sources(
velox_hdfs
PRIVATE
HdfsFileSystem.cpp
HdfsReadFile.cpp
HdfsWriteFile.cpp)
velox_link_libraries(velox_hdfs Folly::folly ${LIBHDFS3} xsimd)

if(${VELOX_BUILD_TESTING})
Expand Down
28 changes: 13 additions & 15 deletions velox/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,16 @@ velox_add_library(

velox_link_libraries(
velox_core
PUBLIC
velox_arrow_bridge
velox_caching
velox_config
velox_connector
velox_exception
velox_expression_functions
velox_memory
velox_type
velox_vector
Boost::headers
Folly::folly
fmt::fmt
PRIVATE
velox_encode)
PUBLIC velox_arrow_bridge
velox_caching
velox_config
velox_connector
velox_exception
velox_expression_functions
velox_memory
velox_type
velox_vector
Boost::headers
Folly::folly
fmt::fmt
PRIVATE velox_encode)
28 changes: 14 additions & 14 deletions velox/dwio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ velox_add_library(velox_link_libs INTERFACE)
velox_link_libraries(
velox_link_libs
INTERFACE
velox_caching
velox_dwio_catalog_fbhive
velox_dwio_common
velox_dwio_common_exception
velox_encode
velox_exception
velox_memory
velox_process
velox_serialization
velox_type
velox_type_fbhive
velox_vector
Folly::folly
fmt::fmt)
velox_caching
velox_dwio_catalog_fbhive
velox_dwio_common
velox_dwio_common_exception
velox_encode
velox_exception
velox_memory
velox_process
velox_serialization
velox_type
velox_type_fbhive
velox_vector
Folly::folly
fmt::fmt)

add_subdirectory(common)
add_subdirectory(catalog)
Expand Down
8 changes: 6 additions & 2 deletions velox/dwio/parquet/thrift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
# limitations under the License.

velox_add_library(velox_dwio_parquet_thrift ParquetThriftTypes.cpp)
velox_link_libraries(velox_dwio_parquet_thrift arrow thrift Boost::headers
fmt::fmt)
velox_link_libraries(
velox_dwio_parquet_thrift
arrow
thrift
Boost::headers
fmt::fmt)
9 changes: 7 additions & 2 deletions velox/dwio/parquet/writer/arrow/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ velox_add_library(
Hashing.cpp
Crc32.cpp)

velox_link_libraries(velox_dwio_arrow_parquet_writer_util_lib arrow
Snappy::snappy zstd::zstd ZLIB::ZLIB lz4::lz4)
velox_link_libraries(
velox_dwio_arrow_parquet_writer_util_lib
arrow
Snappy::snappy
zstd::zstd
ZLIB::ZLIB
lz4::lz4)
23 changes: 17 additions & 6 deletions velox/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,30 @@
add_executable(velox_example_simple_functions SimpleFunctions.cpp)

target_link_libraries(
velox_example_simple_functions velox_functions_lib velox_core
velox_expression re2::re2)
velox_example_simple_functions
velox_functions_lib
velox_core
velox_expression
re2::re2)

add_executable(velox_example_expression_eval ExpressionEval.cpp)

target_link_libraries(
velox_example_expression_eval velox_type velox_vector velox_caching
velox_memory velox_expression)
velox_example_expression_eval
velox_type
velox_vector
velox_caching
velox_memory
velox_expression)

add_executable(velox_example_opaque_type OpaqueType.cpp)
target_link_libraries(
velox_example_opaque_type velox_type velox_vector velox_caching
velox_expression velox_memory)
velox_example_opaque_type
velox_type
velox_vector
velox_caching
velox_expression
velox_memory)

# This is disabled temporarily until we figure out why g++ is crashing linking
# it on linux builds.
Expand Down
Loading

0 comments on commit bc16b11

Please sign in to comment.