Manage handlers with shared_ptrs, introduce StaticPipeline
[folly.git] / folly / Makefile.am
1 SUBDIRS = . test
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 CLEANFILES =
6
7 noinst_PROGRAMS = generate_fingerprint_tables
8 generate_fingerprint_tables_SOURCES = build/GenerateFingerprintTables.cpp
9 generate_fingerprint_tables_LDADD = libfollybase.la
10
11 noinst_LTLIBRARIES = \
12         libfollybase.la
13
14 lib_LTLIBRARIES = \
15         libfolly.la \
16         libfollybenchmark.la
17
18 follyincludedir = $(includedir)/folly
19
20 nobase_follyinclude_HEADERS = \
21         ApplyTuple.h \
22         Arena.h \
23         Arena-inl.h \
24         AtomicBitSet.h \
25         AtomicHashArray.h \
26         AtomicHashArray-inl.h \
27         AtomicHashMap.h \
28         AtomicHashMap-inl.h \
29         AtomicLinkedList.h \
30         AtomicStruct.h \
31         Baton.h \
32         Benchmark.h \
33         Bits.h \
34         Checksum.h \
35         Chrono.h \
36         ConcurrentSkipList.h \
37         ConcurrentSkipList-inl.h \
38         Conv.h \
39         CpuId.h \
40         CPortability.h \
41         detail/AtomicHashUtils.h \
42         detail/BitIteratorDetail.h \
43         detail/BitsDetail.h \
44         detail/CacheLocality.h \
45         detail/ChecksumDetail.h \
46         detail/Clock.h \
47         detail/DiscriminatedPtrDetail.h \
48         detail/ExceptionWrapper.h \
49         detail/FileUtilDetail.h \
50         detail/FingerprintPolynomial.h \
51         detail/FunctionalExcept.h \
52         detail/Futex.h \
53         detail/GroupVarintDetail.h \
54         detail/IPAddress.h \
55         detail/Malloc.h \
56         detail/MemoryIdler.h \
57         detail/MPMCPipelineDetail.h \
58         detail/SlowFingerprint.h \
59         detail/SpinLockImpl.h \
60         detail/Stats.h \
61         detail/ThreadLocalDetail.h \
62         detail/UncaughtExceptionCounter.h \
63         Demangle.h \
64         DiscriminatedPtr.h \
65         DynamicConverter.h \
66         dynamic.h \
67         dynamic-inl.h \
68         Exception.h \
69         ExceptionWrapper.h \
70         Executor.h \
71         EvictingCacheMap.h \
72         experimental/AutoTimer.h \
73         experimental/Bits.h \
74         experimental/EliasFanoCoding.h \
75         experimental/EventCount.h \
76         experimental/fibers/AddTasks.h \
77         experimental/fibers/AddTasks-inl.h \
78         experimental/fibers/Baton.h \
79         experimental/fibers/Baton-inl.h \
80         experimental/fibers/BoostContextCompatibility.h \
81         experimental/fibers/EventBaseLoopController.h \
82         experimental/fibers/EventBaseLoopController-inl.h \
83         experimental/fibers/ExecutionObserver.h \
84         experimental/fibers/Fiber.h \
85         experimental/fibers/Fiber-inl.h \
86         experimental/fibers/FiberManager.h \
87         experimental/fibers/FiberManager-inl.h \
88         experimental/fibers/FiberManagerMap.h \
89         experimental/fibers/ForEach.h \
90         experimental/fibers/ForEach-inl.h \
91         experimental/fibers/GenericBaton.h \
92         experimental/fibers/GuardPageAllocator.h \
93         experimental/fibers/GuardPageAllocator-inl.h \
94         experimental/fibers/LoopController.h \
95         experimental/fibers/Promise.h \
96         experimental/fibers/Promise-inl.h \
97         experimental/fibers/SimpleLoopController.h \
98         experimental/fibers/TimeoutController.h \
99         experimental/fibers/traits.h \
100         experimental/fibers/WhenN.h \
101         experimental/fibers/WhenN-inl.h \
102         experimental/FunctionScheduler.h \
103         experimental/io/FsUtil.h \
104         experimental/JSONSchema.h \
105         experimental/Select64.h \
106         experimental/SharedMutex.h \
107         experimental/Singleton.h \
108         experimental/Singleton-inl.h \
109         experimental/StringKeyedCommon.h \
110         experimental/StringKeyedUnorderedMap.h \
111         experimental/StringKeyedUnorderedSet.h \
112         experimental/TestUtil.h \
113         FBString.h \
114         FBVector.h \
115         File.h \
116         FileUtil.h \
117         Fingerprint.h \
118         folly-config.h \
119         Foreach.h \
120         FormatArg.h \
121         Format.h \
122         Format-inl.h \
123         futures/Deprecated.h \
124         futures/DrivableExecutor.h \
125         futures/Future-pre.h \
126         futures/helpers.h \
127         futures/Future.h \
128         futures/Future-inl.h \
129         futures/FutureException.h \
130         futures/InlineExecutor.h \
131         futures/ManualExecutor.h \
132         futures/OpaqueCallbackShunt.h \
133         futures/Promise-inl.h \
134         futures/Promise.h \
135         futures/QueuedImmediateExecutor.h \
136         futures/ScheduledExecutor.h \
137         futures/Timekeeper.h \
138         futures/Try-inl.h \
139         futures/Try.h \
140         futures/Unit.h \
141         futures/detail/Core.h \
142         futures/detail/FSM.h \
143         futures/detail/ThreadWheelTimekeeper.h \
144         futures/detail/Types.h \
145         gen/Base.h \
146         gen/Base-inl.h \
147         gen/Combine.h \
148         gen/Combine-inl.h \
149         gen/Core.h \
150         gen/Core-inl.h \
151         gen/File.h \
152         gen/File-inl.h \
153         gen/Parallel.h \
154         gen/Parallel-inl.h \
155         gen/ParallelMap.h \
156         gen/ParallelMap-inl.h \
157         gen/String.h \
158         gen/String-inl.h \
159         GroupVarint.h \
160         Hash.h \
161         IPAddress.h \
162         IPAddressV4.h \
163         IPAddressV6.h \
164         IPAddressException.h \
165         IndexedMemPool.h \
166         IntrusiveList.h \
167         io/Compression.h \
168         io/Cursor.h \
169         io/IOBuf.h \
170         io/IOBufQueue.h \
171         io/RecordIO.h \
172         io/RecordIO-inl.h \
173         io/TypedIOBuf.h \
174         io/ShutdownSocketSet.h \
175         io/async/AsyncTimeout.h \
176         io/async/AsyncTransport.h \
177         io/async/AsyncUDPServerSocket.h \
178         io/async/AsyncUDPSocket.h \
179         io/async/AsyncServerSocket.h \
180         io/async/AsyncSignalHandler.h \
181         io/async/AsyncSocket.h \
182         io/async/AsyncSocketBase.h \
183         io/async/AsyncSSLSocket.h \
184         io/async/AsyncSocketException.h \
185         io/async/DelayedDestruction.h \
186         io/async/EventBase.h \
187         io/async/EventBaseManager.h \
188         io/async/EventFDWrapper.h \
189         io/async/EventHandler.h \
190         io/async/EventUtil.h \
191         io/async/NotificationQueue.h \
192         io/async/HHWheelTimer.h \
193         io/async/Request.h \
194         io/async/SSLContext.h \
195         io/async/TimeoutManager.h \
196         io/async/test/AsyncSSLSocketTest.h \
197         io/async/test/BlockingSocket.h \
198         io/async/test/MockAsyncSocket.h \
199         io/async/test/MockAsyncServerSocket.h \
200         io/async/test/MockAsyncSSLSocket.h \
201         io/async/test/MockAsyncTransport.h \
202         io/async/test/TimeUtil.h \
203         io/async/test/UndelayedDestruction.h \
204         io/async/test/Util.h \
205         json.h \
206         Lazy.h \
207         LifoSem.h \
208         Likely.h \
209         Logging.h \
210         MacAddress.h \
211         Malloc.h \
212         MapUtil.h \
213         Memory.h \
214         MemoryMapping.h \
215         MoveWrapper.h \
216         MPMCPipeline.h \
217         MPMCQueue.h \
218         Optional.h \
219         PackedSyncPtr.h \
220         Padded.h \
221         Portability.h \
222         Preprocessor.h \
223         ProducerConsumerQueue.h \
224         Random.h \
225         Random-inl.h \
226         Range.h \
227         RWSpinLock.h \
228         ScopeGuard.h \
229         SmallLocks.h \
230         small_vector.h \
231         SocketAddress.h \
232         sorted_vector_types.h \
233         SpinLock.h \
234         SpookyHashV1.h \
235         SpookyHashV2.h \
236         stats/BucketedTimeSeries-defs.h \
237         stats/BucketedTimeSeries.h \
238         stats/Histogram-defs.h \
239         stats/Histogram.h \
240         stats/MultiLevelTimeSeries-defs.h \
241         stats/MultiLevelTimeSeries.h \
242         String.h \
243         String-inl.h \
244         Subprocess.h \
245         Synchronized.h \
246         test/FBStringTestBenchmarks.cpp.h \
247         test/FBVectorTestBenchmarks.cpp.h \
248         test/function_benchmark/benchmark_impl.h \
249         test/function_benchmark/test_functions.h \
250         test/SynchronizedTestLib.h \
251         test/SynchronizedTestLib-inl.h \
252         ThreadCachedArena.h \
253         ThreadCachedInt.h \
254         ThreadLocal.h \
255         ThreadName.h \
256         TimeoutQueue.h \
257         Traits.h \
258         Unicode.h \
259         Uri.h \
260         Uri-inl.h \
261         Varint.h \
262         VersionCheck.h \
263         wangle/acceptor/Acceptor.h \
264         wangle/acceptor/ConnectionCounter.h \
265         wangle/acceptor/ConnectionManager.h \
266         wangle/acceptor/DomainNameMisc.h \
267         wangle/acceptor/LoadShedConfiguration.h \
268         wangle/acceptor/ManagedConnection.h \
269         wangle/acceptor/NetworkAddress.h \
270         wangle/acceptor/ServerSocketConfig.h \
271         wangle/acceptor/SocketOptions.h \
272         wangle/acceptor/TransportInfo.h \
273         wangle/bootstrap/ServerBootstrap.h \
274         wangle/bootstrap/ServerBootstrap-inl.h \
275         wangle/bootstrap/ServerSocketFactory.h \
276         wangle/bootstrap/ClientBootstrap.h \
277         wangle/channel/AsyncSocketHandler.h \
278         wangle/channel/Handler.h \
279         wangle/channel/HandlerContext.h \
280         wangle/channel/OutputBufferingHandler.h \
281         wangle/channel/Pipeline.h \
282         wangle/channel/StaticPipeline.h \
283         wangle/concurrent/BlockingQueue.h \
284         wangle/concurrent/Codel.h \
285         wangle/concurrent/CPUThreadPoolExecutor.h \
286         wangle/concurrent/FutureExecutor.h \
287         wangle/concurrent/IOExecutor.h \
288         wangle/concurrent/IOThreadPoolExecutor.h \
289         wangle/concurrent/GlobalExecutor.h \
290         wangle/concurrent/LifoSemMPMCQueue.h \
291         wangle/concurrent/NamedThreadFactory.h \
292         wangle/concurrent/ThreadFactory.h \
293         wangle/concurrent/ThreadPoolExecutor.h \
294         wangle/rx/Observable.h \
295         wangle/rx/Observer.h \
296         wangle/rx/Subject.h \
297         wangle/rx/Subscription.h \
298         wangle/rx/types.h \
299         wangle/ssl/ClientHelloExtStats.h \
300         wangle/ssl/DHParam.h \
301         wangle/ssl/PasswordInFile.h \
302         wangle/ssl/SSLCacheOptions.h \
303         wangle/ssl/SSLCacheProvider.h \
304         wangle/ssl/SSLContextConfig.h \
305         wangle/ssl/SSLContextManager.h \
306         wangle/ssl/SSLSessionCacheManager.h \
307         wangle/ssl/SSLStats.h \
308         wangle/ssl/SSLUtil.h \
309         wangle/ssl/TLSTicketKeyManager.h \
310         wangle/ssl/TLSTicketKeySeeds.h
311
312 FormatTables.cpp: build/generate_format_tables.py
313         build/generate_format_tables.py
314 CLEANFILES += FormatTables.cpp
315
316 EscapeTables.cpp: build/generate_escape_tables.py
317         build/generate_escape_tables.py
318 CLEANFILES += EscapeTables.cpp
319
320 GroupVarintTables.cpp: build/generate_varint_tables.py
321         build/generate_varint_tables.py
322 CLEANFILES += GroupVarintTables.cpp
323
324 libfollybase_la_SOURCES = \
325         Conv.cpp \
326         Demangle.cpp \
327         EscapeTables.cpp \
328         Format.cpp \
329         FormatTables.cpp \
330         Malloc.cpp \
331         Range.cpp \
332         String.cpp \
333         Unicode.cpp
334
335 libfolly_la_SOURCES = \
336         Bits.cpp \
337         detail/CacheLocality.cpp \
338         dynamic.cpp \
339         File.cpp \
340         FileUtil.cpp \
341         FingerprintTables.cpp \
342         futures/detail/ThreadWheelTimekeeper.cpp \
343         futures/Future.cpp \
344         futures/InlineExecutor.cpp \
345         futures/ManualExecutor.cpp \
346         futures/QueuedImmediateExecutor.cpp \
347         detail/Futex.cpp \
348         GroupVarint.cpp \
349         GroupVarintTables.cpp \
350         IPAddress.cpp \
351         IPAddressV4.cpp \
352         IPAddressV6.cpp \
353         LifoSem.cpp \
354         io/Compression.cpp \
355         io/IOBuf.cpp \
356         io/IOBufQueue.cpp \
357         io/RecordIO.cpp \
358         io/ShutdownSocketSet.cpp \
359         io/async/AsyncTimeout.cpp \
360         io/async/AsyncUDPSocket.cpp \
361         io/async/AsyncServerSocket.cpp \
362         io/async/AsyncSignalHandler.cpp \
363         io/async/AsyncSocket.cpp \
364         io/async/AsyncSSLSocket.cpp \
365         io/async/EventBase.cpp \
366         io/async/EventBaseManager.cpp \
367         io/async/EventHandler.cpp \
368         io/async/Request.cpp \
369         io/async/SSLContext.cpp \
370         io/async/HHWheelTimer.cpp \
371         io/async/test/TimeUtil.cpp \
372         json.cpp \
373         detail/MemoryIdler.cpp \
374         MacAddress.cpp \
375         MemoryMapping.cpp \
376         Random.cpp \
377         SafeAssert.cpp \
378         SocketAddress.cpp \
379         SpookyHashV1.cpp \
380         SpookyHashV2.cpp \
381         stats/Instantiations.cpp \
382         Subprocess.cpp \
383         ThreadCachedArena.cpp \
384         TimeoutQueue.cpp \
385         Uri.cpp \
386         Version.cpp \
387         experimental/fibers/Baton.cpp \
388         experimental/fibers/Fiber.cpp \
389         experimental/fibers/FiberManager.cpp \
390         experimental/fibers/FiberManagerMap.cpp \
391         experimental/fibers/TimeoutController.cpp \
392         experimental/FunctionScheduler.cpp \
393         experimental/io/FsUtil.cpp \
394         experimental/JSONSchema.cpp \
395         experimental/Select64.cpp \
396         experimental/SharedMutex.cpp \
397         experimental/Singleton.cpp \
398         experimental/TestUtil.cpp \
399         wangle/acceptor/Acceptor.cpp \
400         wangle/acceptor/ConnectionManager.cpp \
401         wangle/acceptor/LoadShedConfiguration.cpp \
402         wangle/acceptor/ManagedConnection.cpp \
403         wangle/acceptor/SocketOptions.cpp \
404         wangle/acceptor/TransportInfo.cpp \
405         wangle/bootstrap/ServerBootstrap.cpp \
406         wangle/concurrent/CPUThreadPoolExecutor.cpp \
407         wangle/concurrent/Codel.cpp \
408         wangle/concurrent/IOThreadPoolExecutor.cpp \
409         wangle/concurrent/GlobalExecutor.cpp \
410         wangle/concurrent/ThreadPoolExecutor.cpp \
411         wangle/ssl/PasswordInFile.cpp \
412         wangle/ssl/SSLContextManager.cpp \
413         wangle/ssl/SSLSessionCacheManager.cpp \
414         wangle/ssl/SSLUtil.cpp \
415         wangle/ssl/TLSTicketKeyManager.cpp
416
417 if HAVE_LINUX
418 nobase_follyinclude_HEADERS += \
419         experimental/io/HugePages.h
420 libfolly_la_SOURCES += \
421         experimental/io/HugePages.cpp
422 endif
423
424 if !HAVE_LINUX
425 nobase_follyinclude_HEADERS += detail/Clock.h
426 libfollybase_la_SOURCES += detail/Clock.cpp
427 endif
428
429 if !HAVE_WEAK_SYMBOLS
430 libfollybase_la_SOURCES += detail/MallocImpl.cpp
431 endif
432
433 if !HAVE_BITS_FUNCTEXCEPT
434 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
435 endif
436
437 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
438
439 libfolly_la_LIBADD = libfollybase.la
440 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
441
442 FingerprintTables.cpp: generate_fingerprint_tables
443         ./generate_fingerprint_tables
444 CLEANFILES += FingerprintTables.cpp
445
446 libfollybenchmark_la_SOURCES = Benchmark.cpp
447 libfollybenchmark_la_LIBADD = libfolly.la
448 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)