move FiberIOExecutor to wangle/concurrent
[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/FutureDAG.h \
104         experimental/io/FsUtil.h \
105         experimental/JSONSchema.h \
106         experimental/Select64.h \
107         experimental/SharedMutex.h \
108         experimental/StringKeyedCommon.h \
109         experimental/StringKeyedUnorderedMap.h \
110         experimental/StringKeyedUnorderedSet.h \
111         experimental/TestUtil.h \
112         experimental/TupleOps.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/SharedPromise.h \
138         futures/SharedPromise-inl.h \
139         futures/Timekeeper.h \
140         futures/Try-inl.h \
141         futures/Try.h \
142         futures/Unit.h \
143         futures/detail/Core.h \
144         futures/detail/FSM.h \
145         futures/detail/ThreadWheelTimekeeper.h \
146         futures/detail/Types.h \
147         gen/Base.h \
148         gen/Base-inl.h \
149         gen/Combine.h \
150         gen/Combine-inl.h \
151         gen/Core.h \
152         gen/Core-inl.h \
153         gen/File.h \
154         gen/File-inl.h \
155         gen/Parallel.h \
156         gen/Parallel-inl.h \
157         gen/ParallelMap.h \
158         gen/ParallelMap-inl.h \
159         gen/String.h \
160         gen/String-inl.h \
161         GroupVarint.h \
162         Hash.h \
163         IPAddress.h \
164         IPAddressV4.h \
165         IPAddressV6.h \
166         IPAddressException.h \
167         IndexedMemPool.h \
168         IntrusiveList.h \
169         io/Compression.h \
170         io/Cursor.h \
171         io/IOBuf.h \
172         io/IOBufQueue.h \
173         io/RecordIO.h \
174         io/RecordIO-inl.h \
175         io/TypedIOBuf.h \
176         io/ShutdownSocketSet.h \
177         io/async/AsyncTimeout.h \
178         io/async/AsyncTransport.h \
179         io/async/AsyncUDPServerSocket.h \
180         io/async/AsyncUDPSocket.h \
181         io/async/AsyncServerSocket.h \
182         io/async/AsyncSignalHandler.h \
183         io/async/AsyncSocket.h \
184         io/async/AsyncSocketBase.h \
185         io/async/AsyncSSLSocket.h \
186         io/async/AsyncSocketException.h \
187         io/async/DelayedDestruction.h \
188         io/async/EventBase.h \
189         io/async/EventBaseManager.h \
190         io/async/EventFDWrapper.h \
191         io/async/EventHandler.h \
192         io/async/EventUtil.h \
193         io/async/NotificationQueue.h \
194         io/async/HHWheelTimer.h \
195         io/async/Request.h \
196         io/async/SSLContext.h \
197         io/async/TimeoutManager.h \
198         io/async/test/AsyncSSLSocketTest.h \
199         io/async/test/BlockingSocket.h \
200         io/async/test/MockAsyncSocket.h \
201         io/async/test/MockAsyncServerSocket.h \
202         io/async/test/MockAsyncSSLSocket.h \
203         io/async/test/MockAsyncTransport.h \
204         io/async/test/TimeUtil.h \
205         io/async/test/UndelayedDestruction.h \
206         io/async/test/Util.h \
207         json.h \
208         Lazy.h \
209         LifoSem.h \
210         Likely.h \
211         Logging.h \
212         MacAddress.h \
213         Malloc.h \
214         MapUtil.h \
215         Memory.h \
216         MemoryMapping.h \
217         MoveWrapper.h \
218         MPMCPipeline.h \
219         MPMCQueue.h \
220         Optional.h \
221         PackedSyncPtr.h \
222         Padded.h \
223         Portability.h \
224         Preprocessor.h \
225         ProducerConsumerQueue.h \
226         Random.h \
227         Random-inl.h \
228         Range.h \
229         RWSpinLock.h \
230         ScopeGuard.h \
231         Singleton.h \
232         Singleton-inl.h \
233         SmallLocks.h \
234         small_vector.h \
235         SocketAddress.h \
236         sorted_vector_types.h \
237         SpinLock.h \
238         SpookyHashV1.h \
239         SpookyHashV2.h \
240         stats/BucketedTimeSeries-defs.h \
241         stats/BucketedTimeSeries.h \
242         stats/Histogram-defs.h \
243         stats/Histogram.h \
244         stats/MultiLevelTimeSeries-defs.h \
245         stats/MultiLevelTimeSeries.h \
246         String.h \
247         String-inl.h \
248         Subprocess.h \
249         Synchronized.h \
250         test/FBStringTestBenchmarks.cpp.h \
251         test/FBVectorTestBenchmarks.cpp.h \
252         test/function_benchmark/benchmark_impl.h \
253         test/function_benchmark/test_functions.h \
254         test/SynchronizedTestLib.h \
255         test/SynchronizedTestLib-inl.h \
256         ThreadCachedArena.h \
257         ThreadCachedInt.h \
258         ThreadLocal.h \
259         ThreadName.h \
260         TimeoutQueue.h \
261         Traits.h \
262         Unicode.h \
263         Uri.h \
264         Uri-inl.h \
265         Varint.h \
266         VersionCheck.h \
267         wangle/acceptor/Acceptor.h \
268         wangle/acceptor/ConnectionCounter.h \
269         wangle/acceptor/ConnectionManager.h \
270         wangle/acceptor/DomainNameMisc.h \
271         wangle/acceptor/LoadShedConfiguration.h \
272         wangle/acceptor/ManagedConnection.h \
273         wangle/acceptor/NetworkAddress.h \
274         wangle/acceptor/ServerSocketConfig.h \
275         wangle/acceptor/SocketOptions.h \
276         wangle/acceptor/TransportInfo.h \
277         wangle/bootstrap/ServerBootstrap.h \
278         wangle/bootstrap/ServerBootstrap-inl.h \
279         wangle/bootstrap/ServerSocketFactory.h \
280         wangle/bootstrap/ClientBootstrap.h \
281         wangle/channel/AsyncSocketHandler.h \
282         wangle/channel/EventBaseHandler.h \
283         wangle/channel/Handler.h \
284         wangle/channel/HandlerContext.h \
285         wangle/channel/HandlerContext-inl.h \
286         wangle/channel/OutputBufferingHandler.h \
287         wangle/channel/Pipeline.h \
288         wangle/channel/Pipeline-inl.h \
289         wangle/channel/StaticPipeline.h \
290         wangle/concurrent/BlockingQueue.h \
291         wangle/concurrent/Codel.h \
292         wangle/concurrent/CPUThreadPoolExecutor.h \
293         wangle/concurrent/FiberIOExecutor.h \
294         wangle/concurrent/FutureExecutor.h \
295         wangle/concurrent/IOExecutor.h \
296         wangle/concurrent/IOThreadPoolExecutor.h \
297         wangle/concurrent/GlobalExecutor.h \
298         wangle/concurrent/LifoSemMPMCQueue.h \
299         wangle/concurrent/NamedThreadFactory.h \
300         wangle/concurrent/ThreadFactory.h \
301         wangle/concurrent/ThreadPoolExecutor.h \
302         wangle/rx/Observable.h \
303         wangle/rx/Observer.h \
304         wangle/rx/Subject.h \
305         wangle/rx/Subscription.h \
306         wangle/rx/types.h \
307         wangle/ssl/ClientHelloExtStats.h \
308         wangle/ssl/DHParam.h \
309         wangle/ssl/PasswordInFile.h \
310         wangle/ssl/SSLCacheOptions.h \
311         wangle/ssl/SSLCacheProvider.h \
312         wangle/ssl/SSLContextConfig.h \
313         wangle/ssl/SSLContextManager.h \
314         wangle/ssl/SSLSessionCacheManager.h \
315         wangle/ssl/SSLStats.h \
316         wangle/ssl/SSLUtil.h \
317         wangle/ssl/TLSTicketKeyManager.h \
318         wangle/ssl/TLSTicketKeySeeds.h
319
320 FormatTables.cpp: build/generate_format_tables.py
321         build/generate_format_tables.py
322 CLEANFILES += FormatTables.cpp
323
324 EscapeTables.cpp: build/generate_escape_tables.py
325         build/generate_escape_tables.py
326 CLEANFILES += EscapeTables.cpp
327
328 GroupVarintTables.cpp: build/generate_varint_tables.py
329         build/generate_varint_tables.py
330 CLEANFILES += GroupVarintTables.cpp
331
332 libfollybase_la_SOURCES = \
333         Conv.cpp \
334         Demangle.cpp \
335         EscapeTables.cpp \
336         Format.cpp \
337         FormatTables.cpp \
338         Malloc.cpp \
339         Range.cpp \
340         StringBase.cpp \
341         String.cpp \
342         Unicode.cpp
343
344 libfolly_la_SOURCES = \
345         Bits.cpp \
346         detail/CacheLocality.cpp \
347         dynamic.cpp \
348         File.cpp \
349         FileUtil.cpp \
350         FingerprintTables.cpp \
351         futures/detail/ThreadWheelTimekeeper.cpp \
352         futures/Future.cpp \
353         futures/InlineExecutor.cpp \
354         futures/ManualExecutor.cpp \
355         futures/QueuedImmediateExecutor.cpp \
356         detail/Futex.cpp \
357         GroupVarint.cpp \
358         GroupVarintTables.cpp \
359         IPAddress.cpp \
360         IPAddressV4.cpp \
361         IPAddressV6.cpp \
362         LifoSem.cpp \
363         io/Compression.cpp \
364         io/IOBuf.cpp \
365         io/IOBufQueue.cpp \
366         io/RecordIO.cpp \
367         io/ShutdownSocketSet.cpp \
368         io/async/AsyncTimeout.cpp \
369         io/async/AsyncUDPSocket.cpp \
370         io/async/AsyncServerSocket.cpp \
371         io/async/AsyncSignalHandler.cpp \
372         io/async/AsyncSocket.cpp \
373         io/async/AsyncSSLSocket.cpp \
374         io/async/EventBase.cpp \
375         io/async/EventBaseManager.cpp \
376         io/async/EventHandler.cpp \
377         io/async/Request.cpp \
378         io/async/SSLContext.cpp \
379         io/async/HHWheelTimer.cpp \
380         io/async/test/TimeUtil.cpp \
381         json.cpp \
382         detail/MemoryIdler.cpp \
383         MacAddress.cpp \
384         MemoryMapping.cpp \
385         Random.cpp \
386         SafeAssert.cpp \
387         SocketAddress.cpp \
388         Singleton.cpp \
389         SpookyHashV1.cpp \
390         SpookyHashV2.cpp \
391         stats/Instantiations.cpp \
392         Subprocess.cpp \
393         ThreadCachedArena.cpp \
394         TimeoutQueue.cpp \
395         Uri.cpp \
396         Version.cpp \
397         experimental/fibers/Baton.cpp \
398         experimental/fibers/Fiber.cpp \
399         experimental/fibers/FiberManager.cpp \
400         experimental/fibers/FiberManagerMap.cpp \
401         experimental/fibers/TimeoutController.cpp \
402         experimental/FunctionScheduler.cpp \
403         experimental/io/FsUtil.cpp \
404         experimental/JSONSchema.cpp \
405         experimental/Select64.cpp \
406         experimental/SharedMutex.cpp \
407         experimental/TestUtil.cpp \
408         wangle/acceptor/Acceptor.cpp \
409         wangle/acceptor/ConnectionManager.cpp \
410         wangle/acceptor/LoadShedConfiguration.cpp \
411         wangle/acceptor/ManagedConnection.cpp \
412         wangle/acceptor/SocketOptions.cpp \
413         wangle/acceptor/TransportInfo.cpp \
414         wangle/bootstrap/ServerBootstrap.cpp \
415         wangle/concurrent/CPUThreadPoolExecutor.cpp \
416         wangle/concurrent/Codel.cpp \
417         wangle/concurrent/IOThreadPoolExecutor.cpp \
418         wangle/concurrent/GlobalExecutor.cpp \
419         wangle/concurrent/ThreadPoolExecutor.cpp \
420         wangle/ssl/PasswordInFile.cpp \
421         wangle/ssl/SSLContextManager.cpp \
422         wangle/ssl/SSLSessionCacheManager.cpp \
423         wangle/ssl/SSLUtil.cpp \
424         wangle/ssl/TLSTicketKeyManager.cpp
425
426 if HAVE_LINUX
427 nobase_follyinclude_HEADERS += \
428         experimental/io/HugePages.h
429 libfolly_la_SOURCES += \
430         experimental/io/HugePages.cpp
431 endif
432
433 if !HAVE_LINUX
434 nobase_follyinclude_HEADERS += detail/Clock.h
435 libfollybase_la_SOURCES += detail/Clock.cpp
436 endif
437
438 if !HAVE_WEAK_SYMBOLS
439 libfollybase_la_SOURCES += detail/MallocImpl.cpp
440 endif
441
442 if !HAVE_BITS_FUNCTEXCEPT
443 libfollybase_la_SOURCES += detail/FunctionalExcept.cpp
444 endif
445
446 libfollybase_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)
447
448 libfolly_la_LIBADD = libfollybase.la
449 libfolly_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION) -lssl
450
451 FingerprintTables.cpp: generate_fingerprint_tables
452         ./generate_fingerprint_tables
453 CLEANFILES += FingerprintTables.cpp
454
455 libfollybenchmark_la_SOURCES = Benchmark.cpp
456 libfollybenchmark_la_LIBADD = libfolly.la
457 libfollybenchmark_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LT_VERSION)