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 \
38 AtomicUnorderedMap.h \
44 ClockGettimeWrappers.h \
45 ConcurrentSkipList.h \
46 ConcurrentSkipList-inl.h \
51 compression/Compression.h \
54 concurrency/CacheLocality.h \
55 concurrency/ConcurrentHashMap.h \
56 concurrency/CoreCachedSharedPtr.h \
57 concurrency/detail/ConcurrentHashMap-detail.h \
58 concurrency/UnboundedQueue.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/BitIteratorDetail.h \
72 detail/DiscriminatedPtrDetail.h \
73 detail/FileUtilDetail.h \
74 detail/FingerprintPolynomial.h \
76 detail/GroupVarintDetail.h \
78 detail/IPAddressSource.h \
79 detail/MemoryIdler.h \
80 detail/MPMCPipelineDetail.h \
82 detail/RangeCommon.h \
85 detail/SlowFingerprint.h \
86 detail/SocketFastOpen.h \
87 detail/StaticSingletonManager.h \
88 detail/ThreadLocalDetail.h \
90 detail/TurnSequencer.h \
91 detail/UncaughtExceptionCounter.h \
93 executors/CPUThreadPoolExecutor.h \
95 executors/DrivableExecutor.h \
96 executors/FiberIOExecutor.h \
97 executors/FutureExecutor.h \
98 executors/GlobalExecutor.h \
99 executors/GlobalThreadPoolList.h \
100 executors/InlineExecutor.h \
101 executors/IOExecutor.h \
102 executors/IOObjectCache.h \
103 executors/IOThreadPoolExecutor.h \
104 executors/NotificationQueueExecutor.h \
105 executors/ScheduledExecutor.h \
106 executors/SerialExecutor.h \
107 executors/ThreadPoolExecutor.h \
108 executors/ThreadedExecutor.h \
109 executors/task_queue/BlockingQueue.h \
110 executors/task_queue/LifoSemMPMCQueue.h \
111 executors/task_queue/PriorityLifoSemMPMCQueue.h \
112 executors/task_queue/UnboundedBlockingQueue.h \
113 executors/thread_factory/NamedThreadFactory.h \
114 executors/thread_factory/PriorityThreadFactory.h \
115 executors/thread_factory/ThreadFactory.h \
116 functional/ApplyTuple.h \
125 ExceptionWrapper-inl.h \
128 concurrency/AtomicSharedPtr.h \
129 concurrency/detail/AtomicSharedPtr-detail.h \
130 experimental/AutoTimer.h \
131 experimental/ThreadedRepeatingFunctionRunner.h \
132 experimental/Bits.h \
133 experimental/BitVectorCoding.h \
134 experimental/CodingDetail.h \
135 experimental/DynamicParser.h \
136 experimental/DynamicParser-inl.h \
137 experimental/ExecutionObserver.h \
138 experimental/EliasFanoCoding.h \
139 experimental/EnvUtil.h \
140 experimental/EventCount.h \
141 experimental/Instructions.h \
142 experimental/bser/Bser.h \
143 experimental/exception_tracer/ExceptionAbi.h \
144 experimental/exception_tracer/ExceptionCounterLib.h \
145 experimental/exception_tracer/ExceptionTracer.h \
146 experimental/exception_tracer/ExceptionTracerLib.h \
147 experimental/exception_tracer/StackTrace.h \
148 experimental/FunctionScheduler.h \
149 experimental/FutureDAG.h \
150 experimental/hazptr/debug.h \
151 experimental/hazptr/hazptr.h \
152 experimental/hazptr/hazptr-impl.h \
153 experimental/hazptr/memory_resource.h \
154 experimental/io/FsUtil.h \
155 experimental/JemallocNodumpAllocator.h \
156 experimental/JSONSchema.h \
157 experimental/LockFreeRingBuffer.h \
158 experimental/logging/AsyncFileWriter.h \
159 experimental/logging/FileHandlerFactory.h \
160 experimental/logging/FileWriterFactory.h \
161 experimental/logging/GlogStyleFormatter.h \
162 experimental/logging/ImmediateFileWriter.h \
163 experimental/logging/Init.h \
164 experimental/logging/LogCategory.h \
165 experimental/logging/LogCategoryConfig.h \
166 experimental/logging/LogConfig.h \
167 experimental/logging/LogConfigParser.h \
168 experimental/logging/LogFormatter.h \
169 experimental/logging/Logger.h \
170 experimental/logging/LoggerDB.h \
171 experimental/logging/LogHandler.h \
172 experimental/logging/LogHandlerFactory.h \
173 experimental/logging/LogHandlerConfig.h \
174 experimental/logging/LogLevel.h \
175 experimental/logging/LogMessage.h \
176 experimental/logging/LogName.h \
177 experimental/logging/LogStream.h \
178 experimental/logging/LogStreamProcessor.h \
179 experimental/logging/LogWriter.h \
180 experimental/logging/printf.h \
181 experimental/logging/RateLimiter.h \
182 experimental/logging/StandardLogHandler.h \
183 experimental/logging/StandardLogHandlerFactory.h \
184 experimental/logging/StreamHandlerFactory.h \
185 experimental/logging/xlog.h \
186 experimental/NestedCommandLineApp.h \
187 experimental/observer/detail/Core.h \
188 experimental/observer/detail/GraphCycleDetector.h \
189 experimental/observer/detail/ObserverManager.h \
190 experimental/observer/detail/Observer-pre.h \
191 experimental/observer/Observable.h \
192 experimental/observer/Observable-inl.h \
193 experimental/observer/Observer.h \
194 experimental/observer/Observer-inl.h \
195 experimental/observer/SimpleObservable.h \
196 experimental/observer/SimpleObservable-inl.h \
197 experimental/ProgramOptions.h \
198 experimental/ReadMostlySharedPtr.h \
199 experimental/Select64.h \
200 experimental/StampedPtr.h \
201 experimental/StringKeyedCommon.h \
202 experimental/StringKeyedMap.h \
203 experimental/StringKeyedSet.h \
204 experimental/StringKeyedUnorderedMap.h \
205 experimental/StringKeyedUnorderedSet.h \
206 experimental/TestUtil.h \
207 experimental/TLRefCount.h \
208 experimental/TupleOps.h \
220 functional/Invoke.h \
221 functional/Partial.h \
223 futures/Future-pre.h \
226 futures/Future-inl.h \
227 futures/FutureException.h \
228 futures/FutureSplitter.h \
229 futures/Promise-inl.h \
231 futures/SharedPromise.h \
232 futures/SharedPromise-inl.h \
233 futures/ThreadWheelTimekeeper.h \
234 futures/Timekeeper.h \
235 futures/detail/Core.h \
236 futures/detail/FSM.h \
237 futures/detail/Types.h \
238 futures/test/TestExecutor.h \
240 hash/detail/ChecksumDetail.h \
242 hash/SpookyHashV1.h \
243 hash/SpookyHashV2.h \
255 gen/ParallelMap-inl.h \
263 IPAddressException.h \
275 io/ShutdownSocketSet.h \
276 io/async/AsyncPipe.h \
277 io/async/AsyncTimeout.h \
278 io/async/AsyncTransport.h \
279 io/async/AsyncUDPServerSocket.h \
280 io/async/AsyncUDPSocket.h \
281 io/async/AsyncServerSocket.h \
282 io/async/AsyncSignalHandler.h \
283 io/async/AsyncSocket.h \
284 io/async/AsyncSocketBase.h \
285 io/async/AsyncSSLSocket.h \
286 io/async/AsyncSocketException.h \
287 io/async/DecoratedAsyncTransportWrapper.h \
288 io/async/DelayedDestructionBase.h \
289 io/async/DelayedDestruction.h \
290 io/async/DestructorCheck.h \
291 io/async/EventBase.h \
292 io/async/EventBaseLocal.h \
293 io/async/EventBaseManager.h \
294 io/async/EventBaseThread.h \
295 io/async/EventFDWrapper.h \
296 io/async/EventHandler.h \
297 io/async/EventUtil.h \
298 io/async/NotificationQueue.h \
299 io/async/HHWheelTimer.h \
300 io/async/ssl/OpenSSLUtils.h \
301 io/async/ssl/SSLErrors.h \
302 io/async/ssl/TLSDefinitions.h \
304 io/async/SSLContext.h \
305 io/async/SSLOptions.h \
306 io/async/ScopedEventBaseThread.h \
307 io/async/TimeoutManager.h \
308 io/async/VirtualEventBase.h \
309 io/async/WriteChainAsyncTransportWrapper.h \
310 io/async/test/AsyncSSLSocketTest.h \
311 io/async/test/AsyncSocketTest2.h \
312 io/async/test/BlockingSocket.h \
313 io/async/test/MockAsyncSocket.h \
314 io/async/test/MockAsyncServerSocket.h \
315 io/async/test/MockAsyncSSLSocket.h \
316 io/async/test/MockAsyncTransport.h \
317 io/async/test/MockAsyncUDPSocket.h \
318 io/async/test/MockTimeoutManager.h \
319 io/async/test/ScopedBoundPort.h \
320 io/async/test/SocketPair.h \
321 io/async/test/TestSSLServer.h \
322 io/async/test/TimeUtil.h \
323 io/async/test/UndelayedDestruction.h \
324 io/async/test/Util.h \
331 lang/RValueReferenceWrapper.h \
344 memory/MallctlHelper.h \
346 memory/ThreadCachedArena.h \
347 memory/UninitializedMemoryHacks.h \
348 memory/detail/MallocImpl.h \
365 portability/Atomic.h \
366 portability/BitsFunctexcept.h \
367 portability/Builtins.h \
368 portability/Config.h \
369 portability/Constexpr.h \
370 portability/Dirent.h \
371 portability/Event.h \
372 portability/Fcntl.h \
373 portability/GFlags.h \
374 portability/GMock.h \
375 portability/GTest.h \
376 portability/IOVec.h \
377 portability/Libgen.h \
378 portability/Malloc.h \
380 portability/Memory.h \
381 portability/OpenSSL.h \
382 portability/PThread.h \
383 portability/Semaphore.h \
384 portability/Sockets.h \
385 portability/Stdio.h \
386 portability/Stdlib.h \
387 portability/String.h \
388 portability/Syslog.h \
389 portability/SysFile.h \
390 portability/SysMembarrier.h \
391 portability/SysMman.h \
392 portability/SysResource.h \
393 portability/SysStat.h \
394 portability/SysSyscall.h \
395 portability/SysTime.h \
396 portability/SysTypes.h \
397 portability/SysUio.h \
399 portability/TypeTraits.h \
400 portability/Unistd.h \
401 portability/Windows.h \
403 PriorityMPMCQueue.h \
404 ProducerConsumerQueue.h \
414 SingletonThreadLocal.h \
418 sorted_vector_types.h \
421 ssl/OpenSSLCertUtils.h \
423 ssl/OpenSSLPtrTypes.h \
424 ssl/OpenSSLVersionFinder.h \
426 ssl/OpenSSLLockTypes.h \
427 ssl/detail/OpenSSLThreading.h \
428 ssl/detail/SSLSessionImpl.h \
429 stats/detail/Bucket.h \
430 stats/BucketedTimeSeries-defs.h \
431 stats/BucketedTimeSeries.h \
432 stats/Histogram-defs.h \
434 stats/MultiLevelTimeSeries-defs.h \
435 stats/MultiLevelTimeSeries.h \
436 stats/TimeseriesHistogram-defs.h \
437 stats/TimeseriesHistogram.h \
438 synchronization/AsymmetricMemoryBarrier.h \
439 synchronization/Baton.h \
440 synchronization/CallOnce.h \
441 synchronization/LifoSem.h \
442 synchronization/detail/AtomicUtils.h \
443 system/MemoryMapping.h \
446 system/ThreadName.h \
447 system/VersionCheck.h \
454 test/FBStringTestBenchmarks.cpp.h \
455 test/FBVectorTestBenchmarks.cpp.h \
456 test/function_benchmark/benchmark_impl.h \
457 test/function_benchmark/test_functions.h \
458 test/SynchronizedTestLib.h \
459 test/SynchronizedTestLib-inl.h \
465 tracing/StaticTracepoint.h \
466 tracing/ScopedTraceSection.h \
472 UncaughtExceptions.h \
479 FormatTables.cpp: build/generate_format_tables.py
480 $(PYTHON) build/generate_format_tables.py
481 CLEANFILES += FormatTables.cpp
483 EscapeTables.cpp: build/generate_escape_tables.py
484 $(PYTHON) build/generate_escape_tables.py
485 CLEANFILES += EscapeTables.cpp
487 GroupVarintTables.cpp: build/generate_varint_tables.py
488 $(PYTHON) build/generate_varint_tables.py
489 CLEANFILES += GroupVarintTables.cpp
491 libfollybasesse42_la_SOURCES = \
492 detail/RangeSse42.cpp \
493 hash/detail/ChecksumDetail.cpp \
494 hash/detail/Crc32cDetail.cpp
496 libfollybase_la_SOURCES = \
499 detail/RangeCommon.cpp \
504 memory/MallctlHelper.cpp \
505 portability/BitsFunctexcept.cpp \
509 libfolly_la_SOURCES = \
510 ClockGettimeWrappers.cpp \
511 compression/Compression.cpp \
512 compression/Zlib.cpp \
513 concurrency/CacheLocality.cpp \
516 detail/IPAddress.cpp \
517 detail/StaticSingletonManager.cpp \
518 detail/ThreadLocalDetail.cpp \
520 ExceptionWrapper.cpp \
525 FingerprintTables.cpp \
526 futures/Barrier.cpp \
528 futures/FutureException.cpp \
529 futures/ThreadWheelTimekeeper.cpp \
530 futures/test/TestExecutor.cpp \
531 executors/CPUThreadPoolExecutor.cpp \
532 executors/Codel.cpp \
533 executors/GlobalExecutor.cpp \
534 executors/GlobalThreadPoolList.cpp \
535 executors/IOThreadPoolExecutor.cpp \
536 executors/InlineExecutor.cpp \
537 executors/ManualExecutor.cpp \
538 executors/SerialExecutor.cpp \
539 executors/ThreadPoolExecutor.cpp \
540 executors/ThreadedExecutor.cpp \
541 executors/QueuedImmediateExecutor.cpp \
542 experimental/hazptr/hazptr.cpp \
543 experimental/hazptr/memory_resource.cpp \
545 GroupVarintTables.cpp \
547 hash/SpookyHashV1.cpp \
548 hash/SpookyHashV2.cpp \
557 io/ShutdownSocketSet.cpp \
558 io/async/AsyncPipe.cpp \
559 io/async/AsyncTimeout.cpp \
560 io/async/AsyncUDPSocket.cpp \
561 io/async/AsyncServerSocket.cpp \
562 io/async/AsyncSignalHandler.cpp \
563 io/async/AsyncSocket.cpp \
564 io/async/AsyncSocketException.cpp \
565 io/async/AsyncSSLSocket.cpp \
566 io/async/EventBase.cpp \
567 io/async/EventBaseLocal.cpp \
568 io/async/EventBaseManager.cpp \
569 io/async/EventBaseThread.cpp \
570 io/async/EventHandler.cpp \
571 io/async/Request.cpp \
572 io/async/SSLContext.cpp \
573 io/async/SSLOptions.cpp \
574 io/async/ScopedEventBaseThread.cpp \
575 io/async/VirtualEventBase.cpp \
576 io/async/HHWheelTimer.cpp \
577 io/async/TimeoutManager.cpp \
578 io/async/test/ScopedBoundPort.cpp \
579 io/async/test/SocketPair.cpp \
580 io/async/test/TimeUtil.cpp \
581 io/async/ssl/OpenSSLUtils.cpp \
582 io/async/ssl/SSLErrors.cpp \
586 lang/SafeAssert.cpp \
587 detail/MemoryIdler.cpp \
588 detail/SocketFastOpen.cpp \
590 memory/ThreadCachedArena.cpp \
591 portability/Dirent.cpp \
592 portability/Fcntl.cpp \
593 portability/Libgen.cpp \
594 portability/Malloc.cpp \
595 portability/Memory.cpp \
596 portability/OpenSSL.cpp \
597 portability/PThread.cpp \
598 portability/Sockets.cpp \
599 portability/Stdio.cpp \
600 portability/Stdlib.cpp \
601 portability/String.cpp \
602 portability/SysFile.cpp \
603 portability/SysMembarrier.cpp \
604 portability/SysMman.cpp \
605 portability/SysResource.cpp \
606 portability/SysStat.cpp \
607 portability/SysTime.cpp \
608 portability/SysUio.cpp \
609 portability/Time.cpp \
610 portability/Unistd.cpp \
619 ssl/OpenSSLCertUtils.cpp \
620 ssl/OpenSSLHash.cpp \
621 ssl/detail/OpenSSLThreading.cpp \
622 ssl/detail/SSLSessionImpl.cpp \
623 stats/BucketedTimeSeries.cpp \
624 stats/Histogram.cpp \
625 stats/MultiLevelTimeSeries.cpp \
626 stats/TimeseriesHistogram.cpp \
627 synchronization/AsymmetricMemoryBarrier.cpp \
628 synchronization/LifoSem.cpp \
629 system/MemoryMapping.cpp \
631 system/ThreadName.cpp \
632 system/VersionCheck.cpp \
637 experimental/ThreadedRepeatingFunctionRunner.cpp \
638 experimental/bser/Dump.cpp \
639 experimental/bser/Load.cpp \
640 experimental/DynamicParser.cpp \
641 experimental/EnvUtil.cpp \
642 experimental/FunctionScheduler.cpp \
643 experimental/io/FsUtil.cpp \
644 experimental/JemallocNodumpAllocator.cpp \
645 experimental/JSONSchema.cpp \
646 experimental/NestedCommandLineApp.cpp \
647 experimental/observer/detail/Core.cpp \
648 experimental/observer/detail/ObserverManager.cpp \
649 experimental/ProgramOptions.cpp \
650 experimental/Select64.cpp \
651 experimental/TestUtil.cpp
654 nobase_follyinclude_HEADERS += \
655 experimental/io/HugePages.h
656 libfolly_la_SOURCES += \
657 experimental/io/HugePages.cpp
660 if !HAVE_WEAK_SYMBOLS
661 libfollybase_la_SOURCES += memory/detail/MallocImpl.cpp
664 if HAVE_BOOST_CONTEXT
665 nobase_follyinclude_HEADERS += \
667 fibers/AddTasks-inl.h \
668 fibers/AtomicBatchDispatcher.h \
669 fibers/AtomicBatchDispatcher-inl.h \
672 fibers/BatchDispatcher.h \
673 fibers/BoostContextCompatibility.h \
674 fibers/detail/AtomicBatchDispatcher.h \
675 fibers/EventBaseLoopController.h \
676 fibers/EventBaseLoopController-inl.h \
679 fibers/FiberManager.h \
680 fibers/FiberManager-inl.h \
681 fibers/FiberManagerInternal.h \
682 fibers/FiberManagerInternal-inl.h \
683 fibers/FiberManagerMap.h \
685 fibers/ForEach-inl.h \
686 fibers/GenericBaton.h \
687 fibers/GuardPageAllocator.h \
688 fibers/LoopController.h \
690 fibers/Promise-inl.h \
692 fibers/SimpleLoopController.h \
693 fibers/TimedMutex.h \
694 fibers/TimedMutex-inl.h \
695 fibers/TimeoutController.h \
700 libfolly_la_SOURCES += \
702 fibers/detail/AtomicBatchDispatcher.cpp \
704 fibers/FiberManager.cpp \
705 fibers/FiberManagerMap.cpp \
706 fibers/GuardPageAllocator.cpp \
707 fibers/Semaphore.cpp \
708 fibers/TimeoutController.cpp
712 nobase_follyinclude_HEADERS += \
713 experimental/symbolizer/Elf.h \
714 experimental/symbolizer/Elf-inl.h \
715 experimental/symbolizer/ElfCache.h \
716 experimental/symbolizer/Dwarf.h \
717 experimental/symbolizer/LineReader.h \
718 experimental/symbolizer/SignalHandler.h \
719 experimental/symbolizer/StackTrace.h \
720 experimental/symbolizer/Symbolizer.h
722 libfolly_la_SOURCES += \
723 experimental/symbolizer/Elf.cpp \
724 experimental/symbolizer/ElfCache.cpp \
725 experimental/symbolizer/Dwarf.cpp \
726 experimental/symbolizer/LineReader.cpp \
727 experimental/symbolizer/SignalHandler.cpp \
728 experimental/symbolizer/StackTrace.cpp \
729 experimental/symbolizer/Symbolizer.cpp
732 if HAVE_VARIABLE_TEMPLATES
733 libfolly_la_SOURCES += \
737 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
738 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
740 libfollybase_la_LIBADD = libfollybasesse42.la
741 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
743 libfolly_la_LIBADD = libfollybase.la
744 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
747 libfolly_la_LDFLAGS += -lunwind
750 FingerprintTables.cpp: generate_fingerprint_tables
751 ./generate_fingerprint_tables
752 CLEANFILES += FingerprintTables.cpp
754 libfollybenchmark_la_SOURCES = Benchmark.cpp
755 libfollybenchmark_la_LIBADD = libfolly.la
756 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
758 # install pkg-config metadata file
759 pkgconfigdir = $(libdir)/pkgconfig
760 nodist_pkgconfig_DATA = libfolly.pc