ya.make 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. PY23_LIBRARY()
  2. LICENSE(Service-Py23-Proxy)
  3. WITHOUT_LICENSE_TEXTS()
  4. NO_PYTHON_INCLUDES()
  5. IF (USE_ARCADIA_PYTHON)
  6. ADDINCL(
  7. GLOBAL contrib/libs/python/Include
  8. )
  9. PEERDIR(
  10. library/python/symbols/module
  11. library/python/symbols/libc
  12. library/python/symbols/python
  13. )
  14. IF (NOT OS_WINDOWS AND NOT OPENSOURCE)
  15. PEERDIR(
  16. library/python/symbols/uuid
  17. )
  18. ENDIF()
  19. IF (MODULE_TAG == "PY2")
  20. CFLAGS(
  21. GLOBAL -DUSE_PYTHON2
  22. )
  23. PEERDIR(
  24. contrib/tools/python/lib
  25. library/python/runtime
  26. )
  27. ELSE()
  28. CFLAGS(
  29. GLOBAL -DUSE_PYTHON3
  30. )
  31. PEERDIR(
  32. contrib/tools/python3/lib
  33. contrib/tools/python3/src
  34. library/python/runtime_py3
  35. )
  36. ENDIF()
  37. ELSE()
  38. IF (USE_SYSTEM_PYTHON)
  39. PEERDIR(
  40. build/platform/python
  41. )
  42. ELSE()
  43. CFLAGS(GLOBAL $PYTHON_INCLUDE)
  44. ENDIF()
  45. ENDIF()
  46. END()