CMakeLists.darwin-x86_64.txt 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. # This file was generated by the build system used internally in the Yandex monorepo.
  2. # Only simple modifications are allowed (adding source-files to targets, adding simple properties
  3. # like target_include_directories). These modifications will be ported to original
  4. # ya.make files by maintainers. Any complex modifications which can't be ported back to the
  5. # original buildsystem will not be accepted.
  6. add_subdirectory(charset)
  7. add_subdirectory(draft)
  8. add_library(yutil)
  9. target_compile_options(yutil PRIVATE
  10. -Wnarrowing
  11. )
  12. target_link_libraries(yutil PUBLIC
  13. contrib-libs-cxxsupp
  14. util-charset
  15. contrib-libs-zlib
  16. contrib-libs-double-conversion
  17. contrib-libs-libc_compat
  18. )
  19. target_sources(yutil PRIVATE
  20. ${CMAKE_SOURCE_DIR}/util/system/compiler.cpp
  21. ${CMAKE_SOURCE_DIR}/util/digest/city.cpp
  22. ${CMAKE_SOURCE_DIR}/util/random/random.cpp
  23. ${CMAKE_SOURCE_DIR}/util/string/cast.cpp
  24. )
  25. target_joined_source(yutil
  26. all_datetime.cpp
  27. ${CMAKE_SOURCE_DIR}/util/datetime/base.cpp
  28. ${CMAKE_SOURCE_DIR}/util/datetime/constants.cpp
  29. ${CMAKE_SOURCE_DIR}/util/datetime/cputimer.cpp
  30. ${CMAKE_SOURCE_DIR}/util/datetime/systime.cpp
  31. ${CMAKE_SOURCE_DIR}/util/datetime/uptime.cpp
  32. )
  33. target_joined_source(yutil
  34. all_digest.cpp
  35. ${CMAKE_SOURCE_DIR}/util/digest/fnv.cpp
  36. ${CMAKE_SOURCE_DIR}/util/digest/multi.cpp
  37. ${CMAKE_SOURCE_DIR}/util/digest/murmur.cpp
  38. ${CMAKE_SOURCE_DIR}/util/digest/numeric.cpp
  39. ${CMAKE_SOURCE_DIR}/util/digest/sequence.cpp
  40. )
  41. target_joined_source(yutil
  42. all_util.cpp
  43. ${CMAKE_SOURCE_DIR}/util/ysafeptr.cpp
  44. ${CMAKE_SOURCE_DIR}/util/ysaveload.cpp
  45. ${CMAKE_SOURCE_DIR}/util/str_stl.cpp
  46. )
  47. target_joined_source(yutil
  48. all_folder.cpp
  49. ${CMAKE_SOURCE_DIR}/util/folder/dirut.cpp
  50. ${CMAKE_SOURCE_DIR}/util/folder/filelist.cpp
  51. ${CMAKE_SOURCE_DIR}/util/folder/fts.cpp
  52. ${CMAKE_SOURCE_DIR}/util/folder/fwd.cpp
  53. ${CMAKE_SOURCE_DIR}/util/folder/iterator.cpp
  54. ${CMAKE_SOURCE_DIR}/util/folder/path.cpp
  55. ${CMAKE_SOURCE_DIR}/util/folder/pathsplit.cpp
  56. ${CMAKE_SOURCE_DIR}/util/folder/tempdir.cpp
  57. )
  58. target_joined_source(yutil
  59. all_generic.cpp
  60. ${CMAKE_SOURCE_DIR}/util/generic/adaptor.cpp
  61. ${CMAKE_SOURCE_DIR}/util/generic/algorithm.cpp
  62. ${CMAKE_SOURCE_DIR}/util/generic/array_ref.cpp
  63. ${CMAKE_SOURCE_DIR}/util/generic/array_size.cpp
  64. ${CMAKE_SOURCE_DIR}/util/generic/bitmap.cpp
  65. ${CMAKE_SOURCE_DIR}/util/generic/bitops.cpp
  66. ${CMAKE_SOURCE_DIR}/util/generic/bt_exception.cpp
  67. ${CMAKE_SOURCE_DIR}/util/generic/buffer.cpp
  68. ${CMAKE_SOURCE_DIR}/util/generic/cast.cpp
  69. ${CMAKE_SOURCE_DIR}/util/generic/deque.cpp
  70. ${CMAKE_SOURCE_DIR}/util/generic/explicit_type.cpp
  71. ${CMAKE_SOURCE_DIR}/util/generic/fastqueue.cpp
  72. ${CMAKE_SOURCE_DIR}/util/generic/flags.cpp
  73. ${CMAKE_SOURCE_DIR}/util/generic/function.cpp
  74. ${CMAKE_SOURCE_DIR}/util/generic/function_ref.cpp
  75. ${CMAKE_SOURCE_DIR}/util/generic/fwd.cpp
  76. ${CMAKE_SOURCE_DIR}/util/generic/guid.cpp
  77. ${CMAKE_SOURCE_DIR}/util/generic/hash.cpp
  78. ${CMAKE_SOURCE_DIR}/util/generic/hash_multi_map.cpp
  79. ${CMAKE_SOURCE_DIR}/util/generic/hash_table.cpp
  80. ${CMAKE_SOURCE_DIR}/util/generic/hash_primes.cpp
  81. ${CMAKE_SOURCE_DIR}/util/generic/hash_set.cpp
  82. ${CMAKE_SOURCE_DIR}/util/generic/hide_ptr.cpp
  83. ${CMAKE_SOURCE_DIR}/util/generic/intrlist.cpp
  84. ${CMAKE_SOURCE_DIR}/util/generic/is_in.cpp
  85. ${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp
  86. ${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp
  87. ${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp
  88. ${CMAKE_SOURCE_DIR}/util/generic/list.cpp
  89. ${CMAKE_SOURCE_DIR}/util/generic/map.cpp
  90. ${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp
  91. ${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp
  92. ${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp
  93. ${CMAKE_SOURCE_DIR}/util/generic/noncopyable.cpp
  94. ${CMAKE_SOURCE_DIR}/util/generic/object_counter.cpp
  95. ${CMAKE_SOURCE_DIR}/util/generic/overloaded.cpp
  96. ${CMAKE_SOURCE_DIR}/util/generic/ptr.cpp
  97. ${CMAKE_SOURCE_DIR}/util/generic/queue.cpp
  98. ${CMAKE_SOURCE_DIR}/util/generic/refcount.cpp
  99. ${CMAKE_SOURCE_DIR}/util/generic/scope.cpp
  100. ${CMAKE_SOURCE_DIR}/util/generic/serialized_enum.cpp
  101. ${CMAKE_SOURCE_DIR}/util/generic/set.cpp
  102. ${CMAKE_SOURCE_DIR}/util/generic/singleton.cpp
  103. ${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp
  104. ${CMAKE_SOURCE_DIR}/util/generic/stack.cpp
  105. ${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp
  106. ${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp
  107. ${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp
  108. ${CMAKE_SOURCE_DIR}/util/generic/string.cpp
  109. ${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp
  110. ${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp
  111. ${CMAKE_SOURCE_DIR}/util/generic/utility.cpp
  112. ${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp
  113. ${CMAKE_SOURCE_DIR}/util/generic/variant.cpp
  114. ${CMAKE_SOURCE_DIR}/util/generic/vector.cpp
  115. ${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp
  116. ${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp
  117. ${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp
  118. ${CMAKE_SOURCE_DIR}/util/generic/ymath.cpp
  119. )
  120. target_joined_source(yutil
  121. all_memory.cpp
  122. ${CMAKE_SOURCE_DIR}/util/memory/addstorage.cpp
  123. ${CMAKE_SOURCE_DIR}/util/memory/alloc.cpp
  124. ${CMAKE_SOURCE_DIR}/util/memory/blob.cpp
  125. ${CMAKE_SOURCE_DIR}/util/memory/mmapalloc.cpp
  126. ${CMAKE_SOURCE_DIR}/util/memory/pool.cpp
  127. ${CMAKE_SOURCE_DIR}/util/memory/segmented_string_pool.cpp
  128. ${CMAKE_SOURCE_DIR}/util/memory/segpool_alloc.cpp
  129. ${CMAKE_SOURCE_DIR}/util/memory/smallobj.cpp
  130. ${CMAKE_SOURCE_DIR}/util/memory/tempbuf.cpp
  131. )
  132. target_joined_source(yutil
  133. all_network.cpp
  134. ${CMAKE_SOURCE_DIR}/util/network/address.cpp
  135. ${CMAKE_SOURCE_DIR}/util/network/endpoint.cpp
  136. ${CMAKE_SOURCE_DIR}/util/network/hostip.cpp
  137. ${CMAKE_SOURCE_DIR}/util/network/init.cpp
  138. ${CMAKE_SOURCE_DIR}/util/network/interface.cpp
  139. ${CMAKE_SOURCE_DIR}/util/network/iovec.cpp
  140. ${CMAKE_SOURCE_DIR}/util/network/ip.cpp
  141. ${CMAKE_SOURCE_DIR}/util/network/nonblock.cpp
  142. ${CMAKE_SOURCE_DIR}/util/network/pair.cpp
  143. ${CMAKE_SOURCE_DIR}/util/network/poller.cpp
  144. ${CMAKE_SOURCE_DIR}/util/network/pollerimpl.cpp
  145. ${CMAKE_SOURCE_DIR}/util/network/sock.cpp
  146. ${CMAKE_SOURCE_DIR}/util/network/socket.cpp
  147. )
  148. target_joined_source(yutil
  149. all_random.cpp
  150. ${CMAKE_SOURCE_DIR}/util/random/common_ops.cpp
  151. ${CMAKE_SOURCE_DIR}/util/random/easy.cpp
  152. ${CMAKE_SOURCE_DIR}/util/random/entropy.cpp
  153. ${CMAKE_SOURCE_DIR}/util/random/fast.cpp
  154. ${CMAKE_SOURCE_DIR}/util/random/lcg_engine.cpp
  155. ${CMAKE_SOURCE_DIR}/util/random/mersenne32.cpp
  156. ${CMAKE_SOURCE_DIR}/util/random/mersenne64.cpp
  157. ${CMAKE_SOURCE_DIR}/util/random/mersenne.cpp
  158. ${CMAKE_SOURCE_DIR}/util/random/normal.cpp
  159. ${CMAKE_SOURCE_DIR}/util/random/shuffle.cpp
  160. ${CMAKE_SOURCE_DIR}/util/random/init_atfork.cpp
  161. )
  162. target_joined_source(yutil
  163. all_stream.cpp
  164. ${CMAKE_SOURCE_DIR}/util/stream/aligned.cpp
  165. ${CMAKE_SOURCE_DIR}/util/stream/buffer.cpp
  166. ${CMAKE_SOURCE_DIR}/util/stream/buffered.cpp
  167. ${CMAKE_SOURCE_DIR}/util/stream/debug.cpp
  168. ${CMAKE_SOURCE_DIR}/util/stream/direct_io.cpp
  169. ${CMAKE_SOURCE_DIR}/util/stream/file.cpp
  170. ${CMAKE_SOURCE_DIR}/util/stream/format.cpp
  171. ${CMAKE_SOURCE_DIR}/util/stream/fwd.cpp
  172. ${CMAKE_SOURCE_DIR}/util/stream/hex.cpp
  173. ${CMAKE_SOURCE_DIR}/util/stream/holder.cpp
  174. ${CMAKE_SOURCE_DIR}/util/stream/input.cpp
  175. ${CMAKE_SOURCE_DIR}/util/stream/labeled.cpp
  176. ${CMAKE_SOURCE_DIR}/util/stream/length.cpp
  177. ${CMAKE_SOURCE_DIR}/util/stream/mem.cpp
  178. ${CMAKE_SOURCE_DIR}/util/stream/multi.cpp
  179. ${CMAKE_SOURCE_DIR}/util/stream/null.cpp
  180. ${CMAKE_SOURCE_DIR}/util/stream/output.cpp
  181. ${CMAKE_SOURCE_DIR}/util/stream/pipe.cpp
  182. ${CMAKE_SOURCE_DIR}/util/stream/printf.cpp
  183. ${CMAKE_SOURCE_DIR}/util/stream/str.cpp
  184. ${CMAKE_SOURCE_DIR}/util/stream/tee.cpp
  185. ${CMAKE_SOURCE_DIR}/util/stream/tempbuf.cpp
  186. ${CMAKE_SOURCE_DIR}/util/stream/tokenizer.cpp
  187. ${CMAKE_SOURCE_DIR}/util/stream/trace.cpp
  188. ${CMAKE_SOURCE_DIR}/util/stream/walk.cpp
  189. ${CMAKE_SOURCE_DIR}/util/stream/zerocopy.cpp
  190. ${CMAKE_SOURCE_DIR}/util/stream/zerocopy_output.cpp
  191. ${CMAKE_SOURCE_DIR}/util/stream/zlib.cpp
  192. )
  193. target_joined_source(yutil
  194. all_string.cpp
  195. ${CMAKE_SOURCE_DIR}/util/string/ascii.cpp
  196. ${CMAKE_SOURCE_DIR}/util/string/builder.cpp
  197. ${CMAKE_SOURCE_DIR}/util/string/cstriter.cpp
  198. ${CMAKE_SOURCE_DIR}/util/string/escape.cpp
  199. ${CMAKE_SOURCE_DIR}/util/string/hex.cpp
  200. ${CMAKE_SOURCE_DIR}/util/string/join.cpp
  201. ${CMAKE_SOURCE_DIR}/util/string/printf.cpp
  202. ${CMAKE_SOURCE_DIR}/util/string/reverse.cpp
  203. ${CMAKE_SOURCE_DIR}/util/string/split.cpp
  204. ${CMAKE_SOURCE_DIR}/util/string/strip.cpp
  205. ${CMAKE_SOURCE_DIR}/util/string/strspn.cpp
  206. ${CMAKE_SOURCE_DIR}/util/string/subst.cpp
  207. ${CMAKE_SOURCE_DIR}/util/string/type.cpp
  208. ${CMAKE_SOURCE_DIR}/util/string/util.cpp
  209. ${CMAKE_SOURCE_DIR}/util/string/vector.cpp
  210. )
  211. target_joined_source(yutil
  212. all_system_1.cpp
  213. ${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
  214. ${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
  215. ${CMAKE_SOURCE_DIR}/util/system/compat.cpp
  216. ${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
  217. ${CMAKE_SOURCE_DIR}/util/system/context.cpp
  218. ${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
  219. ${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
  220. ${CMAKE_SOURCE_DIR}/util/system/defaults.c
  221. ${CMAKE_SOURCE_DIR}/util/system/direct_io.cpp
  222. ${CMAKE_SOURCE_DIR}/util/system/dynlib.cpp
  223. ${CMAKE_SOURCE_DIR}/util/system/env.cpp
  224. ${CMAKE_SOURCE_DIR}/util/system/error.cpp
  225. ${CMAKE_SOURCE_DIR}/util/system/event.cpp
  226. ${CMAKE_SOURCE_DIR}/util/system/execpath.cpp
  227. ${CMAKE_SOURCE_DIR}/util/system/fasttime.cpp
  228. ${CMAKE_SOURCE_DIR}/util/system/file.cpp
  229. ${CMAKE_SOURCE_DIR}/util/system/file_lock.cpp
  230. ${CMAKE_SOURCE_DIR}/util/system/filemap.cpp
  231. ${CMAKE_SOURCE_DIR}/util/system/flock.cpp
  232. ${CMAKE_SOURCE_DIR}/util/system/fs.cpp
  233. ${CMAKE_SOURCE_DIR}/util/system/fstat.cpp
  234. ${CMAKE_SOURCE_DIR}/util/system/getpid.cpp
  235. ${CMAKE_SOURCE_DIR}/util/system/hi_lo.cpp
  236. ${CMAKE_SOURCE_DIR}/util/system/hostname.cpp
  237. ${CMAKE_SOURCE_DIR}/util/system/hp_timer.cpp
  238. ${CMAKE_SOURCE_DIR}/util/system/info.cpp
  239. )
  240. target_joined_source(yutil
  241. all_system_2.cpp
  242. ${CMAKE_SOURCE_DIR}/util/system/align.cpp
  243. ${CMAKE_SOURCE_DIR}/util/system/byteorder.cpp
  244. ${CMAKE_SOURCE_DIR}/util/system/cpu_id.cpp
  245. ${CMAKE_SOURCE_DIR}/util/system/fhandle.cpp
  246. ${CMAKE_SOURCE_DIR}/util/system/guard.cpp
  247. ${CMAKE_SOURCE_DIR}/util/system/interrupt_signals.cpp
  248. ${CMAKE_SOURCE_DIR}/util/system/madvise.cpp
  249. ${CMAKE_SOURCE_DIR}/util/system/maxlen.cpp
  250. ${CMAKE_SOURCE_DIR}/util/system/mem_info.cpp
  251. ${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
  252. ${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
  253. ${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
  254. ${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
  255. ${CMAKE_SOURCE_DIR}/util/system/nice.cpp
  256. ${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
  257. ${CMAKE_SOURCE_DIR}/util/system/platform.cpp
  258. ${CMAKE_SOURCE_DIR}/util/system/progname.cpp
  259. ${CMAKE_SOURCE_DIR}/util/system/protect.cpp
  260. ${CMAKE_SOURCE_DIR}/util/system/rusage.cpp
  261. ${CMAKE_SOURCE_DIR}/util/system/rwlock.cpp
  262. ${CMAKE_SOURCE_DIR}/util/system/sanitizers.cpp
  263. ${CMAKE_SOURCE_DIR}/util/system/sem.cpp
  264. ${CMAKE_SOURCE_DIR}/util/system/shellcommand.cpp
  265. ${CMAKE_SOURCE_DIR}/util/system/shmat.cpp
  266. ${CMAKE_SOURCE_DIR}/util/system/sigset.cpp
  267. ${CMAKE_SOURCE_DIR}/util/system/spinlock.cpp
  268. ${CMAKE_SOURCE_DIR}/util/system/spin_wait.cpp
  269. ${CMAKE_SOURCE_DIR}/util/system/src_location.cpp
  270. ${CMAKE_SOURCE_DIR}/util/system/sys_alloc.cpp
  271. ${CMAKE_SOURCE_DIR}/util/system/sysstat.cpp
  272. ${CMAKE_SOURCE_DIR}/util/system/tempfile.cpp
  273. ${CMAKE_SOURCE_DIR}/util/system/thread.cpp
  274. ${CMAKE_SOURCE_DIR}/util/system/tls.cpp
  275. ${CMAKE_SOURCE_DIR}/util/system/types.cpp
  276. ${CMAKE_SOURCE_DIR}/util/system/type_name.cpp
  277. ${CMAKE_SOURCE_DIR}/util/system/unaligned_mem.cpp
  278. ${CMAKE_SOURCE_DIR}/util/system/user.cpp
  279. ${CMAKE_SOURCE_DIR}/util/system/utime.cpp
  280. ${CMAKE_SOURCE_DIR}/util/system/yassert.cpp
  281. ${CMAKE_SOURCE_DIR}/util/system/yield.cpp
  282. )
  283. target_joined_source(yutil
  284. all_thread.cpp
  285. ${CMAKE_SOURCE_DIR}/util/thread/factory.cpp
  286. ${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp
  287. ${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp
  288. ${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp
  289. ${CMAKE_SOURCE_DIR}/util/thread/pool.cpp
  290. ${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp
  291. )
  292. target_ragel_lexers(yutil
  293. PRIVATE
  294. ${CMAKE_SOURCE_DIR}/util/datetime/parser.rl6
  295. -CG2
  296. )
  297. target_yasm_source(yutil
  298. PRIVATE
  299. ${CMAKE_SOURCE_DIR}/util/system/context_x86.asm
  300. -I
  301. ${CMAKE_BINARY_DIR}
  302. -I
  303. ${CMAKE_SOURCE_DIR}
  304. )