ya.make 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. LIBRARY()
  2. LICENSE(
  3. BSD-3-Clause AND
  4. GPL-3.0-or-later AND
  5. LGPL-2.0-or-later
  6. )
  7. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  8. IF (NOT MUSL)
  9. NO_RUNTIME()
  10. ENDIF()
  11. NO_COMPILER_WARNINGS()
  12. ADDINCL(
  13. GLOBAL contrib/tools/m4/lib
  14. )
  15. IF (OS_WINDOWS)
  16. ADDINCL(
  17. GLOBAL contrib/tools/m4/lib/platform/win64
  18. )
  19. ELSE()
  20. ADDINCL(
  21. GLOBAL contrib/tools/m4/lib/platform/posix
  22. )
  23. ENDIF()
  24. IF (OS_DARWIN)
  25. CFLAGS(
  26. -D_XOPEN_SOURCE=600
  27. )
  28. ENDIF()
  29. IF (NOT OS_WINDOWS)
  30. CFLAGS(
  31. GLOBAL -Dregcomp=gnu_regcomp
  32. GLOBAL -Dregerror=gnu_regerror
  33. GLOBAL -Dregfree=gnu_regfree
  34. GLOBAL -Dregexec=gnu_regexec
  35. )
  36. ENDIF()
  37. SRCS(
  38. abitset.c
  39. argmatch.c
  40. asnprintf.c
  41. basename-lgpl.c
  42. basename.c
  43. binary-io.c
  44. bitrotate.c
  45. bitset.c
  46. bitset_stats.c
  47. bitsetv-print.c
  48. bitsetv.c
  49. c-ctype.c
  50. c-stack.c
  51. c-strcasecmp.c
  52. c-strncasecmp.c
  53. calloc.c
  54. clean-temp.c
  55. cloexec.c
  56. close-stream.c
  57. close.c
  58. closein.c
  59. closeout.c
  60. concat-filename.c
  61. dirname-lgpl.c
  62. dirname.c
  63. dup-safer-flag.c
  64. dup-safer.c
  65. dup2.c
  66. ebitset.c
  67. error.c
  68. execute.c
  69. exitfail.c
  70. fatal-signal.c
  71. fclose.c
  72. fcntl.c
  73. fd-hook.c
  74. fd-safer-flag.c
  75. fd-safer.c
  76. fflush.c
  77. filenamecat-lgpl.c
  78. filenamecat.c
  79. float.c
  80. fopen-safer.c
  81. fpurge.c
  82. freading.c
  83. fstat.c
  84. get-errno.c
  85. getdtablesize.c
  86. getopt.c
  87. getopt1.c
  88. gl_avltree_oset.c
  89. gl_linkedhash_list.c
  90. gl_list.c
  91. gl_oset.c
  92. gl_xlist.c
  93. gl_xoset.c
  94. hash.c
  95. isnand.c
  96. isnanf.c
  97. isnanl.c
  98. itold.c
  99. lbitset.c
  100. localcharset.c
  101. lseek.c
  102. lstat.c
  103. malloc.c
  104. malloca.c
  105. mbrtowc.c
  106. mbswidth.c
  107. memchr2.c
  108. mkstemp-safer.c
  109. nl_langinfo.c
  110. pipe-safer.c
  111. pipe2-safer.c
  112. printf-args.c
  113. printf-frexp.c
  114. printf-frexpl.c
  115. printf-parse.c
  116. progname.c
  117. quotearg.c
  118. raise.c
  119. rawmemchr.c
  120. readlink.c
  121. realloc.c
  122. regex.c
  123. rename.c
  124. rmdir.c
  125. secure_getenv.c
  126. sig-handler.c
  127. signbitd.c
  128. signbitf.c
  129. signbitl.c
  130. spawn-pipe.c
  131. stat.c
  132. stpcpy.c
  133. strchrnul.c
  134. strdup.c
  135. stripslash.c
  136. tempname.c
  137. timevar.c
  138. tmpdir.c
  139. unistd.c
  140. unsetenv.c
  141. vasnprintf.c
  142. vbitset.c
  143. verror.c
  144. version-etc-fsf.c
  145. version-etc.c
  146. wait-process.c
  147. wctype-h.c
  148. xalloc-die.c
  149. xasprintf.c
  150. xconcat-filename.c
  151. xmalloc.c
  152. xmalloca.c
  153. xmemdup0.c
  154. xprintf.c
  155. xsize.c
  156. xstrndup.c
  157. xvasprintf.c
  158. )
  159. IF (NOT MUSL)
  160. SRCS(
  161. freadahead.c
  162. fseterr.c
  163. # fseek.c
  164. )
  165. ENDIF()
  166. IF (NOT OS_LINUX)
  167. SRCS(
  168. pipe2.c
  169. strverscmp.c
  170. )
  171. ENDIF()
  172. IF (NOT OS_WINDOWS)
  173. SRCS(
  174. stdio-write.c
  175. )
  176. ENDIF()
  177. IF (OS_WINDOWS)
  178. SRCS(
  179. frexp.c
  180. wcrtomb.c
  181. perror.c
  182. strstr.c
  183. mkstemp.c
  184. vasprintf.c
  185. strsignal.c
  186. mkdtemp.c
  187. fseeko.c
  188. fopen.c
  189. ftello.c
  190. gettimeofday.c
  191. localeconv.c
  192. msvc-inval.c
  193. msvc-nothrow.c
  194. open.c
  195. sigaction.c
  196. sigprocmask.c
  197. snprintf.c
  198. spawn_faction_addclose.c
  199. spawn_faction_adddup2.c
  200. spawn_faction_addopen.c
  201. spawn_faction_destroy.c
  202. spawn_faction_init.c
  203. spawnattr_destroy.c
  204. spawnattr_init.c
  205. spawnattr_setflags.c
  206. spawnattr_setsigmask.c
  207. spawni.c
  208. spawnp.c
  209. strndup.c
  210. waitpid.c
  211. wcwidth.c
  212. uniwidth/width.c
  213. )
  214. ENDIF()
  215. IF (NOT OS_LINUX OR MUSL)
  216. SRCS(
  217. obstack.c
  218. obstack_printf.c
  219. )
  220. ENDIF()
  221. IF (OS_CYGWIN OR OS_LINUX)
  222. #not need it
  223. ELSE()
  224. SRCS(
  225. fpending.c
  226. )
  227. ENDIF()
  228. END()