aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/base/ya.make
blob: 87f17811465d0c4f37a06b367bebe1709b28b376 (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
LIBRARY()

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()