ya.make 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. # Generated by devtools/yamaker (pypi).
  2. PY3_LIBRARY()
  3. VERSION(6.0.0)
  4. LICENSE(BSD-3-Clause)
  5. NO_COMPILER_WARNINGS()
  6. NO_LINT()
  7. NO_CHECK_IMPORTS(
  8. psutil._psaix
  9. psutil._psbsd
  10. psutil._pslinux
  11. psutil._psosx
  12. psutil._pssunos
  13. psutil._psutil_bsd
  14. psutil._psutil_common
  15. psutil._psutil_osx
  16. psutil._psutil_sunos
  17. psutil._psutil_windows
  18. psutil._pswindows
  19. )
  20. NO_UTIL()
  21. CFLAGS(
  22. -DPSUTIL_VERSION=600
  23. )
  24. SRCS(
  25. psutil/_psutil_common.c
  26. )
  27. IF (OS_LINUX)
  28. CFLAGS(
  29. -DPSUTIL_POSIX=1
  30. -DPSUTIL_LINUX=1
  31. )
  32. SRCS(
  33. psutil/_psutil_linux.c
  34. psutil/_psutil_posix.c
  35. psutil/arch/linux/disk.c
  36. psutil/arch/linux/mem.c
  37. psutil/arch/linux/net.c
  38. psutil/arch/linux/proc.c
  39. psutil/arch/linux/users.c
  40. )
  41. PY_REGISTER(
  42. psutil._psutil_linux
  43. psutil._psutil_posix
  44. )
  45. ENDIF()
  46. IF (OS_DARWIN)
  47. CFLAGS(
  48. -DPSUTIL_POSIX=1
  49. -DPSUTIL_OSX=1
  50. )
  51. LDFLAGS(
  52. -framework CoreFoundation
  53. -framework IOKit
  54. )
  55. SRCS(
  56. psutil/_psutil_osx.c
  57. psutil/_psutil_posix.c
  58. psutil/arch/osx/cpu.c
  59. psutil/arch/osx/disk.c
  60. psutil/arch/osx/mem.c
  61. psutil/arch/osx/net.c
  62. psutil/arch/osx/proc.c
  63. psutil/arch/osx/sensors.c
  64. psutil/arch/osx/sys.c
  65. )
  66. PY_REGISTER(
  67. psutil._psutil_osx
  68. psutil._psutil_posix
  69. )
  70. ENDIF()
  71. IF (OS_WINDOWS)
  72. CFLAGS(
  73. -DPSUTIL_WINDOWS=1
  74. -DPSUTIL_SIZEOF_PID_T=4
  75. )
  76. LDFLAGS(
  77. Shell32.lib
  78. PowrProf.lib
  79. Wtsapi32.lib
  80. Pdh.lib
  81. )
  82. SRCS(
  83. psutil/_psutil_windows.c
  84. psutil/arch/windows/cpu.c
  85. psutil/arch/windows/disk.c
  86. psutil/arch/windows/mem.c
  87. psutil/arch/windows/net.c
  88. psutil/arch/windows/proc.c
  89. psutil/arch/windows/proc_handles.c
  90. psutil/arch/windows/proc_info.c
  91. psutil/arch/windows/proc_utils.c
  92. psutil/arch/windows/security.c
  93. psutil/arch/windows/sensors.c
  94. psutil/arch/windows/services.c
  95. psutil/arch/windows/socks.c
  96. psutil/arch/windows/sys.c
  97. psutil/arch/windows/wmi.c
  98. )
  99. PY_REGISTER(
  100. psutil._psutil_windows
  101. )
  102. ENDIF()
  103. PY_SRCS(
  104. TOP_LEVEL
  105. psutil/__init__.py
  106. psutil/_common.py
  107. psutil/_compat.py
  108. psutil/_psaix.py
  109. psutil/_psbsd.py
  110. psutil/_pslinux.py
  111. psutil/_psosx.py
  112. psutil/_psposix.py
  113. psutil/_pssunos.py
  114. psutil/_pswindows.py
  115. )
  116. RESOURCE_FILES(
  117. PREFIX contrib/python/psutil/py3/
  118. .dist-info/METADATA
  119. .dist-info/top_level.txt
  120. )
  121. END()