ya.make 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. GO_LIBRARY()
  2. LICENSE(BSD-3-Clause)
  3. SRCS(
  4. ccgo.go
  5. etc.go
  6. fsync.go
  7. int128.go
  8. libc.go
  9. libc64.go
  10. mem.go
  11. nodmesg.go
  12. printf.go
  13. probes.go
  14. pthread.go
  15. pthread_all.go
  16. scanf.go
  17. sync.go
  18. watch.go
  19. )
  20. GO_TEST_SRCS(all_test.go)
  21. IF (OS_LINUX)
  22. SRCS(
  23. ioutil_linux.go
  24. libc_linux.go
  25. libc_unix.go
  26. )
  27. ENDIF()
  28. IF (OS_LINUX AND ARCH_X86_64)
  29. SRCS(
  30. capi_linux_amd64.go
  31. libc_linux_amd64.go
  32. musl_linux_amd64.go
  33. )
  34. ENDIF()
  35. IF (OS_LINUX AND ARCH_ARM64)
  36. SRCS(
  37. capi_linux_arm64.go
  38. libc_linux_arm64.go
  39. musl_linux_arm64.go
  40. )
  41. ENDIF()
  42. IF (OS_DARWIN)
  43. SRCS(
  44. ioutil_darwin.go
  45. libc_darwin.go
  46. libc_unix.go
  47. )
  48. ENDIF()
  49. IF (OS_DARWIN AND ARCH_X86_64)
  50. SRCS(
  51. capi_darwin_amd64.go
  52. libc_darwin_amd64.go
  53. musl_darwin_amd64.go
  54. )
  55. ENDIF()
  56. IF (OS_DARWIN AND ARCH_ARM64)
  57. SRCS(
  58. capi_darwin_arm64.go
  59. libc_darwin_arm64.go
  60. musl_darwin_arm64.go
  61. )
  62. ENDIF()
  63. IF (OS_WINDOWS)
  64. SRCS(libc_windows.go)
  65. ENDIF()
  66. IF (OS_WINDOWS AND ARCH_X86_64)
  67. SRCS(
  68. capi_windows_amd64.go
  69. libc_windows_amd64.go
  70. musl_windows_amd64.go
  71. )
  72. ENDIF()
  73. IF (OS_WINDOWS AND ARCH_ARM64)
  74. SRCS(
  75. capi_windows_arm64.go
  76. libc_windows_arm64.go
  77. musl_windows_arm64.go
  78. )
  79. ENDIF()
  80. END()
  81. RECURSE(
  82. gotest
  83. honnef.co
  84. netinet
  85. sys
  86. uuid
  87. )
  88. IF (OS_LINUX AND ARCH_X86_64)
  89. RECURSE(
  90. fts
  91. stdlib
  92. unistd
  93. pwd
  94. time
  95. utime
  96. stdio
  97. netdb
  98. poll
  99. fcntl
  100. limits
  101. termios
  102. grp
  103. signal
  104. errno
  105. langinfo
  106. pthread
  107. wctype
  108. )
  109. ENDIF()
  110. IF (OS_LINUX AND ARCH_ARM64)
  111. RECURSE(
  112. fts
  113. stdlib
  114. unistd
  115. pwd
  116. time
  117. utime
  118. stdio
  119. netdb
  120. poll
  121. fcntl
  122. limits
  123. termios
  124. grp
  125. signal
  126. errno
  127. langinfo
  128. pthread
  129. wctype
  130. )
  131. ENDIF()
  132. IF (OS_DARWIN AND ARCH_X86_64)
  133. RECURSE(
  134. fts
  135. stdlib
  136. unistd
  137. pwd
  138. time
  139. utime
  140. stdio
  141. netdb
  142. poll
  143. fcntl
  144. limits
  145. termios
  146. grp
  147. signal
  148. errno
  149. langinfo
  150. pthread
  151. wctype
  152. )
  153. ENDIF()
  154. IF (OS_DARWIN AND ARCH_ARM64)
  155. RECURSE(
  156. fts
  157. stdlib
  158. unistd
  159. pwd
  160. time
  161. utime
  162. stdio
  163. netdb
  164. poll
  165. fcntl
  166. limits
  167. termios
  168. grp
  169. signal
  170. errno
  171. langinfo
  172. pthread
  173. wctype
  174. )
  175. ENDIF()
  176. IF (OS_WINDOWS)
  177. RECURSE(
  178. stdlib
  179. unistd
  180. time
  181. utime
  182. stdio
  183. fcntl
  184. limits
  185. signal
  186. errno
  187. pthread
  188. wctype
  189. )
  190. ENDIF()