pyconfig.inc 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. NO_COMPILER_WARNINGS()
  2. ENABLE(USE_ARCADIA_PYTHON)
  3. SET(PYTHON_DIR "contrib/tools/python")
  4. SET(PYTHON_SRC_DIR "${PYTHON_DIR}/src")
  5. SET(PYTHON_ROOT "${ARCADIA_ROOT}/${PYTHON_DIR}")
  6. SET(PYTHON_SRC_ROOT "${ARCADIA_ROOT}/${PYTHON_SRC_DIR}")
  7. SET(PYTHON_FLAGS "-DPy_BUILD_CORE")
  8. ADDINCL(${PYTHON_SRC_DIR}/Include)
  9. CFLAGS(
  10. -DUNQUOTED_VERSION=2.7
  11. )
  12. IF (NOT WIN32)
  13. EXTRALIBS(-lutil)
  14. IF (LINUX)
  15. EXTRALIBS(-ldl)
  16. CFLAGS(
  17. -DUNQUOTED_PYTHONPATH=:plat-linux2
  18. -DUNQUOTED_PLATFORM=linux2
  19. )
  20. ELSEIF (FREEBSD)
  21. CFLAGS(
  22. -DUNQUOTED_PYTHONPATH=:plat-freebsd${FREEBSD_VER}
  23. -DUNQUOTED_PLATFORM=freebsd${FREEBSD_VER}
  24. )
  25. ELSEIF (DARWIN)
  26. CFLAGS(
  27. -DUNQUOTED_PYTHONPATH=:plat-darwin
  28. -DUNQUOTED_PLATFORM=darwin
  29. )
  30. LDFLAGS(
  31. -framework SystemConfiguration
  32. -framework CoreFoundation
  33. )
  34. ENDIF ()
  35. ENDIF ()
  36. IF (MSVC)
  37. CFLAGS(/DXMLCALL= /DXMLIMPORT=)
  38. ENDIF ()