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/Iterator.h \
61 container/Enumerate.h \
62 container/EvictingCacheMap.h \
64 container/Foreach-inl.h \
65 container/SparseByteSet.h \
68 detail/AtomicHashUtils.h \
69 detail/AtomicUnorderedMapUtils.h \
70 detail/BitIteratorDetail.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/task_queue/BlockingQueue.h \
107 executors/task_queue/LifoSemMPMCQueue.h \
108 executors/task_queue/PriorityLifoSemMPMCQueue.h \
109 executors/task_queue/UnboundedBlockingQueue.h \
110 executors/thread_factory/NamedThreadFactory.h \
111 executors/thread_factory/PriorityThreadFactory.h \
112 executors/thread_factory/ThreadFactory.h \
113 functional/ApplyTuple.h \
122 ExceptionWrapper-inl.h \
125 concurrency/AtomicSharedPtr.h \
126 concurrency/detail/AtomicSharedPtr-detail.h \
127 experimental/AutoTimer.h \
128 experimental/ThreadedRepeatingFunctionRunner.h \
129 experimental/Bits.h \
130 experimental/BitVectorCoding.h \
131 experimental/CodingDetail.h \
132 experimental/DynamicParser.h \
133 experimental/DynamicParser-inl.h \
134 experimental/ExecutionObserver.h \
135 experimental/EliasFanoCoding.h \
136 experimental/EnvUtil.h \
137 experimental/EventCount.h \
138 experimental/Instructions.h \
139 experimental/bser/Bser.h \
140 experimental/exception_tracer/ExceptionAbi.h \
141 experimental/exception_tracer/ExceptionCounterLib.h \
142 experimental/exception_tracer/ExceptionTracer.h \
143 experimental/exception_tracer/ExceptionTracerLib.h \
144 experimental/exception_tracer/StackTrace.h \
145 experimental/FunctionScheduler.h \
146 experimental/FutureDAG.h \
147 experimental/hazptr/debug.h \
148 experimental/hazptr/hazptr.h \
149 experimental/hazptr/hazptr-impl.h \
150 experimental/hazptr/memory_resource.h \
151 experimental/io/FsUtil.h \
152 experimental/JemallocNodumpAllocator.h \
153 experimental/JSONSchema.h \
154 experimental/LockFreeRingBuffer.h \
155 experimental/logging/AsyncFileWriter.h \
156 experimental/logging/FileHandlerFactory.h \
157 experimental/logging/FileWriterFactory.h \
158 experimental/logging/GlogStyleFormatter.h \
159 experimental/logging/ImmediateFileWriter.h \
160 experimental/logging/Init.h \
161 experimental/logging/LogCategory.h \
162 experimental/logging/LogCategoryConfig.h \
163 experimental/logging/LogConfig.h \
164 experimental/logging/LogConfigParser.h \
165 experimental/logging/LogFormatter.h \
166 experimental/logging/Logger.h \
167 experimental/logging/LoggerDB.h \
168 experimental/logging/LogHandler.h \
169 experimental/logging/LogHandlerFactory.h \
170 experimental/logging/LogHandlerConfig.h \
171 experimental/logging/LogLevel.h \
172 experimental/logging/LogMessage.h \
173 experimental/logging/LogName.h \
174 experimental/logging/LogStream.h \
175 experimental/logging/LogStreamProcessor.h \
176 experimental/logging/LogWriter.h \
177 experimental/logging/printf.h \
178 experimental/logging/RateLimiter.h \
179 experimental/logging/StandardLogHandler.h \
180 experimental/logging/StandardLogHandlerFactory.h \
181 experimental/logging/StreamHandlerFactory.h \
182 experimental/logging/xlog.h \
183 experimental/NestedCommandLineApp.h \
184 experimental/observer/detail/Core.h \
185 experimental/observer/detail/GraphCycleDetector.h \
186 experimental/observer/detail/ObserverManager.h \
187 experimental/observer/detail/Observer-pre.h \
188 experimental/observer/Observable.h \
189 experimental/observer/Observable-inl.h \
190 experimental/observer/Observer.h \
191 experimental/observer/Observer-inl.h \
192 experimental/observer/SimpleObservable.h \
193 experimental/observer/SimpleObservable-inl.h \
194 experimental/ProgramOptions.h \
195 experimental/ReadMostlySharedPtr.h \
196 experimental/Select64.h \
197 experimental/StampedPtr.h \
198 experimental/StringKeyedCommon.h \
199 experimental/StringKeyedMap.h \
200 experimental/StringKeyedSet.h \
201 experimental/StringKeyedUnorderedMap.h \
202 experimental/StringKeyedUnorderedSet.h \
203 experimental/TestUtil.h \
204 experimental/TLRefCount.h \
205 experimental/TupleOps.h \
217 functional/Invoke.h \
218 functional/Partial.h \
220 futures/Future-pre.h \
223 futures/Future-inl.h \
224 futures/FutureException.h \
225 futures/FutureSplitter.h \
226 futures/Promise-inl.h \
228 futures/SharedPromise.h \
229 futures/SharedPromise-inl.h \
230 futures/ThreadWheelTimekeeper.h \
231 futures/Timekeeper.h \
232 futures/detail/Core.h \
233 futures/detail/FSM.h \
234 futures/detail/Types.h \
235 futures/test/TestExecutor.h \
237 hash/detail/ChecksumDetail.h \
239 hash/SpookyHashV1.h \
240 hash/SpookyHashV2.h \
252 gen/ParallelMap-inl.h \
260 IPAddressException.h \
272 io/ShutdownSocketSet.h \
273 io/async/AsyncPipe.h \
274 io/async/AsyncTimeout.h \
275 io/async/AsyncTransport.h \
276 io/async/AsyncUDPServerSocket.h \
277 io/async/AsyncUDPSocket.h \
278 io/async/AsyncServerSocket.h \
279 io/async/AsyncSignalHandler.h \
280 io/async/AsyncSocket.h \
281 io/async/AsyncSocketBase.h \
282 io/async/AsyncSSLSocket.h \
283 io/async/AsyncSocketException.h \
284 io/async/DecoratedAsyncTransportWrapper.h \
285 io/async/DelayedDestructionBase.h \
286 io/async/DelayedDestruction.h \
287 io/async/DestructorCheck.h \
288 io/async/EventBase.h \
289 io/async/EventBaseLocal.h \
290 io/async/EventBaseManager.h \
291 io/async/EventBaseThread.h \
292 io/async/EventFDWrapper.h \
293 io/async/EventHandler.h \
294 io/async/EventUtil.h \
295 io/async/NotificationQueue.h \
296 io/async/HHWheelTimer.h \
297 io/async/ssl/OpenSSLUtils.h \
298 io/async/ssl/SSLErrors.h \
299 io/async/ssl/TLSDefinitions.h \
301 io/async/SSLContext.h \
302 io/async/SSLOptions.h \
303 io/async/ScopedEventBaseThread.h \
304 io/async/TimeoutManager.h \
305 io/async/VirtualEventBase.h \
306 io/async/WriteChainAsyncTransportWrapper.h \
307 io/async/test/AsyncSSLSocketTest.h \
308 io/async/test/AsyncSocketTest2.h \
309 io/async/test/BlockingSocket.h \
310 io/async/test/MockAsyncSocket.h \
311 io/async/test/MockAsyncServerSocket.h \
312 io/async/test/MockAsyncSSLSocket.h \
313 io/async/test/MockAsyncTransport.h \
314 io/async/test/MockAsyncUDPSocket.h \
315 io/async/test/MockTimeoutManager.h \
316 io/async/test/ScopedBoundPort.h \
317 io/async/test/SocketPair.h \
318 io/async/test/TestSSLServer.h \
319 io/async/test/TimeUtil.h \
320 io/async/test/UndelayedDestruction.h \
321 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/AtomicStruct.h \
437 synchronization/Baton.h \
438 synchronization/CallOnce.h \
439 synchronization/LifoSem.h \
440 synchronization/ParkingLot.h \
441 synchronization/SaturatingSemaphore.h \
442 synchronization/detail/AtomicUtils.h \
443 synchronization/detail/Sleeper.h \
444 system/MemoryMapping.h \
447 system/ThreadName.h \
448 system/VersionCheck.h \
455 test/FBStringTestBenchmarks.cpp.h \
456 test/FBVectorTestBenchmarks.cpp.h \
457 test/function_benchmark/benchmark_impl.h \
458 test/function_benchmark/test_functions.h \
459 test/SynchronizedTestLib.h \
460 test/SynchronizedTestLib-inl.h \
466 tracing/StaticTracepoint.h \
467 tracing/ScopedTraceSection.h \
473 UncaughtExceptions.h \
480 FormatTables.cpp: build/generate_format_tables.py
481 $(PYTHON) build/generate_format_tables.py
482 CLEANFILES += FormatTables.cpp
484 EscapeTables.cpp: build/generate_escape_tables.py
485 $(PYTHON) build/generate_escape_tables.py
486 CLEANFILES += EscapeTables.cpp
488 GroupVarintTables.cpp: build/generate_varint_tables.py
489 $(PYTHON) build/generate_varint_tables.py
490 CLEANFILES += GroupVarintTables.cpp
492 libfollybasesse42_la_SOURCES = \
493 detail/RangeSse42.cpp \
494 hash/detail/ChecksumDetail.cpp \
495 hash/detail/Crc32cDetail.cpp
497 libfollybase_la_SOURCES = \
500 detail/RangeCommon.cpp \
505 memory/MallctlHelper.cpp \
506 portability/BitsFunctexcept.cpp \
510 libfolly_la_SOURCES = \
511 ClockGettimeWrappers.cpp \
512 compression/Compression.cpp \
513 compression/Zlib.cpp \
514 concurrency/CacheLocality.cpp \
517 detail/IPAddress.cpp \
518 detail/StaticSingletonManager.cpp \
519 detail/ThreadLocalDetail.cpp \
521 ExceptionWrapper.cpp \
526 FingerprintTables.cpp \
527 futures/Barrier.cpp \
529 futures/FutureException.cpp \
530 futures/ThreadWheelTimekeeper.cpp \
531 futures/test/TestExecutor.cpp \
532 executors/CPUThreadPoolExecutor.cpp \
533 executors/Codel.cpp \
534 executors/GlobalExecutor.cpp \
535 executors/GlobalThreadPoolList.cpp \
536 executors/IOThreadPoolExecutor.cpp \
537 executors/InlineExecutor.cpp \
538 executors/ManualExecutor.cpp \
539 executors/SerialExecutor.cpp \
540 executors/ThreadPoolExecutor.cpp \
541 executors/ThreadedExecutor.cpp \
542 executors/QueuedImmediateExecutor.cpp \
543 experimental/hazptr/hazptr.cpp \
544 experimental/hazptr/memory_resource.cpp \
546 GroupVarintTables.cpp \
548 hash/SpookyHashV1.cpp \
549 hash/SpookyHashV2.cpp \
558 io/ShutdownSocketSet.cpp \
559 io/async/AsyncPipe.cpp \
560 io/async/AsyncTimeout.cpp \
561 io/async/AsyncUDPSocket.cpp \
562 io/async/AsyncServerSocket.cpp \
563 io/async/AsyncSignalHandler.cpp \
564 io/async/AsyncSocket.cpp \
565 io/async/AsyncSocketException.cpp \
566 io/async/AsyncSSLSocket.cpp \
567 io/async/EventBase.cpp \
568 io/async/EventBaseLocal.cpp \
569 io/async/EventBaseManager.cpp \
570 io/async/EventBaseThread.cpp \
571 io/async/EventHandler.cpp \
572 io/async/Request.cpp \
573 io/async/SSLContext.cpp \
574 io/async/SSLOptions.cpp \
575 io/async/ScopedEventBaseThread.cpp \
576 io/async/VirtualEventBase.cpp \
577 io/async/HHWheelTimer.cpp \
578 io/async/TimeoutManager.cpp \
579 io/async/test/ScopedBoundPort.cpp \
580 io/async/test/SocketPair.cpp \
581 io/async/test/TimeUtil.cpp \
582 io/async/ssl/OpenSSLUtils.cpp \
583 io/async/ssl/SSLErrors.cpp \
587 lang/SafeAssert.cpp \
588 detail/MemoryIdler.cpp \
589 detail/SocketFastOpen.cpp \
591 memory/ThreadCachedArena.cpp \
592 portability/Dirent.cpp \
593 portability/Fcntl.cpp \
594 portability/Libgen.cpp \
595 portability/Malloc.cpp \
596 portability/Memory.cpp \
597 portability/OpenSSL.cpp \
598 portability/PThread.cpp \
599 portability/Sockets.cpp \
600 portability/Stdio.cpp \
601 portability/Stdlib.cpp \
602 portability/String.cpp \
603 portability/SysFile.cpp \
604 portability/SysMembarrier.cpp \
605 portability/SysMman.cpp \
606 portability/SysResource.cpp \
607 portability/SysStat.cpp \
608 portability/SysTime.cpp \
609 portability/SysUio.cpp \
610 portability/Time.cpp \
611 portability/Unistd.cpp \
620 ssl/OpenSSLCertUtils.cpp \
621 ssl/OpenSSLHash.cpp \
622 ssl/detail/OpenSSLThreading.cpp \
623 ssl/detail/SSLSessionImpl.cpp \
624 stats/BucketedTimeSeries.cpp \
625 stats/Histogram.cpp \
626 stats/MultiLevelTimeSeries.cpp \
627 stats/TimeseriesHistogram.cpp \
628 synchronization/AsymmetricMemoryBarrier.cpp \
629 synchronization/LifoSem.cpp \
630 synchronization/ParkingLot.cpp \
631 system/MemoryMapping.cpp \
633 system/ThreadName.cpp \
634 system/VersionCheck.cpp \
639 experimental/ThreadedRepeatingFunctionRunner.cpp \
640 experimental/bser/Dump.cpp \
641 experimental/bser/Load.cpp \
642 experimental/DynamicParser.cpp \
643 experimental/EnvUtil.cpp \
644 experimental/FunctionScheduler.cpp \
645 experimental/io/FsUtil.cpp \
646 experimental/JemallocNodumpAllocator.cpp \
647 experimental/JSONSchema.cpp \
648 experimental/NestedCommandLineApp.cpp \
649 experimental/observer/detail/Core.cpp \
650 experimental/observer/detail/ObserverManager.cpp \
651 experimental/ProgramOptions.cpp \
652 experimental/Select64.cpp \
653 experimental/TestUtil.cpp
656 nobase_follyinclude_HEADERS += \
657 experimental/io/HugePages.h
658 libfolly_la_SOURCES += \
659 experimental/io/HugePages.cpp
662 if !HAVE_WEAK_SYMBOLS
663 libfollybase_la_SOURCES += memory/detail/MallocImpl.cpp
666 if HAVE_BOOST_CONTEXT
667 nobase_follyinclude_HEADERS += \
669 fibers/AddTasks-inl.h \
670 fibers/AtomicBatchDispatcher.h \
671 fibers/AtomicBatchDispatcher-inl.h \
674 fibers/BatchDispatcher.h \
675 fibers/BoostContextCompatibility.h \
676 fibers/detail/AtomicBatchDispatcher.h \
677 fibers/EventBaseLoopController.h \
678 fibers/EventBaseLoopController-inl.h \
681 fibers/FiberManager.h \
682 fibers/FiberManager-inl.h \
683 fibers/FiberManagerInternal.h \
684 fibers/FiberManagerInternal-inl.h \
685 fibers/FiberManagerMap.h \
687 fibers/ForEach-inl.h \
688 fibers/GenericBaton.h \
689 fibers/GuardPageAllocator.h \
690 fibers/LoopController.h \
692 fibers/Promise-inl.h \
694 fibers/SimpleLoopController.h \
695 fibers/TimedMutex.h \
696 fibers/TimedMutex-inl.h \
697 fibers/TimeoutController.h \
702 libfolly_la_SOURCES += \
704 fibers/detail/AtomicBatchDispatcher.cpp \
706 fibers/FiberManager.cpp \
707 fibers/FiberManagerMap.cpp \
708 fibers/GuardPageAllocator.cpp \
709 fibers/Semaphore.cpp \
710 fibers/TimeoutController.cpp
714 nobase_follyinclude_HEADERS += \
715 experimental/symbolizer/Elf.h \
716 experimental/symbolizer/Elf-inl.h \
717 experimental/symbolizer/ElfCache.h \
718 experimental/symbolizer/Dwarf.h \
719 experimental/symbolizer/LineReader.h \
720 experimental/symbolizer/SignalHandler.h \
721 experimental/symbolizer/StackTrace.h \
722 experimental/symbolizer/Symbolizer.h
724 libfolly_la_SOURCES += \
725 experimental/symbolizer/Elf.cpp \
726 experimental/symbolizer/ElfCache.cpp \
727 experimental/symbolizer/Dwarf.cpp \
728 experimental/symbolizer/LineReader.cpp \
729 experimental/symbolizer/SignalHandler.cpp \
730 experimental/symbolizer/StackTrace.cpp \
731 experimental/symbolizer/Symbolizer.cpp
734 if HAVE_VARIABLE_TEMPLATES
735 libfolly_la_SOURCES += \
739 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
740 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
742 libfollybase_la_LIBADD = libfollybasesse42.la
743 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
745 libfolly_la_LIBADD = libfollybase.la
746 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
749 libfolly_la_LDFLAGS += -lunwind
752 FingerprintTables.cpp: generate_fingerprint_tables
753 ./generate_fingerprint_tables
754 CLEANFILES += FingerprintTables.cpp
756 libfollybenchmark_la_SOURCES = Benchmark.cpp
757 libfollybenchmark_la_LIBADD = libfolly.la
758 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
760 # install pkg-config metadata file
761 pkgconfigdir = $(libdir)/pkgconfig
762 nodist_pkgconfig_DATA = libfolly.pc