diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/libc_compat/ya.make | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/libc_compat/ya.make')
-rw-r--r-- | contrib/libs/libc_compat/ya.make | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/contrib/libs/libc_compat/ya.make b/contrib/libs/libc_compat/ya.make index ed7fc64630..b92184c165 100644 --- a/contrib/libs/libc_compat/ya.make +++ b/contrib/libs/libc_compat/ya.make @@ -1,51 +1,51 @@ -OWNER(g:cpp-contrib) - -LIBRARY() - +OWNER(g:cpp-contrib) + +LIBRARY() + LICENSE( BSD-1-Clause AND BSD-2-Clause AND BSD-3-Clause AND ISC ) - + LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -NO_COMPILER_WARNINGS() +NO_COMPILER_WARNINGS() -NO_UTIL() +NO_UTIL() + +NO_RUNTIME() -NO_RUNTIME() - IF (NOT OS_WINDOWS) - SRCS( + SRCS( string.c - ) + ) ENDIF() -# Android libc function appearance is documented here: -# https://android.googlesource.com/platform/bionic/+/master/docs/status.md -# -# NB: nested IF's are needed due to the lack of lazy evaluation of logical statements: DEVTOOLS-7837 +# Android libc function appearance is documented here: +# https://android.googlesource.com/platform/bionic/+/master/docs/status.md +# +# NB: nested IF's are needed due to the lack of lazy evaluation of logical statements: DEVTOOLS-7837 IF (OS_ANDROID) SRCS( strlcat.c strlcpy.c ) - IF (ANDROID_API < 28) - SRCS( - glob.c - reallocarray.c - ) - ENDIF() - IF (ANDROID_API < 24) - SRCS( - ifaddrs.c - ) - ADDINCL( - GLOBAL contrib/libs/libc_compat/include/ifaddrs - ) - ENDIF() + IF (ANDROID_API < 28) + SRCS( + glob.c + reallocarray.c + ) + ENDIF() + IF (ANDROID_API < 24) + SRCS( + ifaddrs.c + ) + ADDINCL( + GLOBAL contrib/libs/libc_compat/include/ifaddrs + ) + ENDIF() IF (ANDROID_API < 21) SRCS( stpcpy.c @@ -59,18 +59,18 @@ IF (OS_WINDOWS OR OS_DARWIN OR OS_IOS) ) ENDIF() -IF (OS_DARWIN) - SRCS( - reallocarray.c - ) -ENDIF() - +IF (OS_DARWIN) + SRCS( + reallocarray.c + ) +ENDIF() + IF (OS_WINDOWS) - ADDINCL( - GLOBAL contrib/libs/libc_compat/include/windows - ) + ADDINCL( + GLOBAL contrib/libs/libc_compat/include/windows + ) SRCS( - reallocarray.c + reallocarray.c stpcpy.c strlcat.c strlcpy.c @@ -80,44 +80,44 @@ IF (OS_WINDOWS) ) ENDIF() -IF (OS_LINUX) - ADDINCL( - GLOBAL contrib/libs/libc_compat/include/readpassphrase - ) - SRCS( - readpassphrase.c - ) -ENDIF() - -IF (OS_LINUX AND NOT MUSL) - IF (OS_SDK == "ubuntu-12") - ADDINCL( - # uchar.h was introduced in glibc=2.16 - GLOBAL contrib/libs/libc_compat/include/uchar - ) - ENDIF() +IF (OS_LINUX) + ADDINCL( + GLOBAL contrib/libs/libc_compat/include/readpassphrase + ) + SRCS( + readpassphrase.c + ) +ENDIF() + +IF (OS_LINUX AND NOT MUSL) + IF (OS_SDK == "ubuntu-12") + ADDINCL( + # uchar.h was introduced in glibc=2.16 + GLOBAL contrib/libs/libc_compat/include/uchar + ) + ENDIF() IF (OS_SDK == "ubuntu-12" OR OS_SDK == "ubuntu-14" OR OS_SDK == "ubuntu-16") - ADDINCL( - GLOBAL contrib/libs/libc_compat/include/random - ) - SRCS( - # getrandom was added in glibc=2.25 - getrandom.c - # memfd_create was added in glibc=2.27 - memfd_create.c - ) - ENDIF() - IF (OS_SDK != "ubuntu-20") - SRCS( - # reallocarray was added in glibc=2.29 - reallocarray.c - ) - ENDIF() - SRCS( - # glibc does not offer strlcat / strlcpy yet - strlcat.c - strlcpy.c - ) -ENDIF() - -END() + ADDINCL( + GLOBAL contrib/libs/libc_compat/include/random + ) + SRCS( + # getrandom was added in glibc=2.25 + getrandom.c + # memfd_create was added in glibc=2.27 + memfd_create.c + ) + ENDIF() + IF (OS_SDK != "ubuntu-20") + SRCS( + # reallocarray was added in glibc=2.29 + reallocarray.c + ) + ENDIF() + SRCS( + # glibc does not offer strlcat / strlcpy yet + strlcat.c + strlcpy.c + ) +ENDIF() + +END() |