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 = \
33 AtomicHashArray-inl.h \
36 AtomicIntrusiveLinkedList.h \
39 AtomicUnorderedMap.h \
46 ClockGettimeWrappers.h \
47 ConcurrentSkipList.h \
48 ConcurrentSkipList-inl.h \
53 compression/Compression.h \
56 concurrency/CacheLocality.h \
57 concurrency/ConcurrentHashMap.h \
58 concurrency/CoreCachedSharedPtr.h \
59 concurrency/detail/ConcurrentHashMap-detail.h \
60 concurrency/UnboundedQueue.h \
63 container/Iterator.h \
64 container/Enumerate.h \
65 container/EvictingCacheMap.h \
67 container/Foreach-inl.h \
68 container/SparseByteSet.h \
71 detail/AtomicHashUtils.h \
72 detail/AtomicUnorderedMapUtils.h \
73 detail/BitIteratorDetail.h \
74 detail/DiscriminatedPtrDetail.h \
75 detail/FileUtilDetail.h \
76 detail/FingerprintPolynomial.h \
78 detail/GroupVarintDetail.h \
80 detail/IPAddressSource.h \
81 detail/MemoryIdler.h \
82 detail/MPMCPipelineDetail.h \
84 detail/RangeCommon.h \
87 detail/SlowFingerprint.h \
88 detail/SocketFastOpen.h \
89 detail/StaticSingletonManager.h \
90 detail/ThreadLocalDetail.h \
92 detail/TurnSequencer.h \
93 detail/UncaughtExceptionCounter.h \
95 executors/CPUThreadPoolExecutor.h \
97 executors/DrivableExecutor.h \
98 executors/FiberIOExecutor.h \
99 executors/FutureExecutor.h \
100 executors/GlobalExecutor.h \
101 executors/GlobalThreadPoolList.h \
102 executors/InlineExecutor.h \
103 executors/IOExecutor.h \
104 executors/IOObjectCache.h \
105 executors/IOThreadPoolExecutor.h \
106 executors/NotificationQueueExecutor.h \
107 executors/ScheduledExecutor.h \
108 executors/SerialExecutor.h \
109 executors/ThreadPoolExecutor.h \
110 executors/ThreadedExecutor.h \
111 executors/task_queue/BlockingQueue.h \
112 executors/task_queue/LifoSemMPMCQueue.h \
113 executors/task_queue/PriorityLifoSemMPMCQueue.h \
114 executors/task_queue/UnboundedBlockingQueue.h \
115 executors/thread_factory/NamedThreadFactory.h \
116 executors/thread_factory/PriorityThreadFactory.h \
117 executors/thread_factory/ThreadFactory.h \
118 functional/ApplyTuple.h \
127 ExceptionWrapper-inl.h \
130 concurrency/AtomicSharedPtr.h \
131 concurrency/detail/AtomicSharedPtr-detail.h \
132 experimental/AutoTimer.h \
133 experimental/ThreadedRepeatingFunctionRunner.h \
134 experimental/Bits.h \
135 experimental/BitVectorCoding.h \
136 experimental/CodingDetail.h \
137 experimental/DynamicParser.h \
138 experimental/DynamicParser-inl.h \
139 experimental/ExecutionObserver.h \
140 experimental/EliasFanoCoding.h \
141 experimental/EnvUtil.h \
142 experimental/EventCount.h \
143 experimental/Instructions.h \
144 experimental/bser/Bser.h \
145 experimental/exception_tracer/ExceptionAbi.h \
146 experimental/exception_tracer/ExceptionCounterLib.h \
147 experimental/exception_tracer/ExceptionTracer.h \
148 experimental/exception_tracer/ExceptionTracerLib.h \
149 experimental/exception_tracer/StackTrace.h \
150 experimental/FunctionScheduler.h \
151 experimental/FutureDAG.h \
152 experimental/hazptr/debug.h \
153 experimental/hazptr/hazptr.h \
154 experimental/hazptr/hazptr-impl.h \
155 experimental/hazptr/memory_resource.h \
156 experimental/io/FsUtil.h \
157 experimental/JemallocNodumpAllocator.h \
158 experimental/JSONSchema.h \
159 experimental/LockFreeRingBuffer.h \
160 experimental/logging/AsyncFileWriter.h \
161 experimental/logging/FileHandlerFactory.h \
162 experimental/logging/GlogStyleFormatter.h \
163 experimental/logging/ImmediateFileWriter.h \
164 experimental/logging/Init.h \
165 experimental/logging/LogCategory.h \
166 experimental/logging/LogCategoryConfig.h \
167 experimental/logging/LogConfig.h \
168 experimental/logging/LogConfigParser.h \
169 experimental/logging/LogFormatter.h \
170 experimental/logging/Logger.h \
171 experimental/logging/LoggerDB.h \
172 experimental/logging/LogHandler.h \
173 experimental/logging/LogHandlerFactory.h \
174 experimental/logging/LogHandlerConfig.h \
175 experimental/logging/LogLevel.h \
176 experimental/logging/LogMessage.h \
177 experimental/logging/LogName.h \
178 experimental/logging/LogStream.h \
179 experimental/logging/LogStreamProcessor.h \
180 experimental/logging/LogWriter.h \
181 experimental/logging/printf.h \
182 experimental/logging/RateLimiter.h \
183 experimental/logging/StandardLogHandler.h \
184 experimental/logging/xlog.h \
185 experimental/NestedCommandLineApp.h \
186 experimental/observer/detail/Core.h \
187 experimental/observer/detail/GraphCycleDetector.h \
188 experimental/observer/detail/ObserverManager.h \
189 experimental/observer/detail/Observer-pre.h \
190 experimental/observer/Observable.h \
191 experimental/observer/Observable-inl.h \
192 experimental/observer/Observer.h \
193 experimental/observer/Observer-inl.h \
194 experimental/observer/SimpleObservable.h \
195 experimental/observer/SimpleObservable-inl.h \
196 experimental/ProgramOptions.h \
197 experimental/ReadMostlySharedPtr.h \
198 experimental/Select64.h \
199 experimental/StampedPtr.h \
200 experimental/StringKeyedCommon.h \
201 experimental/StringKeyedMap.h \
202 experimental/StringKeyedSet.h \
203 experimental/StringKeyedUnorderedMap.h \
204 experimental/StringKeyedUnorderedSet.h \
205 experimental/TestUtil.h \
206 experimental/TLRefCount.h \
207 experimental/TupleOps.h \
219 functional/Invoke.h \
220 functional/Partial.h \
222 futures/Future-pre.h \
225 futures/Future-inl.h \
226 futures/FutureException.h \
227 futures/FutureSplitter.h \
228 futures/Promise-inl.h \
230 futures/SharedPromise.h \
231 futures/SharedPromise-inl.h \
232 futures/ThreadWheelTimekeeper.h \
233 futures/Timekeeper.h \
234 futures/detail/Core.h \
235 futures/detail/FSM.h \
236 futures/detail/Types.h \
237 futures/test/TestExecutor.h \
239 hash/detail/ChecksumDetail.h \
241 hash/SpookyHashV1.h \
242 hash/SpookyHashV2.h \
254 gen/ParallelMap-inl.h \
262 IPAddressException.h \
274 io/ShutdownSocketSet.h \
275 io/async/AsyncPipe.h \
276 io/async/AsyncTimeout.h \
277 io/async/AsyncTransport.h \
278 io/async/AsyncUDPServerSocket.h \
279 io/async/AsyncUDPSocket.h \
280 io/async/AsyncServerSocket.h \
281 io/async/AsyncSignalHandler.h \
282 io/async/AsyncSocket.h \
283 io/async/AsyncSocketBase.h \
284 io/async/AsyncSSLSocket.h \
285 io/async/AsyncSocketException.h \
286 io/async/DecoratedAsyncTransportWrapper.h \
287 io/async/DelayedDestructionBase.h \
288 io/async/DelayedDestruction.h \
289 io/async/DestructorCheck.h \
290 io/async/EventBase.h \
291 io/async/EventBaseLocal.h \
292 io/async/EventBaseManager.h \
293 io/async/EventBaseThread.h \
294 io/async/EventFDWrapper.h \
295 io/async/EventHandler.h \
296 io/async/EventUtil.h \
297 io/async/NotificationQueue.h \
298 io/async/HHWheelTimer.h \
299 io/async/ssl/OpenSSLUtils.h \
300 io/async/ssl/SSLErrors.h \
301 io/async/ssl/TLSDefinitions.h \
303 io/async/SSLContext.h \
304 io/async/SSLOptions.h \
305 io/async/ScopedEventBaseThread.h \
306 io/async/TimeoutManager.h \
307 io/async/VirtualEventBase.h \
308 io/async/WriteChainAsyncTransportWrapper.h \
309 io/async/test/AsyncSSLSocketTest.h \
310 io/async/test/AsyncSocketTest2.h \
311 io/async/test/BlockingSocket.h \
312 io/async/test/MockAsyncSocket.h \
313 io/async/test/MockAsyncServerSocket.h \
314 io/async/test/MockAsyncSSLSocket.h \
315 io/async/test/MockAsyncTransport.h \
316 io/async/test/MockAsyncUDPSocket.h \
317 io/async/test/MockTimeoutManager.h \
318 io/async/test/ScopedBoundPort.h \
319 io/async/test/SocketPair.h \
320 io/async/test/TestSSLServer.h \
321 io/async/test/TimeUtil.h \
322 io/async/test/UndelayedDestruction.h \
323 io/async/test/Util.h \
328 lang/RValueReferenceWrapper.h \
341 memory/MallctlHelper.h \
343 memory/ThreadCachedArena.h \
344 memory/UninitializedMemoryHacks.h \
345 memory/detail/MallocImpl.h \
362 portability/Atomic.h \
363 portability/BitsFunctexcept.h \
364 portability/Builtins.h \
365 portability/Config.h \
366 portability/Constexpr.h \
367 portability/Dirent.h \
368 portability/Event.h \
369 portability/Fcntl.h \
370 portability/GFlags.h \
371 portability/GMock.h \
372 portability/GTest.h \
373 portability/IOVec.h \
374 portability/Libgen.h \
375 portability/Malloc.h \
377 portability/Memory.h \
378 portability/OpenSSL.h \
379 portability/PThread.h \
380 portability/Semaphore.h \
381 portability/Sockets.h \
382 portability/Stdio.h \
383 portability/Stdlib.h \
384 portability/String.h \
385 portability/Syslog.h \
386 portability/SysFile.h \
387 portability/SysMembarrier.h \
388 portability/SysMman.h \
389 portability/SysResource.h \
390 portability/SysStat.h \
391 portability/SysSyscall.h \
392 portability/SysTime.h \
393 portability/SysTypes.h \
394 portability/SysUio.h \
396 portability/TypeTraits.h \
397 portability/Unistd.h \
398 portability/Windows.h \
400 PriorityMPMCQueue.h \
401 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/CallOnce.h \
437 synchronization/LifoSem.h \
438 synchronization/detail/AtomicUtils.h \
439 system/MemoryMapping.h \
442 system/ThreadName.h \
443 system/VersionCheck.h \
450 test/FBStringTestBenchmarks.cpp.h \
451 test/FBVectorTestBenchmarks.cpp.h \
452 test/function_benchmark/benchmark_impl.h \
453 test/function_benchmark/test_functions.h \
454 test/SynchronizedTestLib.h \
455 test/SynchronizedTestLib-inl.h \
461 tracing/StaticTracepoint.h \
462 tracing/ScopedTraceSection.h \
468 UncaughtExceptions.h \
475 FormatTables.cpp: build/generate_format_tables.py
476 $(PYTHON) build/generate_format_tables.py
477 CLEANFILES += FormatTables.cpp
479 EscapeTables.cpp: build/generate_escape_tables.py
480 $(PYTHON) build/generate_escape_tables.py
481 CLEANFILES += EscapeTables.cpp
483 GroupVarintTables.cpp: build/generate_varint_tables.py
484 $(PYTHON) build/generate_varint_tables.py
485 CLEANFILES += GroupVarintTables.cpp
487 libfollybasesse42_la_SOURCES = \
488 detail/RangeSse42.cpp \
489 hash/detail/ChecksumDetail.cpp \
490 hash/detail/Crc32cDetail.cpp
492 libfollybase_la_SOURCES = \
495 detail/RangeCommon.cpp \
500 memory/MallctlHelper.cpp \
501 portability/BitsFunctexcept.cpp \
505 libfolly_la_SOURCES = \
506 ClockGettimeWrappers.cpp \
507 compression/Compression.cpp \
508 compression/Zlib.cpp \
509 concurrency/CacheLocality.cpp \
512 detail/IPAddress.cpp \
513 detail/StaticSingletonManager.cpp \
514 detail/ThreadLocalDetail.cpp \
516 ExceptionWrapper.cpp \
521 FingerprintTables.cpp \
522 futures/Barrier.cpp \
524 futures/FutureException.cpp \
525 futures/ThreadWheelTimekeeper.cpp \
526 futures/test/TestExecutor.cpp \
527 executors/CPUThreadPoolExecutor.cpp \
528 executors/Codel.cpp \
529 executors/GlobalExecutor.cpp \
530 executors/GlobalThreadPoolList.cpp \
531 executors/IOThreadPoolExecutor.cpp \
532 executors/InlineExecutor.cpp \
533 executors/ManualExecutor.cpp \
534 executors/SerialExecutor.cpp \
535 executors/ThreadPoolExecutor.cpp \
536 executors/ThreadedExecutor.cpp \
537 executors/QueuedImmediateExecutor.cpp \
538 experimental/hazptr/hazptr.cpp \
539 experimental/hazptr/memory_resource.cpp \
541 GroupVarintTables.cpp \
543 hash/SpookyHashV1.cpp \
544 hash/SpookyHashV2.cpp \
553 io/ShutdownSocketSet.cpp \
554 io/async/AsyncPipe.cpp \
555 io/async/AsyncTimeout.cpp \
556 io/async/AsyncUDPSocket.cpp \
557 io/async/AsyncServerSocket.cpp \
558 io/async/AsyncSignalHandler.cpp \
559 io/async/AsyncSocket.cpp \
560 io/async/AsyncSocketException.cpp \
561 io/async/AsyncSSLSocket.cpp \
562 io/async/EventBase.cpp \
563 io/async/EventBaseLocal.cpp \
564 io/async/EventBaseManager.cpp \
565 io/async/EventBaseThread.cpp \
566 io/async/EventHandler.cpp \
567 io/async/Request.cpp \
568 io/async/SSLContext.cpp \
569 io/async/SSLOptions.cpp \
570 io/async/ScopedEventBaseThread.cpp \
571 io/async/VirtualEventBase.cpp \
572 io/async/HHWheelTimer.cpp \
573 io/async/TimeoutManager.cpp \
574 io/async/test/ScopedBoundPort.cpp \
575 io/async/test/SocketPair.cpp \
576 io/async/test/TimeUtil.cpp \
577 io/async/ssl/OpenSSLUtils.cpp \
578 io/async/ssl/SSLErrors.cpp \
582 lang/SafeAssert.cpp \
583 detail/MemoryIdler.cpp \
584 detail/SocketFastOpen.cpp \
586 memory/ThreadCachedArena.cpp \
587 portability/Dirent.cpp \
588 portability/Fcntl.cpp \
589 portability/Libgen.cpp \
590 portability/Malloc.cpp \
591 portability/Memory.cpp \
592 portability/OpenSSL.cpp \
593 portability/PThread.cpp \
594 portability/Sockets.cpp \
595 portability/Stdio.cpp \
596 portability/Stdlib.cpp \
597 portability/String.cpp \
598 portability/SysFile.cpp \
599 portability/SysMembarrier.cpp \
600 portability/SysMman.cpp \
601 portability/SysResource.cpp \
602 portability/SysStat.cpp \
603 portability/SysTime.cpp \
604 portability/SysUio.cpp \
605 portability/Time.cpp \
606 portability/Unistd.cpp \
615 ssl/OpenSSLCertUtils.cpp \
616 ssl/OpenSSLHash.cpp \
617 ssl/detail/OpenSSLThreading.cpp \
618 ssl/detail/SSLSessionImpl.cpp \
619 stats/BucketedTimeSeries.cpp \
620 stats/Histogram.cpp \
621 stats/MultiLevelTimeSeries.cpp \
622 stats/TimeseriesHistogram.cpp \
623 synchronization/AsymmetricMemoryBarrier.cpp \
624 synchronization/LifoSem.cpp \
625 system/MemoryMapping.cpp \
627 system/ThreadName.cpp \
628 system/VersionCheck.cpp \
633 experimental/ThreadedRepeatingFunctionRunner.cpp \
634 experimental/bser/Dump.cpp \
635 experimental/bser/Load.cpp \
636 experimental/DynamicParser.cpp \
637 experimental/EnvUtil.cpp \
638 experimental/FunctionScheduler.cpp \
639 experimental/io/FsUtil.cpp \
640 experimental/JemallocNodumpAllocator.cpp \
641 experimental/JSONSchema.cpp \
642 experimental/NestedCommandLineApp.cpp \
643 experimental/observer/detail/Core.cpp \
644 experimental/observer/detail/ObserverManager.cpp \
645 experimental/ProgramOptions.cpp \
646 experimental/Select64.cpp \
647 experimental/TestUtil.cpp
650 nobase_follyinclude_HEADERS += \
651 experimental/io/HugePages.h
652 libfolly_la_SOURCES += \
653 experimental/io/HugePages.cpp
656 if !HAVE_WEAK_SYMBOLS
657 libfollybase_la_SOURCES += memory/detail/MallocImpl.cpp
660 if HAVE_BOOST_CONTEXT
661 nobase_follyinclude_HEADERS += \
663 fibers/AddTasks-inl.h \
664 fibers/AtomicBatchDispatcher.h \
665 fibers/AtomicBatchDispatcher-inl.h \
668 fibers/BatchDispatcher.h \
669 fibers/BoostContextCompatibility.h \
670 fibers/detail/AtomicBatchDispatcher.h \
671 fibers/EventBaseLoopController.h \
672 fibers/EventBaseLoopController-inl.h \
675 fibers/FiberManager.h \
676 fibers/FiberManager-inl.h \
677 fibers/FiberManagerInternal.h \
678 fibers/FiberManagerInternal-inl.h \
679 fibers/FiberManagerMap.h \
681 fibers/ForEach-inl.h \
682 fibers/GenericBaton.h \
683 fibers/GuardPageAllocator.h \
684 fibers/LoopController.h \
686 fibers/Promise-inl.h \
688 fibers/SimpleLoopController.h \
689 fibers/TimedMutex.h \
690 fibers/TimedMutex-inl.h \
691 fibers/TimeoutController.h \
696 libfolly_la_SOURCES += \
698 fibers/detail/AtomicBatchDispatcher.cpp \
700 fibers/FiberManager.cpp \
701 fibers/FiberManagerMap.cpp \
702 fibers/GuardPageAllocator.cpp \
703 fibers/Semaphore.cpp \
704 fibers/TimeoutController.cpp
708 nobase_follyinclude_HEADERS += \
709 experimental/symbolizer/Elf.h \
710 experimental/symbolizer/Elf-inl.h \
711 experimental/symbolizer/ElfCache.h \
712 experimental/symbolizer/Dwarf.h \
713 experimental/symbolizer/LineReader.h \
714 experimental/symbolizer/SignalHandler.h \
715 experimental/symbolizer/StackTrace.h \
716 experimental/symbolizer/Symbolizer.h
718 libfolly_la_SOURCES += \
719 experimental/symbolizer/Elf.cpp \
720 experimental/symbolizer/ElfCache.cpp \
721 experimental/symbolizer/Dwarf.cpp \
722 experimental/symbolizer/LineReader.cpp \
723 experimental/symbolizer/SignalHandler.cpp \
724 experimental/symbolizer/StackTrace.cpp \
725 experimental/symbolizer/Symbolizer.cpp
728 if HAVE_VARIABLE_TEMPLATES
729 libfolly_la_SOURCES += \
733 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
734 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
736 libfollybase_la_LIBADD = libfollybasesse42.la
737 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
739 libfolly_la_LIBADD = libfollybase.la
740 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
743 libfolly_la_LDFLAGS += -lunwind
746 FingerprintTables.cpp: generate_fingerprint_tables
747 ./generate_fingerprint_tables
748 CLEANFILES += FingerprintTables.cpp
750 libfollybenchmark_la_SOURCES = Benchmark.cpp
751 libfollybenchmark_la_LIBADD = libfolly.la
752 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
754 # install pkg-config metadata file
755 pkgconfigdir = $(libdir)/pkgconfig
756 nodist_pkgconfig_DATA = libfolly.pc