folly-config.h.cmake 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright 2016 Facebook, Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #pragma once
  17. #if !defined(FOLLY_MOBILE)
  18. #if defined(__ANDROID__) || \
  19. (defined(__APPLE__) && \
  20. (TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR || TARGET_OS_IPHONE))
  21. #define FOLLY_MOBILE 1
  22. #else
  23. #define FOLLY_MOBILE 0
  24. #endif
  25. #endif // FOLLY_MOBILE
  26. #cmakedefine FOLLY_HAVE_PTHREAD 1
  27. #cmakedefine FOLLY_HAVE_PTHREAD_ATFORK 1
  28. #cmakedefine FOLLY_HAVE_LIBGFLAGS 1
  29. #cmakedefine FOLLY_UNUSUAL_GFLAGS_NAMESPACE 1
  30. #cmakedefine FOLLY_GFLAGS_NAMESPACE @FOLLY_GFLAGS_NAMESPACE@
  31. #cmakedefine FOLLY_HAVE_LIBGLOG 1
  32. #cmakedefine FOLLY_USE_JEMALLOC 1
  33. #cmakedefine FOLLY_USE_LIBSTDCPP 1
  34. #if __has_include(<features.h>)
  35. #include <features.h>
  36. #endif
  37. #cmakedefine FOLLY_HAVE_MEMRCHR 1
  38. #cmakedefine FOLLY_HAVE_PREADV 1
  39. #cmakedefine FOLLY_HAVE_PWRITEV 1
  40. #cmakedefine FOLLY_HAVE_CLOCK_GETTIME 1
  41. #cmakedefine FOLLY_HAVE_OPENSSL_ASN1_TIME_DIFF 1
  42. #cmakedefine FOLLY_HAVE_IFUNC 1
  43. #cmakedefine FOLLY_HAVE_STD__IS_TRIVIALLY_COPYABLE 1
  44. #cmakedefine FOLLY_HAVE_UNALIGNED_ACCESS 1
  45. #cmakedefine FOLLY_HAVE_VLA 1
  46. #cmakedefine FOLLY_HAVE_WEAK_SYMBOLS 1
  47. #cmakedefine FOLLY_HAVE_LINUX_VDSO 1
  48. #cmakedefine FOLLY_HAVE_MALLOC_USABLE_SIZE 1
  49. #cmakedefine FOLLY_HAVE_INT128_T 1
  50. #cmakedefine FOLLY_SUPPLY_MISSING_INT128_TRAITS 1
  51. #cmakedefine FOLLY_HAVE_WCHAR_SUPPORT 1
  52. #cmakedefine FOLLY_HAVE_EXTRANDOM_SFMT19937 1
  53. #cmakedefine FOLLY_USE_LIBCPP 1
  54. #cmakedefine FOLLY_HAVE_XSI_STRERROR_R 1
  55. #cmakedefine HAVE_VSNPRINTF_ERRORS 1
  56. #cmakedefine FOLLY_USE_SYMBOLIZER 1
  57. #define FOLLY_DEMANGLE_MAX_SYMBOL_SIZE 1024
  58. #cmakedefine FOLLY_HAVE_SHADOW_LOCAL_WARNINGS 1
  59. #cmakedefine FOLLY_HAVE_LIBLZ4 1
  60. #cmakedefine FOLLY_HAVE_LIBLZMA 1
  61. #cmakedefine FOLLY_HAVE_LIBSNAPPY 1
  62. #cmakedefine FOLLY_HAVE_LIBZ 1
  63. #cmakedefine FOLLY_HAVE_LIBZSTD 1
  64. #cmakedefine FOLLY_HAVE_LIBBZ2 1
  65. #cmakedefine FOLLY_ASAN_ENABLED 1
  66. #cmakedefine FOLLY_SUPPORT_SHARED_LIBRARY 1