aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
commit6324d075a5e80b6943b5de6b465b775050fe83df (patch)
treee02ce32e988042438f64df770a528164ac572879 /util
parent039e25e1597bec288de44e5061c1b84e195add08 (diff)
downloadydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz
Intermediate changes
Diffstat (limited to 'util')
-rw-r--r--util/CMakeLists.txt2
-rw-r--r--util/CMakeLists.windows-x86_64.txt305
-rw-r--r--util/charset/CMakeLists.txt2
-rw-r--r--util/charset/CMakeLists.windows-x86_64.txt29
-rw-r--r--util/draft/CMakeLists.txt2
-rw-r--r--util/draft/CMakeLists.windows-x86_64.txt22
6 files changed, 362 insertions, 0 deletions
diff --git a/util/CMakeLists.txt b/util/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/util/CMakeLists.txt
+++ b/util/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/util/CMakeLists.windows-x86_64.txt b/util/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..2bbd9980dc
--- /dev/null
+++ b/util/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,305 @@
+
+# This file was generated 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_subdirectory(charset)
+add_subdirectory(draft)
+
+add_library(yutil)
+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/datetime/strptime.cpp
+ ${CMAKE_SOURCE_DIR}/util/folder/lstat_win.c
+ ${CMAKE_SOURCE_DIR}/util/folder/dirent_win.c
+ ${CMAKE_SOURCE_DIR}/util/system/err.cpp
+ ${CMAKE_SOURCE_DIR}/util/system/fs_win.cpp
+ ${CMAKE_SOURCE_DIR}/util/system/winint.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/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/function_ref.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_multi_map.cpp
+ ${CMAKE_SOURCE_DIR}/util/generic/hash_table.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/scope.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/variant.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/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
+ -CT0
+)
diff --git a/util/charset/CMakeLists.txt b/util/charset/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/util/charset/CMakeLists.txt
+++ b/util/charset/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/util/charset/CMakeLists.windows-x86_64.txt b/util/charset/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..a13d66250f
--- /dev/null
+++ b/util/charset/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,29 @@
+
+# This file was generated 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.
+
+
+
+add_library(util-charset)
+target_link_libraries(util-charset PUBLIC
+ contrib-libs-cxxsupp
+)
+target_joined_source(util-charset
+ all_charset.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/generated/unidata.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/recode_result.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/unicode_table.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/unidata.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/utf8.cpp
+ ${CMAKE_SOURCE_DIR}/util/charset/wide.cpp
+)
+target_sources_custom(util-charset
+ .sse41
+ SRCS
+ ${CMAKE_SOURCE_DIR}/util/charset/wide_sse41.cpp
+ CUSTOM_FLAGS
+ /D__SSE4_1__=1
+)
diff --git a/util/draft/CMakeLists.txt b/util/draft/CMakeLists.txt
index 8f8c04afe5..d90657116d 100644
--- a/util/draft/CMakeLists.txt
+++ b/util/draft/CMakeLists.txt
@@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND
include(CMakeLists.linux-aarch64.txt)
elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA)
include(CMakeLists.linux-x86_64.txt)
endif()
diff --git a/util/draft/CMakeLists.windows-x86_64.txt b/util/draft/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..08f23dc394
--- /dev/null
+++ b/util/draft/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,22 @@
+
+# This file was generated 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.
+
+
+
+add_library(util-draft)
+target_link_libraries(util-draft PUBLIC
+ contrib-libs-cxxsupp
+)
+target_sources(util-draft PRIVATE
+ ${CMAKE_SOURCE_DIR}/util/draft/date.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/datetime.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/enum.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/holder_vector.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/ip.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/matrix.cpp
+ ${CMAKE_SOURCE_DIR}/util/draft/memory.cpp
+)