Skip to content

Commit

Permalink
build: more folly library cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Aug 13, 2024
1 parent bb4c3ca commit 183d950
Showing 1 changed file with 36 additions and 25 deletions.
61 changes: 36 additions & 25 deletions cmake/folly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,55 +63,64 @@ add_library(dwarfs_folly_lite OBJECT
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/File.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/FileUtil.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/ScopeGuard.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/SharedMutex.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/String.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/concurrency/CacheLocality.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/container/detail/F14Table.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/FileUtilDetail.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/Futex.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/RangeCommon.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/RangeSse42.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/SimpleSimdStringUtils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/SplitStringSimd.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/ext/test_ext.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/hash/SpookyHashV2.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/io/FsUtil.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/io/IOBuf.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/io/IOBufQueue.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/lang/CString.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/lang/Exception.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/lang/SafeAssert.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/lang/ToAscii.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/memory/ReentrantAllocator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/memory/SanitizeAddress.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/memory/SanitizeLeak.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/memory/detail/MallocImpl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/net/NetOps.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/net/detail/SocketFileDescriptorMap.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Fcntl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/PThread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Sockets.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Stdlib.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysFile.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysMman.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysResource.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysStat.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysUio.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Time.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Unistd.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/stats/QuantileEstimator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/stats/TDigest.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/stats/detail/DoubleRadixSort.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/synchronization/ParkingLot.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/synchronization/SanitizeThread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/AtFork.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/HardwareConcurrency.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/ThreadId.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/ThreadName.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/testing/TestUtil.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/tracing/AsyncStack.cpp
)

if(WIN32)
target_sources(dwarfs_folly_lite PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/net/detail/SocketFileDescriptorMap.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Fcntl.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/PThread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Sockets.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysFile.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysMman.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysResource.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/SysStat.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/portability/Time.cpp
)
endif()

if(WITH_BENCHMARKS)
target_sources(dwarfs_folly_lite PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/ext/test_ext.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/io/FsUtil.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/testing/TestUtil.cpp
)
endif()

if(ENABLE_STACKTRACE OR WITH_BENCHMARKS)
target_sources(dwarfs_folly_lite PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/SharedMutex.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/concurrency/CacheLocality.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/detail/Futex.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/memory/ReentrantAllocator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/synchronization/ParkingLot.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/AtFork.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/ThreadId.cpp
)
endif()

if(ENABLE_STACKTRACE)
target_sources(dwarfs_folly_lite PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/debugging/symbolizer/Dwarf.cpp
Expand All @@ -127,6 +136,8 @@ if(ENABLE_STACKTRACE)
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/debugging/symbolizer/SymbolizePrinter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/debugging/symbolizer/SymbolizedFrame.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/debugging/symbolizer/Symbolizer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/synchronization/SanitizeThread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/tracing/AsyncStack.cpp
)
endif()

Expand Down

0 comments on commit 183d950

Please sign in to comment.