2020-05-28 13:46:56 +00:00
|
|
|
INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/autogenerated_versions.txt)
|
|
|
|
|
|
|
|
# TODO: not sure if this is customizable per-binary
|
|
|
|
SET(VERSION_NAME "ClickHouse")
|
|
|
|
|
|
|
|
# TODO: not quite sure how to replace dash with space in ya.make
|
|
|
|
SET(VERSION_FULL "${VERSION_NAME}-${VERSION_STRING}")
|
|
|
|
|
|
|
|
CFLAGS (GLOBAL -DDBMS_NAME=\"ClickHouse\")
|
|
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_MAJOR=${VERSION_MAJOR})
|
|
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_MINOR=${VERSION_MINOR})
|
|
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_PATCH=${VERSION_PATCH})
|
|
|
|
CFLAGS (GLOBAL -DVERSION_FULL=\"\\\"${VERSION_FULL}\\\"\")
|
2020-10-27 11:04:03 +00:00
|
|
|
CFLAGS (GLOBAL -DVERSION_MAJOR=${VERSION_MAJOR})
|
|
|
|
CFLAGS (GLOBAL -DVERSION_MINOR=${VERSION_MINOR})
|
2020-05-28 16:44:30 +00:00
|
|
|
CFLAGS (GLOBAL -DVERSION_PATCH=${VERSION_PATCH})
|
2020-05-28 13:46:56 +00:00
|
|
|
|
2020-10-27 11:04:03 +00:00
|
|
|
# TODO: not supported yet, not sure if ya.make supports arithmetic.
|
2020-05-28 13:46:56 +00:00
|
|
|
CFLAGS (GLOBAL -DVERSION_INTEGER=0)
|
|
|
|
|
|
|
|
CFLAGS (GLOBAL -DVERSION_NAME=\"\\\"${VERSION_NAME}\\\"\")
|
|
|
|
CFLAGS (GLOBAL -DVERSION_OFFICIAL=\"-arcadia\")
|
|
|
|
CFLAGS (GLOBAL -DVERSION_REVISION=${VERSION_REVISION})
|
|
|
|
CFLAGS (GLOBAL -DVERSION_STRING=\"\\\"${VERSION_STRING}\\\"\")
|
|
|
|
|