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