ya.make 681 B

1234567891011121314151617181920212223242526272829303132333435
  1. LIBRARY()
  2. VERSION(2.7.18)
  3. LICENSE(PSF-2.0)
  4. NO_WSHADOW()
  5. CFLAGS(
  6. GLOBAL -DARCADIA_PYTHON_UNICODE_SIZE=${ARCADIA_PYTHON_UNICODE_SIZE}
  7. )
  8. IF (NOT MSVC)
  9. CFLAGS(
  10. -fwrapv
  11. )
  12. ELSE()
  13. # This is needed to properly build this module under MSVS IDE
  14. # The MsBuild doesn't have separate control over C and C++ flags,
  15. # so CXXFLAGS are now applied if there is .cpp file in the module.
  16. # Need to disable this to let C-code build
  17. SET_APPEND(CXXFLAGS /U_CRT_USE_BUILTIN_OFFSETOF)
  18. ENDIF()
  19. SRCDIR(
  20. contrib/tools/python/src/Include
  21. )
  22. INCLUDE(${ARCADIA_ROOT}/contrib/tools/python/pyconfig.inc)
  23. INCLUDE(CMakeLists.inc)
  24. CHECK_CONFIG_H(pyconfig.h)
  25. END()