5 SUBDIRS = . experimental $(MAYBE_INIT) test io/test stats/test
7 ACLOCAL_AMFLAGS = -I m4
12 noinst_PROGRAMS = generate_fingerprint_tables
13 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
14 generate_fingerprint_tables_LDADD = libfollybase.la
16 noinst_LTLIBRARIES = \
17 libfollybasesse42.la \
24 follyincludedir = $(includedir)/folly
26 nobase_follyinclude_HEADERS = \
34 AtomicHashArray-inl.h \
37 AtomicIntrusiveLinkedList.h \
40 AtomicUnorderedMap.h \
48 ClockGettimeWrappers.h \
49 ConcurrentSkipList.h \
50 ConcurrentSkipList-inl.h \
56 concurrency/CoreCachedSharedPtr.h \
57 detail/AtomicHashUtils.h \
58 detail/AtomicUnorderedMapUtils.h \
59 detail/AtomicUtils.h \
60 detail/BitIteratorDetail.h \
61 detail/CacheLocality.h \
62 detail/CachelinePaddedImpl.h \
63 detail/ChecksumDetail.h \
64 detail/DiscriminatedPtrDetail.h \
65 detail/FileUtilDetail.h \
66 detail/FingerprintPolynomial.h \
68 detail/GroupVarintDetail.h \
70 detail/IPAddressSource.h \
72 detail/MemoryIdler.h \
73 detail/MPMCPipelineDetail.h \
74 detail/RangeCommon.h \
77 detail/SlowFingerprint.h \
78 detail/SocketFastOpen.h \
79 detail/StaticSingletonManager.h \
80 detail/ThreadLocalDetail.h \
82 detail/TurnSequencer.h \
83 detail/UncaughtExceptionCounter.h \
94 ExceptionWrapper-inl.h \
97 experimental/AsymmetricMemoryBarrier.h \
98 experimental/AtomicSharedPtr.h \
99 experimental/detail/AtomicSharedPtr-detail.h \
100 experimental/AutoTimer.h \
101 experimental/ThreadedRepeatingFunctionRunner.h \
102 experimental/Bits.h \
103 experimental/BitVectorCoding.h \
104 experimental/CodingDetail.h \
105 experimental/DynamicParser.h \
106 experimental/DynamicParser-inl.h \
107 experimental/ExecutionObserver.h \
108 experimental/EliasFanoCoding.h \
109 experimental/EnvUtil.h \
110 experimental/EventCount.h \
111 experimental/Instructions.h \
112 experimental/bser/Bser.h \
113 experimental/exception_tracer/ExceptionAbi.h \
114 experimental/exception_tracer/ExceptionCounterLib.h \
115 experimental/exception_tracer/ExceptionTracer.h \
116 experimental/exception_tracer/ExceptionTracerLib.h \
117 experimental/exception_tracer/StackTrace.h \
118 experimental/FunctionScheduler.h \
119 experimental/FutureDAG.h \
120 experimental/io/FsUtil.h \
121 experimental/JemallocNodumpAllocator.h \
122 experimental/JSONSchema.h \
123 experimental/LockFreeRingBuffer.h \
124 experimental/logging/LogCategory.h \
125 experimental/logging/LogFormatter.h \
126 experimental/logging/Logger.h \
127 experimental/logging/LoggerDB.h \
128 experimental/logging/LogHandler.h \
129 experimental/logging/LogLevel.h \
130 experimental/logging/LogMessage.h \
131 experimental/logging/LogName.h \
132 experimental/logging/LogStream.h \
133 experimental/logging/LogStreamProcessor.h \
134 experimental/logging/LogWriter.h \
135 experimental/logging/RateLimiter.h \
136 experimental/logging/StandardLogHandler.h \
137 experimental/logging/xlog.h \
138 experimental/NestedCommandLineApp.h \
139 experimental/observer/detail/Core.h \
140 experimental/observer/detail/GraphCycleDetector.h \
141 experimental/observer/detail/ObserverManager.h \
142 experimental/observer/detail/Observer-pre.h \
143 experimental/observer/Observable.h \
144 experimental/observer/Observable-inl.h \
145 experimental/observer/Observer.h \
146 experimental/observer/Observer-inl.h \
147 experimental/observer/SimpleObservable.h \
148 experimental/observer/SimpleObservable-inl.h \
149 experimental/ProgramOptions.h \
150 experimental/ReadMostlySharedPtr.h \
151 experimental/symbolizer/Elf.h \
152 experimental/symbolizer/Elf-inl.h \
153 experimental/symbolizer/ElfCache.h \
154 experimental/symbolizer/Dwarf.h \
155 experimental/symbolizer/LineReader.h \
156 experimental/symbolizer/SignalHandler.h \
157 experimental/symbolizer/StackTrace.h \
158 experimental/symbolizer/Symbolizer.h \
159 experimental/Select64.h \
160 experimental/StampedPtr.h \
161 experimental/StringKeyedCommon.h \
162 experimental/StringKeyedMap.h \
163 experimental/StringKeyedSet.h \
164 experimental/StringKeyedUnorderedMap.h \
165 experimental/StringKeyedUnorderedSet.h \
166 experimental/TestUtil.h \
167 experimental/TLRefCount.h \
168 experimental/TupleOps.h \
182 futures/DrivableExecutor.h \
183 futures/Future-pre.h \
186 futures/Future-inl.h \
187 futures/FutureException.h \
188 futures/FutureSplitter.h \
189 futures/InlineExecutor.h \
190 futures/ManualExecutor.h \
191 futures/OpaqueCallbackShunt.h \
192 futures/Promise-inl.h \
194 futures/QueuedImmediateExecutor.h \
195 futures/ScheduledExecutor.h \
196 futures/SharedPromise.h \
197 futures/SharedPromise-inl.h \
198 futures/ThreadWheelTimekeeper.h \
199 futures/Timekeeper.h \
200 futures/detail/Core.h \
201 futures/detail/FSM.h \
202 futures/detail/Types.h \
203 futures/test/TestExecutor.h \
215 gen/ParallelMap-inl.h \
223 IPAddressException.h \
236 io/ShutdownSocketSet.h \
237 io/async/AsyncPipe.h \
238 io/async/AsyncTimeout.h \
239 io/async/AsyncTransport.h \
240 io/async/AsyncUDPServerSocket.h \
241 io/async/AsyncUDPSocket.h \
242 io/async/AsyncServerSocket.h \
243 io/async/AsyncSignalHandler.h \
244 io/async/AsyncSocket.h \
245 io/async/AsyncSocketBase.h \
246 io/async/AsyncSSLSocket.h \
247 io/async/AsyncSocketException.h \
248 io/async/DecoratedAsyncTransportWrapper.h \
249 io/async/DelayedDestructionBase.h \
250 io/async/DelayedDestruction.h \
251 io/async/DestructorCheck.h \
252 io/async/EventBase.h \
253 io/async/EventBaseLocal.h \
254 io/async/EventBaseManager.h \
255 io/async/EventBaseThread.h \
256 io/async/EventFDWrapper.h \
257 io/async/EventHandler.h \
258 io/async/EventUtil.h \
259 io/async/NotificationQueue.h \
260 io/async/HHWheelTimer.h \
261 io/async/ssl/OpenSSLUtils.h \
262 io/async/ssl/SSLErrors.h \
263 io/async/ssl/TLSDefinitions.h \
265 io/async/SSLContext.h \
266 io/async/ScopedEventBaseThread.h \
267 io/async/TimeoutManager.h \
268 io/async/VirtualEventBase.h \
269 io/async/WriteChainAsyncTransportWrapper.h \
270 io/async/test/AsyncSSLSocketTest.h \
271 io/async/test/AsyncSocketTest2.h \
272 io/async/test/BlockingSocket.h \
273 io/async/test/MockAsyncSocket.h \
274 io/async/test/MockAsyncServerSocket.h \
275 io/async/test/MockAsyncSSLSocket.h \
276 io/async/test/MockAsyncTransport.h \
277 io/async/test/MockAsyncUDPSocket.h \
278 io/async/test/MockTimeoutManager.h \
279 io/async/test/ScopedBoundPort.h \
280 io/async/test/SocketPair.h \
281 io/async/test/TestSSLServer.h \
282 io/async/test/TimeUtil.h \
283 io/async/test/UndelayedDestruction.h \
284 io/async/test/Util.h \
300 memory/UninitializedMemoryHacks.h \
314 portability/Atomic.h \
315 portability/BitsFunctexcept.h \
316 portability/Builtins.h \
317 portability/Config.h \
318 portability/Constexpr.h \
319 portability/Dirent.h \
320 portability/Event.h \
321 portability/Fcntl.h \
322 portability/GFlags.h \
323 portability/GMock.h \
324 portability/GTest.h \
325 portability/IOVec.h \
326 portability/Libgen.h \
327 portability/Malloc.h \
329 portability/Memory.h \
330 portability/OpenSSL.h \
331 portability/PThread.h \
332 portability/Sockets.h \
333 portability/Stdio.h \
334 portability/Stdlib.h \
335 portability/String.h \
336 portability/Syslog.h \
337 portability/SysFile.h \
338 portability/SysMembarrier.h \
339 portability/SysMman.h \
340 portability/SysResource.h \
341 portability/SysStat.h \
342 portability/SysSyscall.h \
343 portability/SysTime.h \
344 portability/SysTypes.h \
345 portability/SysUio.h \
347 portability/TypeTraits.h \
348 portability/Unistd.h \
349 portability/Windows.h \
351 PriorityMPMCQueue.h \
352 ProducerConsumerQueue.h \
363 SingletonThreadLocal.h \
367 sorted_vector_types.h \
372 ssl/OpenSSLCertUtils.h \
374 ssl/OpenSSLPtrTypes.h \
375 ssl/OpenSSLVersionFinder.h \
377 ssl/detail/SSLSessionImpl.h \
378 stats/detail/Bucket.h \
379 stats/BucketedTimeSeries-defs.h \
380 stats/BucketedTimeSeries.h \
381 stats/Histogram-defs.h \
383 stats/MultiLevelTimeSeries-defs.h \
384 stats/MultiLevelTimeSeries.h \
385 stats/TimeseriesHistogram-defs.h \
386 stats/TimeseriesHistogram.h \
392 test/FBStringTestBenchmarks.cpp.h \
393 test/FBVectorTestBenchmarks.cpp.h \
394 test/function_benchmark/benchmark_impl.h \
395 test/function_benchmark/test_functions.h \
396 test/SynchronizedTestLib.h \
397 test/SynchronizedTestLib-inl.h \
399 ThreadCachedArena.h \
406 tracing/StaticTracepoint.h \
413 UncaughtExceptions.h \
421 FormatTables.cpp: build/generate_format_tables.py
422 $(PYTHON) build/generate_format_tables.py
423 CLEANFILES += FormatTables.cpp
425 EscapeTables.cpp: build/generate_escape_tables.py
426 $(PYTHON) build/generate_escape_tables.py
427 CLEANFILES += EscapeTables.cpp
429 GroupVarintTables.cpp: build/generate_varint_tables.py
430 $(PYTHON) build/generate_varint_tables.py
431 CLEANFILES += GroupVarintTables.cpp
433 libfollybasesse42_la_SOURCES = \
434 detail/ChecksumDetail.cpp \
435 detail/RangeSse42.cpp
437 libfollybase_la_SOURCES = \
440 detail/RangeCommon.cpp \
445 portability/BitsFunctexcept.cpp \
450 libfolly_la_SOURCES = \
453 ClockGettimeWrappers.cpp \
454 detail/CacheLocality.cpp \
455 detail/IPAddress.cpp \
457 ExceptionWrapper.cpp \
461 FingerprintTables.cpp \
462 futures/Barrier.cpp \
464 futures/ManualExecutor.cpp \
465 futures/QueuedImmediateExecutor.cpp \
466 futures/ThreadWheelTimekeeper.cpp \
467 futures/test/TestExecutor.cpp \
469 detail/StaticSingletonManager.cpp \
470 detail/ThreadLocalDetail.cpp \
472 GroupVarintTables.cpp \
483 io/ShutdownSocketSet.cpp \
484 io/async/AsyncPipe.cpp \
485 io/async/AsyncTimeout.cpp \
486 io/async/AsyncUDPSocket.cpp \
487 io/async/AsyncServerSocket.cpp \
488 io/async/AsyncSignalHandler.cpp \
489 io/async/AsyncSocket.cpp \
490 io/async/AsyncSSLSocket.cpp \
491 io/async/EventBase.cpp \
492 io/async/EventBaseLocal.cpp \
493 io/async/EventBaseManager.cpp \
494 io/async/EventBaseThread.cpp \
495 io/async/EventHandler.cpp \
496 io/async/Request.cpp \
497 io/async/SSLContext.cpp \
498 io/async/ScopedEventBaseThread.cpp \
499 io/async/VirtualEventBase.cpp \
500 io/async/HHWheelTimer.cpp \
501 io/async/TimeoutManager.cpp \
502 io/async/test/ScopedBoundPort.cpp \
503 io/async/test/SocketPair.cpp \
504 io/async/test/TimeUtil.cpp \
505 io/async/ssl/OpenSSLUtils.cpp \
506 io/async/ssl/SSLErrors.cpp \
508 detail/MemoryIdler.cpp \
509 detail/SocketFastOpen.cpp \
512 portability/Dirent.cpp \
513 portability/Fcntl.cpp \
514 portability/Libgen.cpp \
515 portability/Malloc.cpp \
516 portability/Memory.cpp \
517 portability/OpenSSL.cpp \
518 portability/PThread.cpp \
519 portability/Sockets.cpp \
520 portability/Stdio.cpp \
521 portability/Stdlib.cpp \
522 portability/String.cpp \
523 portability/SysFile.cpp \
524 portability/SysMembarrier.cpp \
525 portability/SysMman.cpp \
526 portability/SysResource.cpp \
527 portability/SysStat.cpp \
528 portability/SysTime.cpp \
529 portability/SysUio.cpp \
530 portability/Time.cpp \
531 portability/Unistd.cpp \
543 ssl/OpenSSLCertUtils.cpp \
544 ssl/OpenSSLHash.cpp \
545 ssl/detail/SSLSessionImpl.cpp \
546 stats/BucketedTimeSeries.cpp \
547 stats/Histogram.cpp \
548 stats/MultiLevelTimeSeries.cpp \
549 stats/TimeseriesHistogram.cpp \
551 ThreadCachedArena.cpp \
556 experimental/AsymmetricMemoryBarrier.cpp \
557 experimental/ThreadedRepeatingFunctionRunner.cpp \
558 experimental/bser/Dump.cpp \
559 experimental/bser/Load.cpp \
560 experimental/DynamicParser.cpp \
561 experimental/EnvUtil.cpp \
562 experimental/FunctionScheduler.cpp \
563 experimental/io/FsUtil.cpp \
564 experimental/JemallocNodumpAllocator.cpp \
565 experimental/JSONSchema.cpp \
566 experimental/NestedCommandLineApp.cpp \
567 experimental/observer/detail/Core.cpp \
568 experimental/observer/detail/ObserverManager.cpp \
569 experimental/ProgramOptions.cpp \
570 experimental/Select64.cpp \
571 experimental/TestUtil.cpp
574 nobase_follyinclude_HEADERS += \
575 experimental/io/HugePages.h
576 libfolly_la_SOURCES += \
577 experimental/io/HugePages.cpp
580 if !HAVE_WEAK_SYMBOLS
581 libfollybase_la_SOURCES += detail/MallocImpl.cpp
584 if HAVE_BOOST_CONTEXT
585 nobase_follyinclude_HEADERS += \
587 fibers/AddTasks-inl.h \
588 fibers/AtomicBatchDispatcher.h \
589 fibers/AtomicBatchDispatcher-inl.h \
592 fibers/BatchDispatcher.h \
593 fibers/BoostContextCompatibility.h \
594 fibers/detail/AtomicBatchDispatcher.h \
595 fibers/EventBaseLoopController.h \
596 fibers/EventBaseLoopController-inl.h \
599 fibers/FiberManager.h \
600 fibers/FiberManager-inl.h \
601 fibers/FiberManagerInternal.h \
602 fibers/FiberManagerInternal-inl.h \
603 fibers/FiberManagerMap.h \
605 fibers/ForEach-inl.h \
606 fibers/GenericBaton.h \
607 fibers/GuardPageAllocator.h \
608 fibers/LoopController.h \
610 fibers/Promise-inl.h \
612 fibers/SimpleLoopController.h \
613 fibers/TimedMutex.h \
614 fibers/TimedMutex-inl.h \
615 fibers/TimeoutController.h \
620 libfolly_la_SOURCES += \
622 fibers/detail/AtomicBatchDispatcher.cpp \
624 fibers/FiberManager.cpp \
625 fibers/FiberManagerMap.cpp \
626 fibers/GuardPageAllocator.cpp \
627 fibers/Semaphore.cpp \
628 fibers/TimeoutController.cpp
631 libfollybasesse42_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
632 libfollybasesse42_la_CXXFLAGS = -msse4.2 -mpclmul
634 libfollybase_la_LIBADD = libfollybasesse42.la
635 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
637 libfolly_la_LIBADD = libfollybase.la
638 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
640 FingerprintTables.cpp: generate_fingerprint_tables
641 ./generate_fingerprint_tables
642 CLEANFILES += FingerprintTables.cpp
644 libfollybenchmark_la_SOURCES = Benchmark.cpp
645 libfollybenchmark_la_LIBADD = libfolly.la
646 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
648 # install pkg-config metadata file
649 pkgconfigdir = $(libdir)/pkgconfig
650 nodist_pkgconfig_DATA = libfolly.pc