CMakeModules.inc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # Generated automatically by ../modules.py
  2. ADDINCL(contrib/libs/expat)
  3. ADDINCL(contrib/libs/libbz2)
  4. ADDINCL(contrib/libs/zlib)
  5. PEERDIR(contrib/libs/expat)
  6. PEERDIR(contrib/libs/libbz2)
  7. PEERDIR(contrib/libs/openssl)
  8. PEERDIR(contrib/libs/zlib)
  9. SRCS(Modules/_bisectmodule.c
  10. Modules/_collectionsmodule.c
  11. Modules/_csv.c
  12. Modules/_elementtree.c
  13. Modules/_functoolsmodule.c
  14. Modules/_hashopenssl.c
  15. Modules/_heapqmodule.c
  16. Modules/_hotshot.c
  17. Modules/_io/_iomodule.c
  18. Modules/_io/bufferedio.c
  19. Modules/_io/bytesio.c
  20. Modules/_io/fileio.c
  21. Modules/_io/iobase.c
  22. Modules/_io/stringio.c
  23. Modules/_io/textio.c
  24. Modules/_json.c
  25. Modules/_localemodule.c
  26. Modules/_lsprof.c
  27. Modules/_math.c
  28. Modules/_randommodule.c
  29. Modules/_struct.c
  30. Modules/arraymodule.c
  31. Modules/audioop.c
  32. Modules/binascii.c
  33. Modules/bz2module.c
  34. Modules/cPickle.c
  35. Modules/cStringIO.c
  36. Modules/cjkcodecs/multibytecodec.c
  37. Modules/cmathmodule.c
  38. Modules/datetimemodule.c
  39. Modules/future_builtins.c
  40. Modules/itertoolsmodule.c
  41. Modules/mathmodule.c
  42. Modules/md5.c
  43. Modules/md5module.c
  44. Modules/mmapmodule.c
  45. Modules/operator.c
  46. Modules/parsermodule.c
  47. Modules/rotatingtree.c
  48. Modules/sha256module.c
  49. Modules/sha512module.c
  50. Modules/shamodule.c
  51. Modules/stropmodule.c
  52. Modules/timemodule.c
  53. Modules/unicodedata.c
  54. Modules/zlibmodule.c)
  55. CFLAGS(-DBUILD_ZLIB)
  56. IF (ARCH_X86_64 OR ARCH_I386 OR ARCH_PPC64LE OR ARCH_AARCH64)
  57. IF (OS_CYGWIN)
  58. #TODO
  59. ELSE()
  60. PEERDIR(contrib/restricted/libffi)
  61. ADDINCL(contrib/restricted/libffi/include)
  62. SRCS(
  63. Modules/_ctypes/_ctypes.c
  64. Modules/_ctypes/callbacks.c
  65. Modules/_ctypes/callproc.c
  66. Modules/_ctypes/cfield.c
  67. Modules/_ctypes/stgdict.c
  68. )
  69. ENDIF()
  70. ENDIF()
  71. IF(FREEBSD)
  72. IF(FREEBSD_VER GREATER 7)
  73. SRCS(Modules/_multiprocessing/multiprocessing.c
  74. Modules/_multiprocessing/semaphore.c
  75. Modules/_multiprocessing/socket_connection.c)
  76. ENDIF(FREEBSD_VER GREATER 7)
  77. IF(FREEBSD_VER LESS 8)
  78. SRCS(Modules/_multiprocessing/multiprocessing.c
  79. Modules/_multiprocessing/socket_connection.c)
  80. ENDIF(FREEBSD_VER LESS 8)
  81. ENDIF(FREEBSD)
  82. IF(LINUX)
  83. SRCS(Modules/_multiprocessing/multiprocessing.c
  84. Modules/_multiprocessing/semaphore.c
  85. Modules/_multiprocessing/socket_connection.c
  86. Modules/spwdmodule.c
  87. )
  88. ENDIF(LINUX)
  89. IF(DARWIN OR OS_CYGWIN OR OS_IOS)
  90. SRCS(Modules/_multiprocessing/multiprocessing.c
  91. Modules/_multiprocessing/semaphore.c
  92. Modules/_multiprocessing/socket_connection.c
  93. )
  94. ENDIF(DARWIN OR OS_CYGWIN OR OS_IOS)
  95. IF (OS_DARWIN)
  96. SRCS(
  97. Mac/Modules/_scproxy.c
  98. )
  99. ENDIF()
  100. IF (UNIX)
  101. SRCS(Modules/_ssl.c
  102. Modules/cryptmodule.c
  103. Modules/fcntlmodule.c
  104. Modules/grpmodule.c
  105. Modules/posixmodule.c
  106. Modules/pwdmodule.c
  107. Modules/pyexpat.c
  108. Modules/resource.c
  109. Modules/selectmodule.c
  110. Modules/socketmodule.c
  111. Modules/syslogmodule.c
  112. Modules/termios.c
  113. )
  114. IF (OS_CYGWIN)
  115. #PASS
  116. ELSEIF (NOT DARWIN AND NOT OS_IOS)
  117. EXTRALIBS(crypt)
  118. ENDIF()
  119. # bpo-30947: Python uses best available entropy sources to
  120. # call XML_SetHashSalt(), expat entropy sources are not needed
  121. CFLAGS(-DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY -DUSE_PYEXPAT_CAPI)
  122. ENDIF(UNIX)
  123. IF (OS_WINDOWS)
  124. SRCS(Modules/_multiprocessing/multiprocessing.c
  125. Modules/_multiprocessing/pipe_connection.c
  126. Modules/_multiprocessing/semaphore.c
  127. Modules/_multiprocessing/socket_connection.c
  128. Modules/_multiprocessing/win32_functions.c
  129. Modules/_ssl.c
  130. Modules/posixmodule.c
  131. Modules/pyexpat.c
  132. Modules/selectmodule.c
  133. Modules/socketmodule.c
  134. )
  135. LDFLAGS(crypt32.lib ws2_32.lib)
  136. CFLAGS(-DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY -DHAVE_MEMMOVE -DUSE_PYEXPAT_CAPI)
  137. CFLAGS(-DEAI_ADDRFAMILY=1 -DHAVE_SOCKADDR_STORAGE=1 -DHAVE_ADDRINFO=1)
  138. IF (ARCH_X86_64)
  139. CFLAGS(/D_WIN64 /D_M_X64)
  140. ENDIF()
  141. ENDIF(WIN32)