5 # Note that the order of SUBDIRS matters.
6 # Many subdirectories depend on libfollytest from the test directory,
7 # so it must appear before other directories
8 SUBDIRS = . test experimental $(MAYBE_INIT) chrono/test io/test stats/test
10 ACLOCAL_AMFLAGS = -I m4
15 noinst_PROGRAMS = generate_fingerprint_tables
16 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
17 generate_fingerprint_tables_LDADD = libfollybase.la
19 noinst_LTLIBRARIES = \
20 libfollybasesse42.la \
27 follyincludedir = $(includedir)/folly
29 nobase_follyinclude_HEADERS = \
32 AtomicHashArray-inl.h \
35 AtomicIntrusiveLinkedList.h \
37 AtomicUnorderedMap.h \
43 ClockGettimeWrappers.h \
44 ConcurrentSkipList.h \
45 ConcurrentSkipList-inl.h \
50 compression/Compression.h \
53 concurrency/CacheLocality.h \
54 concurrency/ConcurrentHashMap.h \
55 concurrency/CoreCachedSharedPtr.h \
56 concurrency/detail/ConcurrentHashMap-detail.h \
57 concurrency/UnboundedQueue.h \
60 container/detail/BitIteratorDetail.h \
61 container/Iterator.h \
62 container/Enumerate.h \
63 container/EvictingCacheMap.h \
65 container/Foreach-inl.h \
66 container/SparseByteSet.h \
69 detail/AtomicHashUtils.h \
70 detail/AtomicUnorderedMapUtils.h \
71 detail/DiscriminatedPtrDetail.h \
72 detail/FileUtilDetail.h \
73 detail/FingerprintPolynomial.h \
75 detail/GroupVarintDetail.h \
77 detail/IPAddressSource.h \
78 detail/MemoryIdler.h \
79 detail/MPMCPipelineDetail.h \
81 detail/RangeCommon.h \
83 detail/SlowFingerprint.h \
84 detail/SocketFastOpen.h \
85 detail/StaticSingletonManager.h \
86 detail/ThreadLocalDetail.h \
88 detail/TurnSequencer.h \
90 executors/CPUThreadPoolExecutor.h \
92 executors/DrivableExecutor.h \
93 executors/FiberIOExecutor.h \
94 executors/FutureExecutor.h \
95 executors/GlobalExecutor.h \
96 executors/GlobalThreadPoolList.h \
97 executors/InlineExecutor.h \
98 executors/IOExecutor.h \
99 executors/IOObjectCache.h \
100 executors/IOThreadPoolExecutor.h \
101 executors/NotificationQueueExecutor.h \
102 executors/ScheduledExecutor.h \
103 executors/SerialExecutor.h \
104 executors/ThreadPoolExecutor.h \
105 executors/ThreadedExecutor.h \
106 executors/TimedDrivableExecutor.h \
107 executors/task_queue/BlockingQueue.h \
108 executors/task_queue/LifoSemMPMCQueue.h \
109 executors/task_queue/PriorityLifoSemMPMCQueue.h \
110 executors/task_queue/UnboundedBlockingQueue.h \
111 executors/thread_factory/NamedThreadFactory.h \
112 executors/thread_factory/PriorityThreadFactory.h \
113 executors/thread_factory/ThreadFactory.h \
114 functional/ApplyTuple.h \
123 ExceptionWrapper-inl.h \
126 concurrency/AtomicSharedPtr.h \
127 concurrency/detail/AtomicSharedPtr-detail.h \
128 experimental/AutoTimer.h \
129 experimental/ThreadedRepeatingFunctionRunner.h \
130 experimental/Bits.h \
131 experimental/BitVectorCoding.h \
132 experimental/CodingDetail.h \
133 experimental/DynamicParser.h \
134 experimental/DynamicParser-inl.h \
135 experimental/ExecutionObserver.h \
136 experimental/EliasFanoCoding.h \
137 experimental/EnvUtil.h \
138 experimental/EventCount.h \
139 experimental/Instructions.h \
140 experimental/bser/Bser.h \
141 experimental/exception_tracer/ExceptionAbi.h \
142 experimental/exception_tracer/ExceptionCounterLib.h \
143 experimental/exception_tracer/ExceptionTracer.h \
144 experimental/exception_tracer/ExceptionTracerLib.h \
145 experimental/exception_tracer/StackTrace.h \
146 experimental/FunctionScheduler.h \
147 experimental/FutureDAG.h \
148 experimental/hazptr/debug.h \
149 experimental/hazptr/hazptr.h \
150 experimental/hazptr/hazptr-impl.h \
151 experimental/hazptr/memory_resource.h \
152 experimental/io/FsUtil.h \
153 experimental/JemallocNodumpAllocator.h \
154 experimental/JSONSchema.h \
155 experimental/LockFreeRingBuffer.h \
156 experimental/logging/AsyncFileWriter.h \
157 experimental/logging/FileHandlerFactory.h \
158 experimental/logging/FileWriterFactory.h \
159 experimental/logging/GlogStyleFormatter.h \
160 experimental/logging/ImmediateFileWriter.h \
161 experimental/logging/Init.h \
162 experimental/logging/LogCategory.h \
163 experimental/logging/LogCategoryConfig.h \
164 experimental/logging/LogConfig.h \
165 experimental/logging/LogConfigParser.h \
166 experimental/logging/LogFormatter.h \
167 experimental/logging/Logger.h \
168 experimental/logging/LoggerDB.h \
169 experimental/logging/LogHandler.h \
170 experimental/logging/LogHandlerFactory.h \
171 experimental/logging/LogHandlerConfig.h \
172 experimental/logging/LogLevel.h \
173 experimental/logging/LogMessage.h \
174 experimental/logging/LogName.h \
175 experimental/logging/LogStream.h \
176 experimental/logging/LogStreamProcessor.h \
177 experimental/logging/LogWriter.h \
178 experimental/logging/printf.h \
179 experimental/logging/RateLimiter.h \
180 experimental/logging/StandardLogHandler.h \
181 experimental/logging/StandardLogHandlerFactory.h \
182 experimental/logging/StreamHandlerFactory.h \
183 experimental/logging/xlog.h \
184 experimental/NestedCommandLineApp.h \
185 experimental/observer/detail/Core.h \
186 experimental/observer/detail/GraphCycleDetector.h \
187 experimental/observer/detail/ObserverManager.h \
188 experimental/observer/detail/Observer-pre.h \
189 experimental/observer/Observable.h \
190 experimental/observer/Observable-inl.h \
191 experimental/observer/Observer.h \
192 experimental/observer/Observer-inl.h \
193 experimental/observer/SimpleObservable.h \
194 experimental/observer/SimpleObservable-inl.h \
195 experimental/ProgramOptions.h \
196 experimental/ReadMostlySharedPtr.h \
197 experimental/Select64.h \
198 experimental/StampedPtr.h \
199 experimental/StringKeyedCommon.h \
200 experimental/StringKeyedMap.h \
201 experimental/StringKeyedSet.h \
202 experimental/StringKeyedUnorderedMap.h \
203 experimental/StringKeyedUnorderedSet.h \
204 experimental/TestUtil.h \
205 experimental/TLRefCount.h \
206 experimental/TupleOps.h \
218 functional/Invoke.h \
219 functional/Partial.h \
221 futures/Future-pre.h \
224 futures/Future-inl.h \
225 futures/FutureException.h \
226 futures/FutureSplitter.h \
227 futures/Promise-inl.h \
229 futures/SharedPromise.h \
230 futures/SharedPromise-inl.h \
231 futures/ThreadWheelTimekeeper.h \
232 futures/Timekeeper.h \
233 futures/detail/Core.h \
234 futures/detail/FSM.h \
235 futures/detail/Types.h \
236 futures/test/TestExecutor.h \
238 hash/detail/ChecksumDetail.h \
240 hash/SpookyHashV1.h \
241 hash/SpookyHashV2.h \
253 gen/ParallelMap-inl.h \
261 IPAddressException.h \
273 io/ShutdownSocketSet.h \
274 io/async/AsyncPipe.h \
275 io/async/AsyncTimeout.h \
276 io/async/AsyncTransport.h \
277 io/async/AsyncUDPServerSocket.h \
278 io/async/AsyncUDPSocket.h \
279 io/async/AsyncServerSocket.h \
280 io/async/AsyncSignalHandler.h \
281 io/async/AsyncSocket.h \
282 io/async/AsyncSocketBase.h \
283 io/async/AsyncSSLSocket.h \
284 io/async/AsyncSocketException.h \
285 io/async/DecoratedAsyncTransportWrapper.h \
286 io/async/DelayedDestructionBase.h \
287 io/async/DelayedDestruction.h \
288 io/async/DestructorCheck.h \
289 io/async/EventBase.h \
290 io/async/EventBaseLocal.h \
291 io/async/EventBaseManager.h \
292 io/async/EventBaseThread.h \
293 io/async/EventFDWrapper.h \
294 io/async/EventHandler.h \
295 io/async/EventUtil.h \
296 io/async/NotificationQueue.h \
297 io/async/HHWheelTimer.h \
298 io/async/ssl/OpenSSLUtils.h \
299 io/async/ssl/SSLErrors.h \
300 io/async/ssl/TLSDefinitions.h \
302 io/async/SSLContext.h \
303 io/async/SSLOptions.h \
304 io/async/ScopedEventBaseThread.h \
305 io/async/TimeoutManager.h \
306 io/async/VirtualEventBase.h \
307 io/async/WriteChainAsyncTransportWrapper.h \
308 io/async/test/AsyncSSLSocketTest.h \
309 io/async/test/AsyncSocketTest2.h \
310 io/async/test/BlockingSocket.h \
311 io/async/test/MockAsyncSocket.h \
312 io/async/test/MockAsyncServerSocket.h \
313 io/async/test/MockAsyncSSLSocket.h \
314 io/async/test/MockAsyncTransport.h \
315 io/async/test/MockAsyncUDPSocket.h \
316 io/async/test/MockTimeoutManager.h \
317 io/async/test/ScopedBoundPort.h \
318 io/async/test/SocketPair.h \
319 io/async/test/TestSSLServer.h \
320 io/async/test/TimeUtil.h \
321 io/async/test/UndelayedDestruction.h \
322 io/async/test/Util.h \
329 lang/RValueReferenceWrapper.h \
342 memory/MallctlHelper.h \
344 memory/ThreadCachedArena.h \
345 memory/UninitializedMemoryHacks.h \
346 memory/detail/MallocImpl.h \
363 portability/Atomic.h \
364 portability/BitsFunctexcept.h \
365 portability/Builtins.h \
366 portability/Config.h \
367 portability/Constexpr.h \
368 portability/Dirent.h \
369 portability/Event.h \
370 portability/Fcntl.h \
371 portability/GFlags.h \
372 portability/GMock.h \
373 portability/GTest.h \
374 portability/IOVec.h \
375 portability/Libgen.h \
376 portability/Malloc.h \
378 portability/Memory.h \
379 portability/OpenSSL.h \
380 portability/PThread.h \
381 portability/Semaphore.h \
382 portability/Sockets.h \
383 portability/Stdio.h \
384 portability/Stdlib.h \
385 portability/String.h \
386 portability/Syslog.h \
387 portability/SysFile.h \
388 portability/SysMembarrier.h \
389 portability/SysMman.h \
390 portability/SysResource.h \
391 portability/SysStat.h \
392 portability/SysSyscall.h \
393 portability/SysTime.h \
394 portability/SysTypes.h \
395 portability/SysUio.h \
397 portability/TypeTraits.h \
398 portability/Unistd.h \
399 portability/Windows.h \
401 PriorityMPMCQueue.h \
402 ProducerConsumerQueue.h \
411 SingletonThreadLocal.h \
415 sorted_vector_types.h \
418 ssl/OpenSSLCertUtils.h \
420 ssl/OpenSSLPtrTypes.h \
421 ssl/OpenSSLVersionFinder.h \
423 ssl/OpenSSLLockTypes.h \
424 ssl/detail/OpenSSLThreading.h \
425 ssl/detail/SSLSessionImpl.h \
426 stats/detail/Bucket.h \
427 stats/BucketedTimeSeries-defs.h \
428 stats/BucketedTimeSeries.h \
429 stats/Histogram-defs.h \
431 stats/MultiLevelTimeSeries-defs.h \
432 stats/MultiLevelTimeSeries.h \
433 stats/TimeseriesHistogram-defs.h \
434 stats/TimeseriesHistogram.h \
435 synchronization/AsymmetricMemoryBarrier.h \
436 synchronization/AtomicStruct.h \
437 synchronization/Baton.h \
438 synchronization/CallOnce.h \
439 synchronization/LifoSem.h \
440 synchronization/ParkingLot.h \
441 synchronization/RWSpinLock.h \
442 synchronization/SaturatingSemaphore.h \
443 synchronization/Tearable.h \
444 synchronization/WaitOptions.h \
445 synchronization/detail/AtomicUtils.h \
446 synchronization/detail/Sleeper.h \
447 system/MemoryMapping.h \
450 system/ThreadName.h \
451 system/VersionCheck.h \
458 test/FBStringTestBenchmarks.cpp.h \
459 test/FBVectorTestBenchmarks.cpp.h \
460 test/function_benchmark/benchmark_impl.h \
461 test/function_benchmark/test_functions.h \
462 test/SynchronizedTestLib.h \
463 test/SynchronizedTestLib-inl.h \
469 tracing/StaticTracepoint.h \
470 tracing/ScopedTraceSection.h \
476 UncaughtExceptions.h \
483 FormatTables.cpp: build/generate_format_tables.py
484 $(PYTHON) build/generate_format_tables.py
485 CLEANFILES += FormatTables.cpp
487 EscapeTables.cpp: build/generate_escape_tables.py
488 $(PYTHON) build/generate_escape_tables.py
489 CLEANFILES += EscapeTables.cpp
491 GroupVarintTables.cpp: build/generate_varint_tables.py
492 $(PYTHON) build/generate_varint_tables.py
493 CLEANFILES += GroupVarintTables.cpp
495 libfollybasesse42_la_SOURCES = \
496 detail/RangeSse42.cpp \
497 hash/detail/ChecksumDetail.cpp \
498 hash/detail/Crc32cDetail.cpp
500 libfollybase_la_SOURCES = \
503 detail/RangeCommon.cpp \
508 memory/MallctlHelper.cpp \
509 portability/BitsFunctexcept.cpp \
513 libfolly_la_SOURCES = \
514 ClockGettimeWrappers.cpp \
515 compression/Compression.cpp \
516 compression/Zlib.cpp \
517 concurrency/CacheLocality.cpp \
520 detail/IPAddress.cpp \
521 detail/StaticSingletonManager.cpp \
522 detail/ThreadLocalDetail.cpp \
524 ExceptionWrapper.cpp \
529 FingerprintTables.cpp \
530 futures/Barrier.cpp \
532 futures/FutureException.cpp \
533 futures/ThreadWheelTimekeeper.cpp \
534 futures/test/TestExecutor.cpp \
535 executors/CPUThreadPoolExecutor.cpp \
536 executors/Codel.cpp \
537 executors/GlobalExecutor.cpp \
538 executors/GlobalThreadPoolList.cpp \
539 executors/IOThreadPoolExecutor.cpp \
540 executors/InlineExecutor.cpp \
541 executors/ManualExecutor.cpp \
542 executors/SerialExecutor.cpp \
543 executors/ThreadPoolExecutor.cpp \
544 executors/ThreadedExecutor.cpp \
545 executors/TimedDrivableExecutor.cpp \
546 executors/QueuedImmediateExecutor.cpp \
547 experimental/hazptr/hazptr.cpp \
548 experimental/hazptr/memory_resource.cpp \
550 GroupVarintTables.cpp \
552 hash/SpookyHashV1.cpp \
553 hash/SpookyHashV2.cpp \
562 io/ShutdownSocketSet.cpp \
563 io/async/AsyncPipe.cpp \
564 io/async/AsyncTimeout.cpp \
565 io/async/AsyncUDPSocket.cpp \
566 io/async/AsyncServerSocket.cpp \
567 io/async/AsyncSignalHandler.cpp \
568 io/async/AsyncSocket.cpp \
569 io/async/AsyncSocketException.cpp \
570 io/async/AsyncSSLSocket.cpp \
571 io/async/EventBase.cpp \
572 io/async/EventBaseLocal.cpp \
573 io/async/EventBaseManager.cpp \
574 io/async/EventBaseThread.cpp \
575 io/async/EventHandler.cpp \
576 io/async/Request.cpp \
577 io/async/SSLContext.cpp \
578 io/async/SSLOptions.cpp \
579 io/async/ScopedEventBaseThread.cpp \
580 io/async/VirtualEventBase.cpp \
581 io/async/HHWheelTimer.cpp \
582 io/async/TimeoutManager.cpp \
583 io/async/test/ScopedBoundPort.cpp \
584 io/async/test/SocketPair.cpp \
585 io/async/test/TimeUtil.cpp \
586 io/async/ssl/OpenSSLUtils.cpp \
587 io/async/ssl/SSLErrors.cpp \
591 lang/SafeAssert.cpp \
592 detail/MemoryIdler.cpp \
593 detail/SocketFastOpen.cpp \
595 memory/ThreadCachedArena.cpp \
596 portability/Dirent.cpp \
597 portability/Fcntl.cpp \
598 portability/Libgen.cpp \
599 portability/Malloc.cpp \
600 portability/OpenSSL.cpp \
601 portability/PThread.cpp \
602 portability/Sockets.cpp \
603 portability/Stdio.cpp \
604 portability/Stdlib.cpp \
605 portability/String.cpp \
606 portability/SysFile.cpp \
607 portability/SysMembarrier.cpp \
608 portability/SysMman.cpp \
609 portability/SysResource.cpp \
610 portability/SysStat.cpp \
611 portability/SysTime.cpp \
612 portability/SysUio.cpp \
613 portability/Time.cpp \
614 portability/Unistd.cpp \
623 ssl/OpenSSLCertUtils.cpp \
624 ssl/OpenSSLHash.cpp \
625 ssl/detail/OpenSSLThreading.cpp \
626 ssl/detail/SSLSessionImpl.cpp \
627 stats/BucketedTimeSeries.cpp \
628 stats/Histogram.cpp \
629 stats/MultiLevelTimeSeries.cpp \
630 stats/TimeseriesHistogram.cpp \
631 synchronization/AsymmetricMemoryBarrier.cpp \
632 synchronization/LifoSem.cpp \
633 synchronization/ParkingLot.cpp \
634 synchronization/WaitOptions.cpp \
635 system/MemoryMapping.cpp \
637 system/ThreadName.cpp \
638 system/VersionCheck.cpp \
643 experimental/ThreadedRepeatingFunctionRunner.cpp \
644 experimental/bser/Dump.cpp \
645 experimental/bser/Load.cpp \
646 experimental/DynamicParser.cpp \
647 experimental/EnvUtil.cpp \
648 experimental/FunctionScheduler.cpp \
649 experimental/io/FsUtil.cpp \
650 experimental/JemallocNodumpAllocator.cpp \
651 experimental/JSONSchema.cpp \
652 experimental/NestedCommandLineApp.cpp \
653 experimental/observer/detail/Core.cpp \
654 experimental/observer/detail/ObserverManager.cpp \
655 experimental/ProgramOptions.cpp \
656 experimental/Select64.cpp \
657 experimental/TestUtil.cpp
660 nobase_follyinclude_HEADERS += \
661 experimental/io/HugePages.h
662 libfolly_la_SOURCES += \
663 experimental/io/HugePages.cpp
666 if !HAVE_WEAK_SYMBOLS
667 libfollybase_la_SOURCES += memory/detail/MallocImpl.cpp
670 if HAVE_BOOST_CONTEXT
671 nobase_follyinclude_HEADERS += \
673 fibers/AddTasks-inl.h \
674 fibers/AtomicBatchDispatcher.h \
675 fibers/AtomicBatchDispatcher-inl.h \
678 fibers/BatchDispatcher.h \
679 fibers/BoostContextCompatibility.h \
680 fibers/detail/AtomicBatchDispatcher.h \
681 fibers/EventBaseLoopController.h \
682 fibers/EventBaseLoopController-inl.h \
685 fibers/FiberManager.h \
686 fibers/FiberManager-inl.h \
687 fibers/FiberManagerInternal.h \
688 fibers/FiberManagerInternal-inl.h \
689 fibers/FiberManagerMap.h \
691 fibers/ForEach-inl.h \
692 fibers/GenericBaton.h \
693 fibers/GuardPageAllocator.h \
694 fibers/LoopController.h \
696 fibers/Promise-inl.h \
698 fibers/SimpleLoopController.h \
699 fibers/TimedMutex.h \
700 fibers/TimedMutex-inl.h \
701 fibers/TimeoutController.h \
706 libfolly_la_SOURCES += \
708 fibers/detail/AtomicBatchDispatcher.cpp \
710 fibers/FiberManager.cpp \
711 fibers/FiberManagerMap.cpp \
712 fibers/GuardPageAllocator.cpp \
713 fibers/Semaphore.cpp \
714 fibers/TimeoutController.cpp
718 nobase_follyinclude_HEADERS += \
719 experimental/symbolizer/Elf.h \
720 experimental/symbolizer/Elf-inl.h \
721 experimental/symbolizer/ElfCache.h \
722 experimental/symbolizer/Dwarf.h \
723 experimental/symbolizer/LineReader.h \
724 experimental/symbolizer/SignalHandler.h \
725 experimental/symbolizer/StackTrace.h \
726 experimental/symbolizer/Symbolizer.h
728 libfolly_la_SOURCES += \
729 experimental/symbolizer/Elf.cpp \
730 experimental/symbolizer/ElfCache.cpp \
731 experimental/symbolizer/Dwarf.cpp \
732 experimental/symbolizer/LineReader.cpp \
733 experimental/symbolizer/SignalHandler.cpp \
734 experimental/symbolizer/StackTrace.cpp \
735 experimental/symbolizer/Symbolizer.cpp
738 if HAVE_VARIABLE_TEMPLATES
739 libfolly_la_SOURCES += \
743 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
744 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
746 libfollybase_la_LIBADD = libfollybasesse42.la
747 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
749 libfolly_la_LIBADD = libfollybase.la
750 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
753 libfolly_la_LDFLAGS += -lunwind
756 FingerprintTables.cpp: generate_fingerprint_tables
757 ./generate_fingerprint_tables
758 CLEANFILES += FingerprintTables.cpp
760 libfollybenchmark_la_SOURCES = Benchmark.cpp
761 libfollybenchmark_la_LIBADD = libfolly.la
762 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
764 # install pkg-config metadata file
765 pkgconfigdir = $(libdir)/pkgconfig
766 nodist_pkgconfig_DATA = libfolly.pc