project(${PACKAGE_NAME} CXX)
-if (MSVC_VERSION EQUAL 1910 OR MSVC_VERSION EQUAL 1911)
+if (MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1920)
set(MSVC_IS_2017 ON)
elseif (MSVC_VERSION EQUAL 1900)
set(MSVC_IS_2017 OFF)
else()
- message(FATAL_ERROR "This build script only supports building '${MSVC_VERSION}' Folly on 64-bit Windows with Visual Studio 2015 or Visual Studio 2017.")
+ message(FATAL_ERROR "This build script only supports building Folly on 64-bit Windows with Visual Studio 2015 or Visual Studio 2017. MSVC version '${MSVC_VERSION}' is not supported.")
endif()
# Check architecture OS
"/experimental/symbolizer/"
"/futures/exercises/"
"/test/"
+ "/tools/"
"Benchmark.cpp$"
"Test.cpp$"
IGNORE_MATCHES
"/Benchmark.cpp$"
)
list(REMOVE_ITEM files
+ ${FOLLY_DIR}/Poly.cpp
${FOLLY_DIR}/Subprocess.cpp
${FOLLY_DIR}/SingletonStackTrace.cpp
${FOLLY_DIR}/experimental/JSONSchemaTester.cpp
)
list(REMOVE_ITEM hfiles
${FOLLY_DIR}/Fingerprint.h
+ ${FOLLY_DIR}/Poly.h
+ ${FOLLY_DIR}/Poly-inl.h
+ ${FOLLY_DIR}/detail/PolyDetail.h
+ ${FOLLY_DIR}/detail/TypeList.h
${FOLLY_DIR}/detail/SlowFingerprint.h
${FOLLY_DIR}/detail/FingerprintPolynomial.h
${FOLLY_DIR}/experimental/RCURefCount.h
${FOLLY_DIR}/experimental/RCUUtils.h
${FOLLY_DIR}/experimental/io/AsyncIO.h
+ ${FOLLY_DIR}/poly/Nullable.h
+ ${FOLLY_DIR}/poly/Regular.h
)
add_library(folly_base OBJECT
apply_folly_compile_options_to_target(folly_test_support)
folly_define_tests(
+ DIRECTORY compression/test/
+ TEST compression_test SOURCES CompressionTest.cpp
+
+ DIRECTORY container/test/
+ TEST array_test SOURCES ArrayTest.cpp
+ TEST enumerate_test SOURCES EnumerateTest.cpp
+ TEST evicting_cache_map_test SOURCES EvictingCacheMapTest.cpp
+ TEST foreach_test SOURCES ForeachTest.cpp
+ TEST merge_test SOURCES MergeTest.cpp
+ TEST sparse_byte_set_test SOURCES SparseByteSetTest.cpp
+
DIRECTORY concurrency/test/
TEST cache_locality_test SOURCES CacheLocalityTest.cpp
+
+ DIRECTORY executors/test/
+ TEST async_helpers_test SOURCES AsyncTest.cpp
+ TEST codel_test SOURCES CodelTest.cpp
+ TEST executor_test SOURCES ExecutorTest.cpp
+ TEST fiber_io_executor_test SOURCES FiberIOExecutorTest.cpp
+ TEST global_executor_test SOURCES GlobalExecutorTest.cpp
+ TEST serial_executor_test SOURCES SerialExecutorTest.cpp
+ TEST thread_pool_executor_test SOURCES ThreadPoolExecutorTest.cpp
+ TEST threaded_executor_test SOURCES ThreadedExecutorTest.cpp
+
+ DIRECTORY executors/task_queue/test/
+ TEST unbounded_blocking_queue_test SOURCES UnboundedBlockingQueueTest.cpp
+
DIRECTORY experimental/test/
TEST autotimer_test SOURCES AutoTimerTest.cpp
TEST bits_test_2 SOURCES BitsTest.cpp
DIRECTORY fibers/test/
TEST fibers_test SOURCES FibersTest.cpp
+ DIRECTORY functional/test/
+ TEST apply_tuple_test SOURCES ApplyTupleTest.cpp
+ TEST partial_test SOURCES PartialTest.cpp
+
DIRECTORY futures/test/
TEST barrier_test SOURCES BarrierTest.cpp
TEST callback_lifetime_test SOURCES CallbackLifetimeTest.cpp
TEST context_test SOURCES ContextTest.cpp
TEST core_test SOURCES CoreTest.cpp
TEST ensure_test SOURCES EnsureTest.cpp
- TEST executor_test SOURCES ExecutorTest.cpp
TEST fsm_test SOURCES FSMTest.cpp
TEST filter_test SOURCES FilterTest.cpp
TEST future_splitter_test SOURCES FutureSplitterTest.cpp
TEST parallel_map_test SOURCES ParallelMapTest.cpp
TEST parallel_test SOURCES ParallelTest.cpp
+ DIRECTORY hash/test/
+ TEST checksum_test SOURCES ChecksumTest.cpp
+ TEST hash_test SOURCES HashTest.cpp
+ TEST spooky_hash_v1_test SOURCES SpookyHashV1Test.cpp
+ TEST spooky_hash_v2_test SOURCES SpookyHashV2Test.cpp
+
DIRECTORY io/test/
- TEST compression_test SOURCES CompressionTest.cpp
TEST iobuf_test SOURCES IOBufTest.cpp
TEST iobuf_cursor_test SOURCES IOBufCursorTest.cpp
TEST iobuf_queue_test SOURCES IOBufQueueTest.cpp
DIRECTORY io/async/ssl/test/
TEST ssl_errors_test SOURCES SSLErrorsTest.cpp
+ DIRECTORY memory/test/
+ TEST arena_test SOURCES ArenaTest.cpp
+ TEST thread_cached_arena_test SOURCES ThreadCachedArenaTest.cpp
+ TEST mallctl_helper_test SOURCES MallctlHelperTest.cpp
+
DIRECTORY portability/test/
TEST constexpr_test SOURCES ConstexprTest.cpp
TEST libgen-test SOURCES LibgenTest.cpp
- TEST time-test SOURCES TimeTest.cpp
TEST openssl_portability_test SOURCES OpenSSLPortabilityTest.cpp
+ TEST time-test SOURCES TimeTest.cpp
DIRECTORY ssl/test/
TEST openssl_hash_test SOURCES OpenSSLHashTest.cpp
TEST timeseries_histogram_test SOURCES TimeseriesHistogramTest.cpp
TEST timeseries_test SOURCES TimeseriesTest.cpp
+ DIRECTORY synchronization/test/
+ TEST call_once_test SOURCES CallOnceTest.cpp
+
+ DIRECTORY system/test/
+ TEST memory_mapping_test SOURCES MemoryMappingTest.cpp
+ TEST shell_test SOURCES ShellTest.cpp
+ #TEST subprocess_test SOURCES SubprocessTest.cpp
+ TEST thread_id_test SOURCES ThreadIdTest.cpp
+ TEST thread_name_test SOURCES ThreadNameTest.cpp
+
DIRECTORY test/
TEST ahm_int_stress_test SOURCES AHMIntStressTest.cpp
- TEST apply_tuple_test SOURCES ApplyTupleTest.cpp
- TEST arena_test SOURCES ArenaTest.cpp
TEST arena_smartptr_test SOURCES ArenaSmartPtrTest.cpp
- TEST array_test SOURCES ArrayTest.cpp
TEST ascii_check_test SOURCES AsciiCaseInsensitiveTest.cpp
TEST atomic_bit_set_test SOURCES AtomicBitSetTest.cpp
TEST atomic_hash_array_test SOURCES AtomicHashArrayTest.cpp
TEST bit_iterator_test SOURCES BitIteratorTest.cpp
TEST bits_test SOURCES BitsTest.cpp
TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp
- TEST call_once_test SOURCES CallOnceTest.cpp
- TEST checksum_test SOURCES ChecksumTest.cpp
TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp
TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp
TEST container_traits_test SOURCES ContainerTraitsTest.cpp
TEST dynamic_converter_test SOURCES DynamicConverterTest.cpp
TEST dynamic_other_test SOURCES DynamicOtherTest.cpp
TEST endian_test SOURCES EndianTest.cpp
- TEST enumerate_test SOURCES EnumerateTest.cpp
- TEST evicting_cache_map_test SOURCES EvictingCacheMapTest.cpp
TEST exception_test SOURCES ExceptionTest.cpp
TEST exception_wrapper_test SOURCES ExceptionWrapperTest.cpp
TEST expected_test SOURCES ExpectedTest.cpp
TEST file_util_test HANGING
SOURCES FileUtilTest.cpp
TEST fingerprint_test SOURCES FingerprintTest.cpp
- TEST foreach_test SOURCES ForeachTest.cpp
TEST format_other_test SOURCES FormatOtherTest.cpp
TEST format_test SOURCES FormatTest.cpp
TEST function_scheduler_test SOURCES FunctionSchedulerTest.cpp
TEST group_varint_test SOURCES GroupVarintTest.cpp
TEST group_varint_test_ssse3 SOURCES GroupVarintTest.cpp
TEST has_member_fn_traits_test SOURCES HasMemberFnTraitsTest.cpp
- TEST hash_test SOURCES HashTest.cpp
TEST indestructible_test SOURCES IndestructibleTest.cpp
TEST indexed_mem_pool_test BROKEN
SOURCES IndexedMemPoolTest.cpp
TEST lock_traits_test SOURCES LockTraitsTest.cpp
TEST locks_test SOURCES SmallLocksTest.cpp SpinLockTest.cpp
TEST logging_test SOURCES LoggingTest.cpp
- TEST mallctl_helper_test SOURCES MallctlHelperTest.cpp
TEST math_test SOURCES MathTest.cpp
TEST map_util_test SOURCES MapUtilTest.cpp
TEST memcpy_test SOURCES MemcpyTest.cpp
TEST memory_idler_test SOURCES MemoryIdlerTest.cpp
- TEST memory_mapping_test SOURCES MemoryMappingTest.cpp
TEST memory_test SOURCES MemoryTest.cpp
- TEST merge SOURCES MergeTest.cpp
TEST move_wrapper_test SOURCES MoveWrapperTest.cpp
TEST mpmc_pipeline_test SOURCES MPMCPipelineTest.cpp
TEST mpmc_queue_test SLOW
TEST packed_sync_ptr_test HANGING
SOURCES PackedSyncPtrTest.cpp
TEST padded_test SOURCES PaddedTest.cpp
- TEST partial_test SOURCES PartialTest.cpp
+ #TEST poly_test SOURCES PolyTest.cpp
TEST portability_test SOURCES PortabilityTest.cpp
TEST producer_consumer_queue_test SLOW
SOURCES ProducerConsumerQueueTest.cpp
TEST scope_guard_test SOURCES ScopeGuardTest.cpp
# Heavily dependent on drand and srand48
#TEST shared_mutex_test SOURCES SharedMutexTest.cpp
- TEST shell_test SOURCES ShellTest.cpp
TEST singleton_test SOURCES SingletonTest.cpp
TEST singleton_test_global SOURCES SingletonTestGlobal.cpp
TEST singleton_thread_local_test SOURCES SingletonThreadLocalTest.cpp
TEST singletonvault_c_test SOURCES SingletonVaultCTest.cpp
TEST small_vector_test SOURCES small_vector_test.cpp
TEST sorted_vector_types_test SOURCES sorted_vector_test.cpp
- TEST sparse_byte_set_test SOURCES SparseByteSetTest.cpp
- TEST spooky_hash_v1_test SOURCES SpookyHashV1Test.cpp
- TEST spooky_hash_v2_test SOURCES SpookyHashV2Test.cpp
TEST string_test SOURCES StringTest.cpp
- #TEST subprocess_test SOURCES SubprocessTest.cpp
TEST synchronized_test SOURCES SynchronizedTest.cpp
- TEST thread_cached_arena_test SOURCES ThreadCachedArenaTest.cpp
TEST thread_cached_int_test SOURCES ThreadCachedIntTest.cpp
- TEST thread_id_test SOURCES ThreadIdTest.cpp
TEST thread_local_test SOURCES ThreadLocalTest.cpp
- TEST thread_name_test SOURCES ThreadNameTest.cpp
TEST timeout_queue_test SOURCES TimeoutQueueTest.cpp
TEST token_bucket_test SOURCES TokenBucketTest.cpp
TEST traits_test SOURCES TraitsTest.cpp