aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-07-24 20:13:39 +0300
committeralexv-smirnov <alex@ydb.tech>2023-07-24 20:13:39 +0300
commite976914ac18c28b062fc522b7d305c0c167cb83d (patch)
tree8b2f6277cb97aec465ce31e03aa3f96d5440b15d /build/conf
parentb11444b99ab01c24be7bb66d63eef719491c1d7f (diff)
downloadydb-e976914ac18c28b062fc522b7d305c0c167cb83d.tar.gz
More clones for contrib/ydb
Diffstat (limited to 'build/conf')
-rw-r--r--build/conf/project_specific/yql_udf.conf21
1 files changed, 20 insertions, 1 deletions
diff --git a/build/conf/project_specific/yql_udf.conf b/build/conf/project_specific/yql_udf.conf
index 229161aba9..2be4cafa71 100644
--- a/build/conf/project_specific/yql_udf.conf
+++ b/build/conf/project_specific/yql_udf.conf
@@ -76,6 +76,19 @@ macro _MAKE_YQL_UDF() {
SET(EXPORTS_FILE $YQL_UDF_EXPORT)
}
+macro _MAKE_YQL_UDF_CONTRIB() {
+ _ADD_YQL_UDF_DEPS_CONTRIB()
+ SET_APPEND(USER_CXXFLAGS -DBUILD_UDF)
+ # For Windows using declspecs
+ DEFAULT(YQL_UDF_EXPORT ${ARCADIA_ROOT}/contrib/ydb/library/yql/public/udf/udfs_exports.exports)
+
+ when ($WINDOWS == "yes") {
+ YQL_UDF_EXPORT=
+ }
+
+ SET(EXPORTS_FILE $YQL_UDF_EXPORT)
+}
+
### @usage: YQL_UDF_MODULE(name)
###
### The extension module for YQL with C++ UDF (User Defined Function YQL)
@@ -87,6 +100,12 @@ module YQL_UDF_MODULE: UDF_BASE {
PROVIDES(YqlServicePolicy)
}
+module YQL_UDF_MODULE_CONTRIB: UDF_BASE {
+ .CMD=YQL_UDF_LINK_CMD
+ _MAKE_YQL_UDF_CONTRIB()
+ PROVIDES(YqlServicePolicy)
+}
+
module _YQL_UDF_PROGRAM_BASE: SO_PROGRAM {
.CMD=YQL_UDF_LINK_PRG_CMD
_MAKE_YQL_UDF()
@@ -121,7 +140,7 @@ multimodule YQL_UDF {
}
}
multimodule YQL_UDF_CONTRIB {
- module YQL_UDF_SHARED: YQL_UDF_MODULE {
+ module YQL_UDF_SHARED: YQL_UDF_MODULE_CONTRIB {
.SEM=UDF_SHARED_SEM
NO_CLANG_TIDY()
}