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