ya.make 1.0 KB

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