ya.make 3.7 KB

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