Skip to content

Commit

Permalink
More fixes the cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroerp committed Apr 25, 2024
1 parent 9dba0cd commit 4dc71db
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dwio/nimble/encodings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ add_library(
RleEncoding.cpp
SparseBoolEncoding.cpp
Statistics.cpp
TrivialEncoding.cpp)
TrivialEncoding.cpp
ZstdCompressor.cpp)

target_link_libraries(nimble_encodings Folly::folly absl::flat_hash_map)
9 changes: 7 additions & 2 deletions dwio/nimble/tablet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ target_include_directories(nimble_footer_fb
INTERFACE ${FLATBUFFERS_INCLUDE_DIR})
add_dependencies(nimble_footer_fb nimble_footer_schema_fb)

add_library(nimble_tablet Compression.cpp TabletReader.cpp TabletWriter.cpp)
add_library(nimble_tablet_common Compression.cpp)
target_link_libraries(nimble_tablet_common nimble_footer_fb Folly::folly)

target_link_libraries(nimble_tablet nimble_footer_fb Folly::folly)
add_library(nimble_tablet_reader TabletReader.cpp)
target_link_libraries(nimble_tablet_reader nimble_tablet_common)

add_library(nimble_tablet_writer TabletWriter.cpp)
target_link_libraries(nimble_tablet_writer nimble_tablet_common)
3 changes: 2 additions & 1 deletion dwio/nimble/tablet/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ add_test(nimble_tabletReader_tests nimble_tabletReader_tests)

target_link_libraries(
nimble_tabletReader_tests
nimble_tablet
nimble_tablet_reader
nimble_tablet_writer
nimble_common
velox_memory
velox_file
Expand Down
2 changes: 1 addition & 1 deletion dwio/nimble/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
add_library(nimble_tools_common EncodingUtilities.cpp)

target_link_libraries(nimble_tools_common nimble_common nimble_tablet)
target_link_libraries(nimble_tools_common nimble_common)
14 changes: 11 additions & 3 deletions dwio/nimble/velox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ target_link_libraries(nimble_velox_field_reader nimble_velox_schema_reader

add_library(nimble_velox_flatmap_layout_planner FlatMapLayoutPlanner.cpp)
target_link_libraries(nimble_velox_flatmap_layout_planner
nimble_velox_schema_reader nimble_tablet velox_file)
nimble_velox_schema_reader velox_file)

add_library(nimble_velox_field_writer BufferGrowthPolicy.cpp FieldWriter.cpp)
target_link_libraries(nimble_velox_field_writer nimble_velox_schema
Expand Down Expand Up @@ -82,11 +82,19 @@ target_link_libraries(
nimble_velox_schema_serialization
nimble_velox_schema_fb
nimble_velox_metadata_fb
nimble_velox_field_reader
nimble_tablet_reader
nimble_common
Folly::folly)

add_library(
nimble_velox_writer EncodingLayoutTree.cpp FlushPolicy.cpp VeloxWriter.cpp
ChunkedStreamWriter.cpp VeloxWriterDefaultMetadataOSS.cpp)
target_link_libraries(nimble_velox_writer nimble_encodings nimble_common
nimble_velox_metadata_fb Folly::folly)
target_link_libraries(
nimble_velox_writer
nimble_encodings
nimble_common
nimble_tablet_writer
nimble_velox_metadata_fb
velox_dwio_common
Folly::folly)

0 comments on commit 4dc71db

Please sign in to comment.