Fix "Arcadia" build

This commit is contained in:
Alexey Milovidov 2020-05-07 23:40:18 +03:00
parent 8690b6e702
commit 048e26dabf
5 changed files with 64 additions and 3 deletions

View File

@ -11,7 +11,6 @@ PEERDIR(
NO_COMPILER_WARNINGS()
# Autogenerated from: find . -name '*.cpp' | grep -v -F tests | grep -v -F Trie | sed 's/^\.\// /' | sort
SRCS(
CacheDictionary.cpp
CacheDictionary_generate1.cpp
@ -60,6 +59,7 @@ SRCS(
registerDictionaries.cpp
writeParenthesisedString.cpp
XDBCDictionarySource.cpp
)
END()

View File

@ -0,0 +1,18 @@
LIBRARY()
PEERDIR(
clickhouse/src/Common
contrib/libs/poco/Data
contrib/libs/poco/Data/ODBC
contrib/libs/poco/MongoDB
contrib/libs/poco/Redis
contrib/libs/sparsehash
)
NO_COMPILER_WARNINGS()
SRCS(
<? find . -name '*.cpp' | grep -v -F tests | grep -v -F Trie | sed 's/^\.\// /' | sort ?>
)
END()

View File

@ -24,7 +24,6 @@ PEERDIR(
library/consistent_hashing
)
# Autogenerated from: find . -name '*.cpp' | grep -i -v -P 'tests|h3|Bitmap|sumbur' | sed 's/^\.\// /' | sort
# "Arcadia" build is slightly deficient. It lacks many libraries that we need.
SRCS(
abs.cpp
@ -336,7 +335,6 @@ SRCS(
subtractSeconds.cpp
subtractWeeks.cpp
subtractYears.cpp
sumburConsistentHash.cpp
tan.cpp
tanh.cpp
tgamma.cpp
@ -432,6 +430,7 @@ SRCS(
visitParamHas.cpp
yandexConsistentHash.cpp
yesterday.cpp
)
END()

32
src/Functions/ya.make.in Normal file
View File

@ -0,0 +1,32 @@
LIBRARY()
ADDINCL(
library/consistent_hashing
contrib/libs/farmhash
contrib/libs/hyperscan/src
contrib/libs/icu/common
contrib/libs/libdivide
contrib/libs/rapidjson/include
contrib/libs/xxhash
)
PEERDIR(
clickhouse/src/Common
clickhouse/src/Dictionaries
contrib/libs/farmhash
contrib/libs/fastops/fastops
contrib/libs/hyperscan
contrib/libs/icu
contrib/libs/libdivide
contrib/libs/metrohash
contrib/libs/rapidjson
contrib/libs/xxhash
library/consistent_hashing
)
# "Arcadia" build is slightly deficient. It lacks many libraries that we need.
SRCS(
<? find . -name '*.cpp' | grep -i -v -P 'tests|h3|Bitmap|sumbur' | sed 's/^\.\// /' | sort ?>
)
END()

View File

@ -0,0 +1,12 @@
#!/bin/bash
# This script searches for ya.make.in files in repository and generates ya.make files from them.
# ya.make.in is a template with substitutions in form of <? command ?>
# command is interpreted by bash and output is put in place of substitution
ROOT_PATH=$(git rev-parse --show-toplevel)
EXCLUDE_DIRS='build/|integration/|widechar_width/|glibc-compatibility/|memcpy/|consistent-hashing'
find "${ROOT_PATH}" -name 'ya.make.in' | while read path; do
(cd $(dirname "${path}") && perl -pne 's/<\?(.+?)\?>/`$1`/e' < "${path}" > "${path/.in/}")
done