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