diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
commit | d32759b7eb812b4a4033cc61e1e98245544b4992 (patch) | |
tree | 22bbb3e9b46c1b55818aaf475f699ae187ce328b /util | |
parent | 471e9b902d01b70b2d12146772e30528a216ee82 (diff) | |
download | ydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz |
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'util')
-rw-r--r-- | util/CMakeLists.darwin.txt | 304 | ||||
-rw-r--r-- | util/CMakeLists.linux.txt | 306 | ||||
-rw-r--r-- | util/CMakeLists.txt | 303 |
3 files changed, 615 insertions, 298 deletions
diff --git a/util/CMakeLists.darwin.txt b/util/CMakeLists.darwin.txt new file mode 100644 index 0000000000..5ebbc687c7 --- /dev/null +++ b/util/CMakeLists.darwin.txt @@ -0,0 +1,304 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(ZLIB REQUIRED) + +add_library(yutil) +target_compile_options(yutil PRIVATE + -Wnarrowing +) +target_link_libraries(yutil PUBLIC + contrib-libs-cxxsupp + util-charset + ZLIB::ZLIB + contrib-libs-double-conversion + contrib-libs-libc_compat +) +target_sources(yutil PRIVATE + ${CMAKE_SOURCE_DIR}/util/system/compiler.cpp + ${CMAKE_SOURCE_DIR}/util/digest/city.cpp + ${CMAKE_SOURCE_DIR}/util/random/random.cpp + ${CMAKE_SOURCE_DIR}/util/string/cast.cpp +) +target_joined_source(yutil + all_datetime.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/base.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/constants.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/cputimer.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/systime.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/uptime.cpp +) +target_joined_source(yutil + all_digest.cpp + ${CMAKE_SOURCE_DIR}/util/digest/fnv.cpp + ${CMAKE_SOURCE_DIR}/util/digest/multi.cpp + ${CMAKE_SOURCE_DIR}/util/digest/murmur.cpp + ${CMAKE_SOURCE_DIR}/util/digest/numeric.cpp + ${CMAKE_SOURCE_DIR}/util/digest/sequence.cpp +) +target_joined_source(yutil + all_util.cpp + ${CMAKE_SOURCE_DIR}/util/ysafeptr.cpp + ${CMAKE_SOURCE_DIR}/util/ysaveload.cpp + ${CMAKE_SOURCE_DIR}/util/str_stl.cpp +) +target_joined_source(yutil + all_folder.cpp + ${CMAKE_SOURCE_DIR}/util/folder/dirut.cpp + ${CMAKE_SOURCE_DIR}/util/folder/filelist.cpp + ${CMAKE_SOURCE_DIR}/util/folder/fts.cpp + ${CMAKE_SOURCE_DIR}/util/folder/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/folder/iterator.cpp + ${CMAKE_SOURCE_DIR}/util/folder/path.cpp + ${CMAKE_SOURCE_DIR}/util/folder/pathsplit.cpp + ${CMAKE_SOURCE_DIR}/util/folder/tempdir.cpp +) +target_joined_source(yutil + all_generic.cpp + ${CMAKE_SOURCE_DIR}/util/generic/scope.cpp + ${CMAKE_SOURCE_DIR}/util/generic/adaptor.cpp + ${CMAKE_SOURCE_DIR}/util/generic/algorithm.cpp + ${CMAKE_SOURCE_DIR}/util/generic/array_ref.cpp + ${CMAKE_SOURCE_DIR}/util/generic/array_size.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bitmap.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bitops.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bt_exception.cpp + ${CMAKE_SOURCE_DIR}/util/generic/buffer.cpp + ${CMAKE_SOURCE_DIR}/util/generic/cast.cpp + ${CMAKE_SOURCE_DIR}/util/generic/deque.cpp + ${CMAKE_SOURCE_DIR}/util/generic/explicit_type.cpp + ${CMAKE_SOURCE_DIR}/util/generic/fastqueue.cpp + ${CMAKE_SOURCE_DIR}/util/generic/flags.cpp + ${CMAKE_SOURCE_DIR}/util/generic/function.cpp + ${CMAKE_SOURCE_DIR}/util/generic/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/generic/guid.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash_primes.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash_set.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hide_ptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/intrlist.cpp + ${CMAKE_SOURCE_DIR}/util/generic/is_in.cpp + ${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp + ${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp + ${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp + ${CMAKE_SOURCE_DIR}/util/generic/list.cpp + ${CMAKE_SOURCE_DIR}/util/generic/map.cpp + ${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp + ${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/noncopyable.cpp + ${CMAKE_SOURCE_DIR}/util/generic/object_counter.cpp + ${CMAKE_SOURCE_DIR}/util/generic/overloaded.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/queue.cpp + ${CMAKE_SOURCE_DIR}/util/generic/refcount.cpp + ${CMAKE_SOURCE_DIR}/util/generic/serialized_enum.cpp + ${CMAKE_SOURCE_DIR}/util/generic/set.cpp + ${CMAKE_SOURCE_DIR}/util/generic/singleton.cpp + ${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp + ${CMAKE_SOURCE_DIR}/util/generic/stack.cpp + ${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp + ${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/string.cpp + ${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp + ${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp + ${CMAKE_SOURCE_DIR}/util/generic/utility.cpp + ${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp + ${CMAKE_SOURCE_DIR}/util/generic/vector.cpp + ${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp + ${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ymath.cpp +) +target_joined_source(yutil + all_memory.cpp + ${CMAKE_SOURCE_DIR}/util/memory/addstorage.cpp + ${CMAKE_SOURCE_DIR}/util/memory/alloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/blob.cpp + ${CMAKE_SOURCE_DIR}/util/memory/mmapalloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/pool.cpp + ${CMAKE_SOURCE_DIR}/util/memory/segmented_string_pool.cpp + ${CMAKE_SOURCE_DIR}/util/memory/segpool_alloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/smallobj.cpp + ${CMAKE_SOURCE_DIR}/util/memory/tempbuf.cpp +) +target_joined_source(yutil + all_network.cpp + ${CMAKE_SOURCE_DIR}/util/network/address.cpp + ${CMAKE_SOURCE_DIR}/util/network/endpoint.cpp + ${CMAKE_SOURCE_DIR}/util/network/hostip.cpp + ${CMAKE_SOURCE_DIR}/util/network/init.cpp + ${CMAKE_SOURCE_DIR}/util/network/interface.cpp + ${CMAKE_SOURCE_DIR}/util/network/iovec.cpp + ${CMAKE_SOURCE_DIR}/util/network/ip.cpp + ${CMAKE_SOURCE_DIR}/util/network/nonblock.cpp + ${CMAKE_SOURCE_DIR}/util/network/pair.cpp + ${CMAKE_SOURCE_DIR}/util/network/poller.cpp + ${CMAKE_SOURCE_DIR}/util/network/pollerimpl.cpp + ${CMAKE_SOURCE_DIR}/util/network/sock.cpp + ${CMAKE_SOURCE_DIR}/util/network/socket.cpp +) +target_joined_source(yutil + all_random.cpp + ${CMAKE_SOURCE_DIR}/util/random/common_ops.cpp + ${CMAKE_SOURCE_DIR}/util/random/easy.cpp + ${CMAKE_SOURCE_DIR}/util/random/entropy.cpp + ${CMAKE_SOURCE_DIR}/util/random/fast.cpp + ${CMAKE_SOURCE_DIR}/util/random/lcg_engine.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne32.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne64.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne.cpp + ${CMAKE_SOURCE_DIR}/util/random/normal.cpp + ${CMAKE_SOURCE_DIR}/util/random/shuffle.cpp + ${CMAKE_SOURCE_DIR}/util/random/init_atfork.cpp +) +target_joined_source(yutil + all_stream.cpp + ${CMAKE_SOURCE_DIR}/util/stream/aligned.cpp + ${CMAKE_SOURCE_DIR}/util/stream/buffer.cpp + ${CMAKE_SOURCE_DIR}/util/stream/buffered.cpp + ${CMAKE_SOURCE_DIR}/util/stream/debug.cpp + ${CMAKE_SOURCE_DIR}/util/stream/direct_io.cpp + ${CMAKE_SOURCE_DIR}/util/stream/file.cpp + ${CMAKE_SOURCE_DIR}/util/stream/format.cpp + ${CMAKE_SOURCE_DIR}/util/stream/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/stream/hex.cpp + ${CMAKE_SOURCE_DIR}/util/stream/holder.cpp + ${CMAKE_SOURCE_DIR}/util/stream/input.cpp + ${CMAKE_SOURCE_DIR}/util/stream/labeled.cpp + ${CMAKE_SOURCE_DIR}/util/stream/length.cpp + ${CMAKE_SOURCE_DIR}/util/stream/mem.cpp + ${CMAKE_SOURCE_DIR}/util/stream/multi.cpp + ${CMAKE_SOURCE_DIR}/util/stream/null.cpp + ${CMAKE_SOURCE_DIR}/util/stream/output.cpp + ${CMAKE_SOURCE_DIR}/util/stream/pipe.cpp + ${CMAKE_SOURCE_DIR}/util/stream/printf.cpp + ${CMAKE_SOURCE_DIR}/util/stream/str.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tee.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tempbuf.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tokenizer.cpp + ${CMAKE_SOURCE_DIR}/util/stream/trace.cpp + ${CMAKE_SOURCE_DIR}/util/stream/walk.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zerocopy.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zerocopy_output.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zlib.cpp +) +target_joined_source(yutil + all_string.cpp + ${CMAKE_SOURCE_DIR}/util/string/ascii.cpp + ${CMAKE_SOURCE_DIR}/util/string/builder.cpp + ${CMAKE_SOURCE_DIR}/util/string/cstriter.cpp + ${CMAKE_SOURCE_DIR}/util/string/escape.cpp + ${CMAKE_SOURCE_DIR}/util/string/hex.cpp + ${CMAKE_SOURCE_DIR}/util/string/join.cpp + ${CMAKE_SOURCE_DIR}/util/string/printf.cpp + ${CMAKE_SOURCE_DIR}/util/string/reverse.cpp + ${CMAKE_SOURCE_DIR}/util/string/split.cpp + ${CMAKE_SOURCE_DIR}/util/string/strip.cpp + ${CMAKE_SOURCE_DIR}/util/string/strspn.cpp + ${CMAKE_SOURCE_DIR}/util/string/subst.cpp + ${CMAKE_SOURCE_DIR}/util/string/type.cpp + ${CMAKE_SOURCE_DIR}/util/string/util.cpp + ${CMAKE_SOURCE_DIR}/util/string/vector.cpp +) +target_joined_source(yutil + all_system_1.cpp + ${CMAKE_SOURCE_DIR}/util/system/atexit.cpp + ${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp + ${CMAKE_SOURCE_DIR}/util/system/compat.cpp + ${CMAKE_SOURCE_DIR}/util/system/condvar.cpp + ${CMAKE_SOURCE_DIR}/util/system/context.cpp + ${CMAKE_SOURCE_DIR}/util/system/daemon.cpp + ${CMAKE_SOURCE_DIR}/util/system/datetime.cpp + ${CMAKE_SOURCE_DIR}/util/system/defaults.c + ${CMAKE_SOURCE_DIR}/util/system/direct_io.cpp + ${CMAKE_SOURCE_DIR}/util/system/dynlib.cpp + ${CMAKE_SOURCE_DIR}/util/system/env.cpp + ${CMAKE_SOURCE_DIR}/util/system/error.cpp + ${CMAKE_SOURCE_DIR}/util/system/event.cpp + ${CMAKE_SOURCE_DIR}/util/system/execpath.cpp + ${CMAKE_SOURCE_DIR}/util/system/fasttime.cpp + ${CMAKE_SOURCE_DIR}/util/system/file.cpp + ${CMAKE_SOURCE_DIR}/util/system/file_lock.cpp + ${CMAKE_SOURCE_DIR}/util/system/filemap.cpp + ${CMAKE_SOURCE_DIR}/util/system/flock.cpp + ${CMAKE_SOURCE_DIR}/util/system/fs.cpp + ${CMAKE_SOURCE_DIR}/util/system/fstat.cpp + ${CMAKE_SOURCE_DIR}/util/system/getpid.cpp + ${CMAKE_SOURCE_DIR}/util/system/hi_lo.cpp + ${CMAKE_SOURCE_DIR}/util/system/hostname.cpp + ${CMAKE_SOURCE_DIR}/util/system/hp_timer.cpp + ${CMAKE_SOURCE_DIR}/util/system/info.cpp +) +target_joined_source(yutil + all_system_2.cpp + ${CMAKE_SOURCE_DIR}/util/system/align.cpp + ${CMAKE_SOURCE_DIR}/util/system/atomic.cpp + ${CMAKE_SOURCE_DIR}/util/system/byteorder.cpp + ${CMAKE_SOURCE_DIR}/util/system/cpu_id.cpp + ${CMAKE_SOURCE_DIR}/util/system/fhandle.cpp + ${CMAKE_SOURCE_DIR}/util/system/guard.cpp + ${CMAKE_SOURCE_DIR}/util/system/interrupt_signals.cpp + ${CMAKE_SOURCE_DIR}/util/system/madvise.cpp + ${CMAKE_SOURCE_DIR}/util/system/maxlen.cpp + ${CMAKE_SOURCE_DIR}/util/system/mem_info.cpp + ${CMAKE_SOURCE_DIR}/util/system/mincore.cpp + ${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp + ${CMAKE_SOURCE_DIR}/util/system/mlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/mutex.cpp + ${CMAKE_SOURCE_DIR}/util/system/nice.cpp + ${CMAKE_SOURCE_DIR}/util/system/pipe.cpp + ${CMAKE_SOURCE_DIR}/util/system/platform.cpp + ${CMAKE_SOURCE_DIR}/util/system/progname.cpp + ${CMAKE_SOURCE_DIR}/util/system/protect.cpp + ${CMAKE_SOURCE_DIR}/util/system/rusage.cpp + ${CMAKE_SOURCE_DIR}/util/system/rwlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/sanitizers.cpp + ${CMAKE_SOURCE_DIR}/util/system/sem.cpp + ${CMAKE_SOURCE_DIR}/util/system/shellcommand.cpp + ${CMAKE_SOURCE_DIR}/util/system/shmat.cpp + ${CMAKE_SOURCE_DIR}/util/system/sigset.cpp + ${CMAKE_SOURCE_DIR}/util/system/spinlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/spin_wait.cpp + ${CMAKE_SOURCE_DIR}/util/system/src_location.cpp + ${CMAKE_SOURCE_DIR}/util/system/sys_alloc.cpp + ${CMAKE_SOURCE_DIR}/util/system/sysstat.cpp + ${CMAKE_SOURCE_DIR}/util/system/tempfile.cpp + ${CMAKE_SOURCE_DIR}/util/system/thread.cpp + ${CMAKE_SOURCE_DIR}/util/system/tls.cpp + ${CMAKE_SOURCE_DIR}/util/system/types.cpp + ${CMAKE_SOURCE_DIR}/util/system/type_name.cpp + ${CMAKE_SOURCE_DIR}/util/system/unaligned_mem.cpp + ${CMAKE_SOURCE_DIR}/util/system/user.cpp + ${CMAKE_SOURCE_DIR}/util/system/utime.cpp + ${CMAKE_SOURCE_DIR}/util/system/yassert.cpp + ${CMAKE_SOURCE_DIR}/util/system/yield.cpp +) +target_joined_source(yutil + all_thread.cpp + ${CMAKE_SOURCE_DIR}/util/thread/factory.cpp + ${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp + ${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp + ${CMAKE_SOURCE_DIR}/util/thread/pool.cpp + ${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp +) +target_ragel_lexers(yutil + PRIVATE + ${CMAKE_SOURCE_DIR}/util/datetime/parser.rl6 + -CG2 +) +target_yasm_source(yutil + PRIVATE + ${CMAKE_SOURCE_DIR}/util/system/context_x86.asm + -I + ${CMAKE_BINARY_DIR} + -I + ${CMAKE_SOURCE_DIR} +) diff --git a/util/CMakeLists.linux.txt b/util/CMakeLists.linux.txt new file mode 100644 index 0000000000..426da4f522 --- /dev/null +++ b/util/CMakeLists.linux.txt @@ -0,0 +1,306 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(ZLIB REQUIRED) + +add_library(yutil) +target_compile_options(yutil PRIVATE + -Wnarrowing +) +target_link_libraries(yutil PUBLIC + contrib-libs-cxxsupp + util-charset + ZLIB::ZLIB + contrib-libs-double-conversion + contrib-libs-libc_compat +) +target_sources(yutil PRIVATE + ${CMAKE_SOURCE_DIR}/util/system/compiler.cpp + ${CMAKE_SOURCE_DIR}/util/digest/city.cpp + ${CMAKE_SOURCE_DIR}/util/random/random.cpp + ${CMAKE_SOURCE_DIR}/util/string/cast.cpp + ${CMAKE_SOURCE_DIR}/util/system/valgrind.cpp + ${CMAKE_SOURCE_DIR}/util/system/mktemp_system.cpp +) +target_joined_source(yutil + all_datetime.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/base.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/constants.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/cputimer.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/systime.cpp + ${CMAKE_SOURCE_DIR}/util/datetime/uptime.cpp +) +target_joined_source(yutil + all_digest.cpp + ${CMAKE_SOURCE_DIR}/util/digest/fnv.cpp + ${CMAKE_SOURCE_DIR}/util/digest/multi.cpp + ${CMAKE_SOURCE_DIR}/util/digest/murmur.cpp + ${CMAKE_SOURCE_DIR}/util/digest/numeric.cpp + ${CMAKE_SOURCE_DIR}/util/digest/sequence.cpp +) +target_joined_source(yutil + all_util.cpp + ${CMAKE_SOURCE_DIR}/util/ysafeptr.cpp + ${CMAKE_SOURCE_DIR}/util/ysaveload.cpp + ${CMAKE_SOURCE_DIR}/util/str_stl.cpp +) +target_joined_source(yutil + all_folder.cpp + ${CMAKE_SOURCE_DIR}/util/folder/dirut.cpp + ${CMAKE_SOURCE_DIR}/util/folder/filelist.cpp + ${CMAKE_SOURCE_DIR}/util/folder/fts.cpp + ${CMAKE_SOURCE_DIR}/util/folder/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/folder/iterator.cpp + ${CMAKE_SOURCE_DIR}/util/folder/path.cpp + ${CMAKE_SOURCE_DIR}/util/folder/pathsplit.cpp + ${CMAKE_SOURCE_DIR}/util/folder/tempdir.cpp +) +target_joined_source(yutil + all_generic.cpp + ${CMAKE_SOURCE_DIR}/util/generic/scope.cpp + ${CMAKE_SOURCE_DIR}/util/generic/adaptor.cpp + ${CMAKE_SOURCE_DIR}/util/generic/algorithm.cpp + ${CMAKE_SOURCE_DIR}/util/generic/array_ref.cpp + ${CMAKE_SOURCE_DIR}/util/generic/array_size.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bitmap.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bitops.cpp + ${CMAKE_SOURCE_DIR}/util/generic/bt_exception.cpp + ${CMAKE_SOURCE_DIR}/util/generic/buffer.cpp + ${CMAKE_SOURCE_DIR}/util/generic/cast.cpp + ${CMAKE_SOURCE_DIR}/util/generic/deque.cpp + ${CMAKE_SOURCE_DIR}/util/generic/explicit_type.cpp + ${CMAKE_SOURCE_DIR}/util/generic/fastqueue.cpp + ${CMAKE_SOURCE_DIR}/util/generic/flags.cpp + ${CMAKE_SOURCE_DIR}/util/generic/function.cpp + ${CMAKE_SOURCE_DIR}/util/generic/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/generic/guid.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash_primes.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hash_set.cpp + ${CMAKE_SOURCE_DIR}/util/generic/hide_ptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/intrlist.cpp + ${CMAKE_SOURCE_DIR}/util/generic/is_in.cpp + ${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp + ${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp + ${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp + ${CMAKE_SOURCE_DIR}/util/generic/list.cpp + ${CMAKE_SOURCE_DIR}/util/generic/map.cpp + ${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp + ${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/noncopyable.cpp + ${CMAKE_SOURCE_DIR}/util/generic/object_counter.cpp + ${CMAKE_SOURCE_DIR}/util/generic/overloaded.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ptr.cpp + ${CMAKE_SOURCE_DIR}/util/generic/queue.cpp + ${CMAKE_SOURCE_DIR}/util/generic/refcount.cpp + ${CMAKE_SOURCE_DIR}/util/generic/serialized_enum.cpp + ${CMAKE_SOURCE_DIR}/util/generic/set.cpp + ${CMAKE_SOURCE_DIR}/util/generic/singleton.cpp + ${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp + ${CMAKE_SOURCE_DIR}/util/generic/stack.cpp + ${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp + ${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp + ${CMAKE_SOURCE_DIR}/util/generic/string.cpp + ${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp + ${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp + ${CMAKE_SOURCE_DIR}/util/generic/utility.cpp + ${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp + ${CMAKE_SOURCE_DIR}/util/generic/vector.cpp + ${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp + ${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp + ${CMAKE_SOURCE_DIR}/util/generic/ymath.cpp +) +target_joined_source(yutil + all_memory.cpp + ${CMAKE_SOURCE_DIR}/util/memory/addstorage.cpp + ${CMAKE_SOURCE_DIR}/util/memory/alloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/blob.cpp + ${CMAKE_SOURCE_DIR}/util/memory/mmapalloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/pool.cpp + ${CMAKE_SOURCE_DIR}/util/memory/segmented_string_pool.cpp + ${CMAKE_SOURCE_DIR}/util/memory/segpool_alloc.cpp + ${CMAKE_SOURCE_DIR}/util/memory/smallobj.cpp + ${CMAKE_SOURCE_DIR}/util/memory/tempbuf.cpp +) +target_joined_source(yutil + all_network.cpp + ${CMAKE_SOURCE_DIR}/util/network/address.cpp + ${CMAKE_SOURCE_DIR}/util/network/endpoint.cpp + ${CMAKE_SOURCE_DIR}/util/network/hostip.cpp + ${CMAKE_SOURCE_DIR}/util/network/init.cpp + ${CMAKE_SOURCE_DIR}/util/network/interface.cpp + ${CMAKE_SOURCE_DIR}/util/network/iovec.cpp + ${CMAKE_SOURCE_DIR}/util/network/ip.cpp + ${CMAKE_SOURCE_DIR}/util/network/nonblock.cpp + ${CMAKE_SOURCE_DIR}/util/network/pair.cpp + ${CMAKE_SOURCE_DIR}/util/network/poller.cpp + ${CMAKE_SOURCE_DIR}/util/network/pollerimpl.cpp + ${CMAKE_SOURCE_DIR}/util/network/sock.cpp + ${CMAKE_SOURCE_DIR}/util/network/socket.cpp +) +target_joined_source(yutil + all_random.cpp + ${CMAKE_SOURCE_DIR}/util/random/common_ops.cpp + ${CMAKE_SOURCE_DIR}/util/random/easy.cpp + ${CMAKE_SOURCE_DIR}/util/random/entropy.cpp + ${CMAKE_SOURCE_DIR}/util/random/fast.cpp + ${CMAKE_SOURCE_DIR}/util/random/lcg_engine.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne32.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne64.cpp + ${CMAKE_SOURCE_DIR}/util/random/mersenne.cpp + ${CMAKE_SOURCE_DIR}/util/random/normal.cpp + ${CMAKE_SOURCE_DIR}/util/random/shuffle.cpp + ${CMAKE_SOURCE_DIR}/util/random/init_atfork.cpp +) +target_joined_source(yutil + all_stream.cpp + ${CMAKE_SOURCE_DIR}/util/stream/aligned.cpp + ${CMAKE_SOURCE_DIR}/util/stream/buffer.cpp + ${CMAKE_SOURCE_DIR}/util/stream/buffered.cpp + ${CMAKE_SOURCE_DIR}/util/stream/debug.cpp + ${CMAKE_SOURCE_DIR}/util/stream/direct_io.cpp + ${CMAKE_SOURCE_DIR}/util/stream/file.cpp + ${CMAKE_SOURCE_DIR}/util/stream/format.cpp + ${CMAKE_SOURCE_DIR}/util/stream/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/stream/hex.cpp + ${CMAKE_SOURCE_DIR}/util/stream/holder.cpp + ${CMAKE_SOURCE_DIR}/util/stream/input.cpp + ${CMAKE_SOURCE_DIR}/util/stream/labeled.cpp + ${CMAKE_SOURCE_DIR}/util/stream/length.cpp + ${CMAKE_SOURCE_DIR}/util/stream/mem.cpp + ${CMAKE_SOURCE_DIR}/util/stream/multi.cpp + ${CMAKE_SOURCE_DIR}/util/stream/null.cpp + ${CMAKE_SOURCE_DIR}/util/stream/output.cpp + ${CMAKE_SOURCE_DIR}/util/stream/pipe.cpp + ${CMAKE_SOURCE_DIR}/util/stream/printf.cpp + ${CMAKE_SOURCE_DIR}/util/stream/str.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tee.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tempbuf.cpp + ${CMAKE_SOURCE_DIR}/util/stream/tokenizer.cpp + ${CMAKE_SOURCE_DIR}/util/stream/trace.cpp + ${CMAKE_SOURCE_DIR}/util/stream/walk.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zerocopy.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zerocopy_output.cpp + ${CMAKE_SOURCE_DIR}/util/stream/zlib.cpp +) +target_joined_source(yutil + all_string.cpp + ${CMAKE_SOURCE_DIR}/util/string/ascii.cpp + ${CMAKE_SOURCE_DIR}/util/string/builder.cpp + ${CMAKE_SOURCE_DIR}/util/string/cstriter.cpp + ${CMAKE_SOURCE_DIR}/util/string/escape.cpp + ${CMAKE_SOURCE_DIR}/util/string/hex.cpp + ${CMAKE_SOURCE_DIR}/util/string/join.cpp + ${CMAKE_SOURCE_DIR}/util/string/printf.cpp + ${CMAKE_SOURCE_DIR}/util/string/reverse.cpp + ${CMAKE_SOURCE_DIR}/util/string/split.cpp + ${CMAKE_SOURCE_DIR}/util/string/strip.cpp + ${CMAKE_SOURCE_DIR}/util/string/strspn.cpp + ${CMAKE_SOURCE_DIR}/util/string/subst.cpp + ${CMAKE_SOURCE_DIR}/util/string/type.cpp + ${CMAKE_SOURCE_DIR}/util/string/util.cpp + ${CMAKE_SOURCE_DIR}/util/string/vector.cpp +) +target_joined_source(yutil + all_system_1.cpp + ${CMAKE_SOURCE_DIR}/util/system/atexit.cpp + ${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp + ${CMAKE_SOURCE_DIR}/util/system/compat.cpp + ${CMAKE_SOURCE_DIR}/util/system/condvar.cpp + ${CMAKE_SOURCE_DIR}/util/system/context.cpp + ${CMAKE_SOURCE_DIR}/util/system/daemon.cpp + ${CMAKE_SOURCE_DIR}/util/system/datetime.cpp + ${CMAKE_SOURCE_DIR}/util/system/defaults.c + ${CMAKE_SOURCE_DIR}/util/system/direct_io.cpp + ${CMAKE_SOURCE_DIR}/util/system/dynlib.cpp + ${CMAKE_SOURCE_DIR}/util/system/env.cpp + ${CMAKE_SOURCE_DIR}/util/system/error.cpp + ${CMAKE_SOURCE_DIR}/util/system/event.cpp + ${CMAKE_SOURCE_DIR}/util/system/execpath.cpp + ${CMAKE_SOURCE_DIR}/util/system/fasttime.cpp + ${CMAKE_SOURCE_DIR}/util/system/file.cpp + ${CMAKE_SOURCE_DIR}/util/system/file_lock.cpp + ${CMAKE_SOURCE_DIR}/util/system/filemap.cpp + ${CMAKE_SOURCE_DIR}/util/system/flock.cpp + ${CMAKE_SOURCE_DIR}/util/system/fs.cpp + ${CMAKE_SOURCE_DIR}/util/system/fstat.cpp + ${CMAKE_SOURCE_DIR}/util/system/getpid.cpp + ${CMAKE_SOURCE_DIR}/util/system/hi_lo.cpp + ${CMAKE_SOURCE_DIR}/util/system/hostname.cpp + ${CMAKE_SOURCE_DIR}/util/system/hp_timer.cpp + ${CMAKE_SOURCE_DIR}/util/system/info.cpp +) +target_joined_source(yutil + all_system_2.cpp + ${CMAKE_SOURCE_DIR}/util/system/align.cpp + ${CMAKE_SOURCE_DIR}/util/system/atomic.cpp + ${CMAKE_SOURCE_DIR}/util/system/byteorder.cpp + ${CMAKE_SOURCE_DIR}/util/system/cpu_id.cpp + ${CMAKE_SOURCE_DIR}/util/system/fhandle.cpp + ${CMAKE_SOURCE_DIR}/util/system/guard.cpp + ${CMAKE_SOURCE_DIR}/util/system/interrupt_signals.cpp + ${CMAKE_SOURCE_DIR}/util/system/madvise.cpp + ${CMAKE_SOURCE_DIR}/util/system/maxlen.cpp + ${CMAKE_SOURCE_DIR}/util/system/mem_info.cpp + ${CMAKE_SOURCE_DIR}/util/system/mincore.cpp + ${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp + ${CMAKE_SOURCE_DIR}/util/system/mlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/mutex.cpp + ${CMAKE_SOURCE_DIR}/util/system/nice.cpp + ${CMAKE_SOURCE_DIR}/util/system/pipe.cpp + ${CMAKE_SOURCE_DIR}/util/system/platform.cpp + ${CMAKE_SOURCE_DIR}/util/system/progname.cpp + ${CMAKE_SOURCE_DIR}/util/system/protect.cpp + ${CMAKE_SOURCE_DIR}/util/system/rusage.cpp + ${CMAKE_SOURCE_DIR}/util/system/rwlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/sanitizers.cpp + ${CMAKE_SOURCE_DIR}/util/system/sem.cpp + ${CMAKE_SOURCE_DIR}/util/system/shellcommand.cpp + ${CMAKE_SOURCE_DIR}/util/system/shmat.cpp + ${CMAKE_SOURCE_DIR}/util/system/sigset.cpp + ${CMAKE_SOURCE_DIR}/util/system/spinlock.cpp + ${CMAKE_SOURCE_DIR}/util/system/spin_wait.cpp + ${CMAKE_SOURCE_DIR}/util/system/src_location.cpp + ${CMAKE_SOURCE_DIR}/util/system/sys_alloc.cpp + ${CMAKE_SOURCE_DIR}/util/system/sysstat.cpp + ${CMAKE_SOURCE_DIR}/util/system/tempfile.cpp + ${CMAKE_SOURCE_DIR}/util/system/thread.cpp + ${CMAKE_SOURCE_DIR}/util/system/tls.cpp + ${CMAKE_SOURCE_DIR}/util/system/types.cpp + ${CMAKE_SOURCE_DIR}/util/system/type_name.cpp + ${CMAKE_SOURCE_DIR}/util/system/unaligned_mem.cpp + ${CMAKE_SOURCE_DIR}/util/system/user.cpp + ${CMAKE_SOURCE_DIR}/util/system/utime.cpp + ${CMAKE_SOURCE_DIR}/util/system/yassert.cpp + ${CMAKE_SOURCE_DIR}/util/system/yield.cpp +) +target_joined_source(yutil + all_thread.cpp + ${CMAKE_SOURCE_DIR}/util/thread/factory.cpp + ${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp + ${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp + ${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp + ${CMAKE_SOURCE_DIR}/util/thread/pool.cpp + ${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp +) +target_ragel_lexers(yutil + PRIVATE + ${CMAKE_SOURCE_DIR}/util/datetime/parser.rl6 + -CG2 +) +target_yasm_source(yutil + PRIVATE + ${CMAKE_SOURCE_DIR}/util/system/context_x86.asm + -I + ${CMAKE_BINARY_DIR} + -I + ${CMAKE_SOURCE_DIR} +) diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt index 426da4f522..a681d385f3 100644 --- a/util/CMakeLists.txt +++ b/util/CMakeLists.txt @@ -6,301 +6,8 @@ # original buildsystem will not be accepted. -find_package(ZLIB REQUIRED) - -add_library(yutil) -target_compile_options(yutil PRIVATE - -Wnarrowing -) -target_link_libraries(yutil PUBLIC - contrib-libs-cxxsupp - util-charset - ZLIB::ZLIB - contrib-libs-double-conversion - contrib-libs-libc_compat -) -target_sources(yutil PRIVATE - ${CMAKE_SOURCE_DIR}/util/system/compiler.cpp - ${CMAKE_SOURCE_DIR}/util/digest/city.cpp - ${CMAKE_SOURCE_DIR}/util/random/random.cpp - ${CMAKE_SOURCE_DIR}/util/string/cast.cpp - ${CMAKE_SOURCE_DIR}/util/system/valgrind.cpp - ${CMAKE_SOURCE_DIR}/util/system/mktemp_system.cpp -) -target_joined_source(yutil - all_datetime.cpp - ${CMAKE_SOURCE_DIR}/util/datetime/base.cpp - ${CMAKE_SOURCE_DIR}/util/datetime/constants.cpp - ${CMAKE_SOURCE_DIR}/util/datetime/cputimer.cpp - ${CMAKE_SOURCE_DIR}/util/datetime/systime.cpp - ${CMAKE_SOURCE_DIR}/util/datetime/uptime.cpp -) -target_joined_source(yutil - all_digest.cpp - ${CMAKE_SOURCE_DIR}/util/digest/fnv.cpp - ${CMAKE_SOURCE_DIR}/util/digest/multi.cpp - ${CMAKE_SOURCE_DIR}/util/digest/murmur.cpp - ${CMAKE_SOURCE_DIR}/util/digest/numeric.cpp - ${CMAKE_SOURCE_DIR}/util/digest/sequence.cpp -) -target_joined_source(yutil - all_util.cpp - ${CMAKE_SOURCE_DIR}/util/ysafeptr.cpp - ${CMAKE_SOURCE_DIR}/util/ysaveload.cpp - ${CMAKE_SOURCE_DIR}/util/str_stl.cpp -) -target_joined_source(yutil - all_folder.cpp - ${CMAKE_SOURCE_DIR}/util/folder/dirut.cpp - ${CMAKE_SOURCE_DIR}/util/folder/filelist.cpp - ${CMAKE_SOURCE_DIR}/util/folder/fts.cpp - ${CMAKE_SOURCE_DIR}/util/folder/fwd.cpp - ${CMAKE_SOURCE_DIR}/util/folder/iterator.cpp - ${CMAKE_SOURCE_DIR}/util/folder/path.cpp - ${CMAKE_SOURCE_DIR}/util/folder/pathsplit.cpp - ${CMAKE_SOURCE_DIR}/util/folder/tempdir.cpp -) -target_joined_source(yutil - all_generic.cpp - ${CMAKE_SOURCE_DIR}/util/generic/scope.cpp - ${CMAKE_SOURCE_DIR}/util/generic/adaptor.cpp - ${CMAKE_SOURCE_DIR}/util/generic/algorithm.cpp - ${CMAKE_SOURCE_DIR}/util/generic/array_ref.cpp - ${CMAKE_SOURCE_DIR}/util/generic/array_size.cpp - ${CMAKE_SOURCE_DIR}/util/generic/bitmap.cpp - ${CMAKE_SOURCE_DIR}/util/generic/bitops.cpp - ${CMAKE_SOURCE_DIR}/util/generic/bt_exception.cpp - ${CMAKE_SOURCE_DIR}/util/generic/buffer.cpp - ${CMAKE_SOURCE_DIR}/util/generic/cast.cpp - ${CMAKE_SOURCE_DIR}/util/generic/deque.cpp - ${CMAKE_SOURCE_DIR}/util/generic/explicit_type.cpp - ${CMAKE_SOURCE_DIR}/util/generic/fastqueue.cpp - ${CMAKE_SOURCE_DIR}/util/generic/flags.cpp - ${CMAKE_SOURCE_DIR}/util/generic/function.cpp - ${CMAKE_SOURCE_DIR}/util/generic/fwd.cpp - ${CMAKE_SOURCE_DIR}/util/generic/guid.cpp - ${CMAKE_SOURCE_DIR}/util/generic/hash.cpp - ${CMAKE_SOURCE_DIR}/util/generic/hash_primes.cpp - ${CMAKE_SOURCE_DIR}/util/generic/hash_set.cpp - ${CMAKE_SOURCE_DIR}/util/generic/hide_ptr.cpp - ${CMAKE_SOURCE_DIR}/util/generic/intrlist.cpp - ${CMAKE_SOURCE_DIR}/util/generic/is_in.cpp - ${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp - ${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp - ${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp - ${CMAKE_SOURCE_DIR}/util/generic/list.cpp - ${CMAKE_SOURCE_DIR}/util/generic/map.cpp - ${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp - ${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp - ${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp - ${CMAKE_SOURCE_DIR}/util/generic/noncopyable.cpp - ${CMAKE_SOURCE_DIR}/util/generic/object_counter.cpp - ${CMAKE_SOURCE_DIR}/util/generic/overloaded.cpp - ${CMAKE_SOURCE_DIR}/util/generic/ptr.cpp - ${CMAKE_SOURCE_DIR}/util/generic/queue.cpp - ${CMAKE_SOURCE_DIR}/util/generic/refcount.cpp - ${CMAKE_SOURCE_DIR}/util/generic/serialized_enum.cpp - ${CMAKE_SOURCE_DIR}/util/generic/set.cpp - ${CMAKE_SOURCE_DIR}/util/generic/singleton.cpp - ${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp - ${CMAKE_SOURCE_DIR}/util/generic/stack.cpp - ${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp - ${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp - ${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp - ${CMAKE_SOURCE_DIR}/util/generic/string.cpp - ${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp - ${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp - ${CMAKE_SOURCE_DIR}/util/generic/utility.cpp - ${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp - ${CMAKE_SOURCE_DIR}/util/generic/vector.cpp - ${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp - ${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp - ${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp - ${CMAKE_SOURCE_DIR}/util/generic/ymath.cpp -) -target_joined_source(yutil - all_memory.cpp - ${CMAKE_SOURCE_DIR}/util/memory/addstorage.cpp - ${CMAKE_SOURCE_DIR}/util/memory/alloc.cpp - ${CMAKE_SOURCE_DIR}/util/memory/blob.cpp - ${CMAKE_SOURCE_DIR}/util/memory/mmapalloc.cpp - ${CMAKE_SOURCE_DIR}/util/memory/pool.cpp - ${CMAKE_SOURCE_DIR}/util/memory/segmented_string_pool.cpp - ${CMAKE_SOURCE_DIR}/util/memory/segpool_alloc.cpp - ${CMAKE_SOURCE_DIR}/util/memory/smallobj.cpp - ${CMAKE_SOURCE_DIR}/util/memory/tempbuf.cpp -) -target_joined_source(yutil - all_network.cpp - ${CMAKE_SOURCE_DIR}/util/network/address.cpp - ${CMAKE_SOURCE_DIR}/util/network/endpoint.cpp - ${CMAKE_SOURCE_DIR}/util/network/hostip.cpp - ${CMAKE_SOURCE_DIR}/util/network/init.cpp - ${CMAKE_SOURCE_DIR}/util/network/interface.cpp - ${CMAKE_SOURCE_DIR}/util/network/iovec.cpp - ${CMAKE_SOURCE_DIR}/util/network/ip.cpp - ${CMAKE_SOURCE_DIR}/util/network/nonblock.cpp - ${CMAKE_SOURCE_DIR}/util/network/pair.cpp - ${CMAKE_SOURCE_DIR}/util/network/poller.cpp - ${CMAKE_SOURCE_DIR}/util/network/pollerimpl.cpp - ${CMAKE_SOURCE_DIR}/util/network/sock.cpp - ${CMAKE_SOURCE_DIR}/util/network/socket.cpp -) -target_joined_source(yutil - all_random.cpp - ${CMAKE_SOURCE_DIR}/util/random/common_ops.cpp - ${CMAKE_SOURCE_DIR}/util/random/easy.cpp - ${CMAKE_SOURCE_DIR}/util/random/entropy.cpp - ${CMAKE_SOURCE_DIR}/util/random/fast.cpp - ${CMAKE_SOURCE_DIR}/util/random/lcg_engine.cpp - ${CMAKE_SOURCE_DIR}/util/random/mersenne32.cpp - ${CMAKE_SOURCE_DIR}/util/random/mersenne64.cpp - ${CMAKE_SOURCE_DIR}/util/random/mersenne.cpp - ${CMAKE_SOURCE_DIR}/util/random/normal.cpp - ${CMAKE_SOURCE_DIR}/util/random/shuffle.cpp - ${CMAKE_SOURCE_DIR}/util/random/init_atfork.cpp -) -target_joined_source(yutil - all_stream.cpp - ${CMAKE_SOURCE_DIR}/util/stream/aligned.cpp - ${CMAKE_SOURCE_DIR}/util/stream/buffer.cpp - ${CMAKE_SOURCE_DIR}/util/stream/buffered.cpp - ${CMAKE_SOURCE_DIR}/util/stream/debug.cpp - ${CMAKE_SOURCE_DIR}/util/stream/direct_io.cpp - ${CMAKE_SOURCE_DIR}/util/stream/file.cpp - ${CMAKE_SOURCE_DIR}/util/stream/format.cpp - ${CMAKE_SOURCE_DIR}/util/stream/fwd.cpp - ${CMAKE_SOURCE_DIR}/util/stream/hex.cpp - ${CMAKE_SOURCE_DIR}/util/stream/holder.cpp - ${CMAKE_SOURCE_DIR}/util/stream/input.cpp - ${CMAKE_SOURCE_DIR}/util/stream/labeled.cpp - ${CMAKE_SOURCE_DIR}/util/stream/length.cpp - ${CMAKE_SOURCE_DIR}/util/stream/mem.cpp - ${CMAKE_SOURCE_DIR}/util/stream/multi.cpp - ${CMAKE_SOURCE_DIR}/util/stream/null.cpp - ${CMAKE_SOURCE_DIR}/util/stream/output.cpp - ${CMAKE_SOURCE_DIR}/util/stream/pipe.cpp - ${CMAKE_SOURCE_DIR}/util/stream/printf.cpp - ${CMAKE_SOURCE_DIR}/util/stream/str.cpp - ${CMAKE_SOURCE_DIR}/util/stream/tee.cpp - ${CMAKE_SOURCE_DIR}/util/stream/tempbuf.cpp - ${CMAKE_SOURCE_DIR}/util/stream/tokenizer.cpp - ${CMAKE_SOURCE_DIR}/util/stream/trace.cpp - ${CMAKE_SOURCE_DIR}/util/stream/walk.cpp - ${CMAKE_SOURCE_DIR}/util/stream/zerocopy.cpp - ${CMAKE_SOURCE_DIR}/util/stream/zerocopy_output.cpp - ${CMAKE_SOURCE_DIR}/util/stream/zlib.cpp -) -target_joined_source(yutil - all_string.cpp - ${CMAKE_SOURCE_DIR}/util/string/ascii.cpp - ${CMAKE_SOURCE_DIR}/util/string/builder.cpp - ${CMAKE_SOURCE_DIR}/util/string/cstriter.cpp - ${CMAKE_SOURCE_DIR}/util/string/escape.cpp - ${CMAKE_SOURCE_DIR}/util/string/hex.cpp - ${CMAKE_SOURCE_DIR}/util/string/join.cpp - ${CMAKE_SOURCE_DIR}/util/string/printf.cpp - ${CMAKE_SOURCE_DIR}/util/string/reverse.cpp - ${CMAKE_SOURCE_DIR}/util/string/split.cpp - ${CMAKE_SOURCE_DIR}/util/string/strip.cpp - ${CMAKE_SOURCE_DIR}/util/string/strspn.cpp - ${CMAKE_SOURCE_DIR}/util/string/subst.cpp - ${CMAKE_SOURCE_DIR}/util/string/type.cpp - ${CMAKE_SOURCE_DIR}/util/string/util.cpp - ${CMAKE_SOURCE_DIR}/util/string/vector.cpp -) -target_joined_source(yutil - all_system_1.cpp - ${CMAKE_SOURCE_DIR}/util/system/atexit.cpp - ${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp - ${CMAKE_SOURCE_DIR}/util/system/compat.cpp - ${CMAKE_SOURCE_DIR}/util/system/condvar.cpp - ${CMAKE_SOURCE_DIR}/util/system/context.cpp - ${CMAKE_SOURCE_DIR}/util/system/daemon.cpp - ${CMAKE_SOURCE_DIR}/util/system/datetime.cpp - ${CMAKE_SOURCE_DIR}/util/system/defaults.c - ${CMAKE_SOURCE_DIR}/util/system/direct_io.cpp - ${CMAKE_SOURCE_DIR}/util/system/dynlib.cpp - ${CMAKE_SOURCE_DIR}/util/system/env.cpp - ${CMAKE_SOURCE_DIR}/util/system/error.cpp - ${CMAKE_SOURCE_DIR}/util/system/event.cpp - ${CMAKE_SOURCE_DIR}/util/system/execpath.cpp - ${CMAKE_SOURCE_DIR}/util/system/fasttime.cpp - ${CMAKE_SOURCE_DIR}/util/system/file.cpp - ${CMAKE_SOURCE_DIR}/util/system/file_lock.cpp - ${CMAKE_SOURCE_DIR}/util/system/filemap.cpp - ${CMAKE_SOURCE_DIR}/util/system/flock.cpp - ${CMAKE_SOURCE_DIR}/util/system/fs.cpp - ${CMAKE_SOURCE_DIR}/util/system/fstat.cpp - ${CMAKE_SOURCE_DIR}/util/system/getpid.cpp - ${CMAKE_SOURCE_DIR}/util/system/hi_lo.cpp - ${CMAKE_SOURCE_DIR}/util/system/hostname.cpp - ${CMAKE_SOURCE_DIR}/util/system/hp_timer.cpp - ${CMAKE_SOURCE_DIR}/util/system/info.cpp -) -target_joined_source(yutil - all_system_2.cpp - ${CMAKE_SOURCE_DIR}/util/system/align.cpp - ${CMAKE_SOURCE_DIR}/util/system/atomic.cpp - ${CMAKE_SOURCE_DIR}/util/system/byteorder.cpp - ${CMAKE_SOURCE_DIR}/util/system/cpu_id.cpp - ${CMAKE_SOURCE_DIR}/util/system/fhandle.cpp - ${CMAKE_SOURCE_DIR}/util/system/guard.cpp - ${CMAKE_SOURCE_DIR}/util/system/interrupt_signals.cpp - ${CMAKE_SOURCE_DIR}/util/system/madvise.cpp - ${CMAKE_SOURCE_DIR}/util/system/maxlen.cpp - ${CMAKE_SOURCE_DIR}/util/system/mem_info.cpp - ${CMAKE_SOURCE_DIR}/util/system/mincore.cpp - ${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp - ${CMAKE_SOURCE_DIR}/util/system/mlock.cpp - ${CMAKE_SOURCE_DIR}/util/system/mutex.cpp - ${CMAKE_SOURCE_DIR}/util/system/nice.cpp - ${CMAKE_SOURCE_DIR}/util/system/pipe.cpp - ${CMAKE_SOURCE_DIR}/util/system/platform.cpp - ${CMAKE_SOURCE_DIR}/util/system/progname.cpp - ${CMAKE_SOURCE_DIR}/util/system/protect.cpp - ${CMAKE_SOURCE_DIR}/util/system/rusage.cpp - ${CMAKE_SOURCE_DIR}/util/system/rwlock.cpp - ${CMAKE_SOURCE_DIR}/util/system/sanitizers.cpp - ${CMAKE_SOURCE_DIR}/util/system/sem.cpp - ${CMAKE_SOURCE_DIR}/util/system/shellcommand.cpp - ${CMAKE_SOURCE_DIR}/util/system/shmat.cpp - ${CMAKE_SOURCE_DIR}/util/system/sigset.cpp - ${CMAKE_SOURCE_DIR}/util/system/spinlock.cpp - ${CMAKE_SOURCE_DIR}/util/system/spin_wait.cpp - ${CMAKE_SOURCE_DIR}/util/system/src_location.cpp - ${CMAKE_SOURCE_DIR}/util/system/sys_alloc.cpp - ${CMAKE_SOURCE_DIR}/util/system/sysstat.cpp - ${CMAKE_SOURCE_DIR}/util/system/tempfile.cpp - ${CMAKE_SOURCE_DIR}/util/system/thread.cpp - ${CMAKE_SOURCE_DIR}/util/system/tls.cpp - ${CMAKE_SOURCE_DIR}/util/system/types.cpp - ${CMAKE_SOURCE_DIR}/util/system/type_name.cpp - ${CMAKE_SOURCE_DIR}/util/system/unaligned_mem.cpp - ${CMAKE_SOURCE_DIR}/util/system/user.cpp - ${CMAKE_SOURCE_DIR}/util/system/utime.cpp - ${CMAKE_SOURCE_DIR}/util/system/yassert.cpp - ${CMAKE_SOURCE_DIR}/util/system/yield.cpp -) -target_joined_source(yutil - all_thread.cpp - ${CMAKE_SOURCE_DIR}/util/thread/factory.cpp - ${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp - ${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp - ${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp - ${CMAKE_SOURCE_DIR}/util/thread/pool.cpp - ${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp -) -target_ragel_lexers(yutil - PRIVATE - ${CMAKE_SOURCE_DIR}/util/datetime/parser.rl6 - -CG2 -) -target_yasm_source(yutil - PRIVATE - ${CMAKE_SOURCE_DIR}/util/system/context_x86.asm - -I - ${CMAKE_BINARY_DIR} - -I - ${CMAKE_SOURCE_DIR} -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (UNIX) + include(CMakeLists.linux.txt) +endif() |