ya.make 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. LIBRARY()
  2. LICENSE(
  3. BSD-3-Clause AND
  4. GPL-3.0-or-later
  5. )
  6. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  7. IF (NOT MUSL)
  8. NO_RUNTIME()
  9. ENDIF()
  10. NO_COMPILER_WARNINGS()
  11. ADDINCL(
  12. GLOBAL contrib/tools/bison/lib
  13. )
  14. IF (OS_WINDOWS)
  15. ADDINCL(
  16. GLOBAL contrib/tools/bison/lib/platform/win64
  17. )
  18. ELSE()
  19. ADDINCL(
  20. GLOBAL contrib/tools/bison/lib/platform/posix
  21. )
  22. ENDIF()
  23. IF (NOT OS_WINDOWS)
  24. CFLAGS(
  25. GLOBAL -Dregerror=gnu_regerror
  26. GLOBAL -Dregfree=gnu_regfree
  27. GLOBAL -Dregexec=gnu_regexec
  28. )
  29. ENDIF()
  30. SRCS(
  31. abitset.c
  32. argmatch.c
  33. basename-lgpl.c
  34. basename.c
  35. binary-io.c
  36. bitrotate.c
  37. bitset.c
  38. bitset_stats.c
  39. bitsetv-print.c
  40. bitsetv.c
  41. c-ctype.c
  42. c-strcasecmp.c
  43. c-strncasecmp.c
  44. cloexec.c
  45. close.c
  46. close-stream.c
  47. closeout.c
  48. concat-filename.c
  49. dirname-lgpl.c
  50. dirname.c
  51. dup-safer-flag.c
  52. dup-safer.c
  53. dup2.c
  54. ebitset.c
  55. error.c
  56. exitfail.c
  57. fatal-signal.c
  58. fcntl.c
  59. fd-hook.c
  60. fd-safer-flag.c
  61. fd-safer.c
  62. fopen-safer.c
  63. get-errno.c
  64. getdtablesize.c
  65. getopt.c
  66. getopt1.c
  67. hash.c
  68. isnanl.c
  69. isnand.c
  70. lbitset.c
  71. localcharset.c
  72. malloc.c
  73. malloca.c
  74. mbswidth.c
  75. mbrtowc.c
  76. nl_langinfo.c
  77. pipe-safer.c
  78. pipe2-safer.c
  79. printf-args.c
  80. printf-frexp.c
  81. printf-frexpl.c
  82. printf-parse.c
  83. progname.c
  84. quotearg.c
  85. sig-handler.c
  86. spawn-pipe.c
  87. stpcpy.c
  88. stripslash.c
  89. timevar.c
  90. unistd.c
  91. vasnprintf.c
  92. vbitset.c
  93. wait-process.c
  94. wctype-h.c
  95. xalloc-die.c
  96. xconcat-filename.c
  97. xmalloc.c
  98. xmalloca.c
  99. xmemdup0.c
  100. xsize.c
  101. xstrndup.c
  102. )
  103. IF (NOT MUSL)
  104. SRCS(
  105. fseterr.c
  106. )
  107. ENDIF()
  108. IF (NOT OS_LINUX)
  109. SRCS(
  110. pipe2.c
  111. strverscmp.c
  112. )
  113. ENDIF()
  114. IF (NOT OS_WINDOWS)
  115. SRCS(
  116. stdio-write.c
  117. )
  118. ENDIF()
  119. IF (OS_WINDOWS)
  120. SRCS(
  121. frexp.c
  122. wcrtomb.c
  123. fseeko.c
  124. fopen.c
  125. ftello.c
  126. msvc-inval.c
  127. msvc-nothrow.c
  128. open.c
  129. raise.c
  130. sigaction.c
  131. sigprocmask.c
  132. snprintf.c
  133. strndup.c
  134. waitpid.c
  135. wcwidth.c
  136. uniwidth/width.c
  137. )
  138. ENDIF()
  139. IF (NOT OS_LINUX OR MUSL)
  140. SRCS(
  141. obstack.c
  142. obstack_printf.c
  143. )
  144. ENDIF()
  145. IF (OS_CYGWIN OR OS_LINUX)
  146. #not need it
  147. ELSE()
  148. SRCS(
  149. fpending.c
  150. )
  151. ENDIF()
  152. END()