Skip to content

Commit

Permalink
make wrapped proto files part of dwrf_common
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Dec 5, 2024
1 parent f8e566f commit 183475f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 40 deletions.
2 changes: 0 additions & 2 deletions velox/connectors/hive/iceberg/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ if(VELOX_ENABLE_BENCHMARKS)
target_link_libraries(
velox_dwio_iceberg_reader_benchmark
velox_dwio_iceberg_reader_benchmark_lib
velox_dwio_dwrf_proto
velox_exec_test_lib
velox_exec
velox_hive_connector
Expand All @@ -51,7 +50,6 @@ if(NOT VELOX_DISABLE_GOOGLETEST)
velox_hive_partition_function
velox_dwio_common_exception
velox_dwio_common_test_utils
velox_dwio_dwrf_proto
velox_vector_test_lib
velox_exec
velox_exec_test_lib
Expand Down
2 changes: 1 addition & 1 deletion velox/dwio/dwrf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

add_subdirectory(common)
add_subdirectory(proto)
add_subdirectory(common)
add_subdirectory(reader)
if(${VELOX_BUILD_TESTING})
add_subdirectory(test)
Expand Down
15 changes: 12 additions & 3 deletions velox/dwio/dwrf/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ velox_add_library(
IntEncoder.cpp
RLEv1.cpp
RLEv2.cpp
Statistics.cpp)
Statistics.cpp
wrap/orc-proto-wrapper.cpp
wrap/dwrf-proto-wrapper.cpp)

velox_link_libraries(
velox_dwio_dwrf_common
Expand All @@ -36,6 +38,13 @@ velox_link_libraries(
velox_dwio_dwrf_proto
velox_caching
Snappy::snappy
zstd::zstd)
zstd::zstd
protobuf::libprotobuf)

add_subdirectory(wrap)
# required for the wrapped protobuf headers/sources
velox_include_directories(velox_dwio_dwrf_common PUBLIC ${PROJECT_BINARY_DIR})

if(NOT VELOX_MONO_LIBRARY)
# trigger generation of pb files
add_dependencies(velox_dwio_dwrf_common dwio_proto)
endif()
25 changes: 0 additions & 25 deletions velox/dwio/dwrf/common/wrap/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion velox/dwio/dwrf/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ add_subdirectory(utils)

set(TEST_LINK_LIBS
velox_dwio_common_test_utils
velox_dwio_dwrf_proto
velox_dwio_dwrf_reader
velox_dwio_dwrf_writer
velox_row_fast
Expand Down
7 changes: 1 addition & 6 deletions velox/dwio/dwrf/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,5 @@ if(${VELOX_BUILD_TESTING})
endif()

velox_add_library(velox_dwio_dwrf_utils ProtoUtils.cpp BitIterator.h)

if(NOT VELOX_MONO_LIBRARY)
add_dependencies(velox_dwio_dwrf_utils velox_dwio_dwrf_proto)
endif()

velox_link_libraries(velox_dwio_dwrf_utils velox_dwio_dwrf_proto velox_type
velox_link_libraries(velox_dwio_dwrf_utils velox_dwio_dwrf_common velox_type
velox_memory)
2 changes: 0 additions & 2 deletions velox/runner/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ target_link_libraries(
velox_local_runner_test
velox_exec_runner_test_util
velox_exec_test_lib
velox_dwio_common
velox_dwio_dwrf_proto
velox_parse_parser
velox_parse_expression
GTest::gtest)

0 comments on commit 183475f

Please sign in to comment.