ya.make 663 B

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