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