diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2024-08-22 21:52:35 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2024-08-22 22:05:14 +0300 |
commit | e2174670886506e14f4989a4fd2d038bb770145d (patch) | |
tree | 0500c97b5c27db3b23a7f8f29fe7eadef32e1103 /build | |
parent | 8e2834ff52782b526d709fca70925e565601c227 (diff) | |
download | ydb-e2174670886506e14f4989a4fd2d038bb770145d.tar.gz |
Macro USE_ANNOTATION_PROCESSOR
Macro USE_ANNOTATION_PROCESSOR
670d47e64a48e59e9b190875a9729bc9e9921e15
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/java.conf | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build/conf/java.conf b/build/conf/java.conf index be9c608757..be038d8c23 100644 --- a/build/conf/java.conf +++ b/build/conf/java.conf @@ -469,6 +469,17 @@ macro _JAR_ANN_PROC_OPTS(Classes...) { } # tag:java-specific +_USE_ANNOTATION_PROCESSOR_OPT= +_USE_ANNOTATION_PROCESSOR_SEM= +### @usage: USE_ANNOTATION_PROCESSOR(AnnotationProcessor) +### +### Used to specify annotation processor for building JAVA_PROGRAM() and JAVA_LIBRARY(). +macro USE_ANNOTATION_PROCESSOR(AnnotationProcessor) { + SET(_USE_ANNOTATION_PROCESSOR_OPT -processorpath @${tool:AnnotationProcessor}.cplist) + SET(_USE_ANNOTATION_PROCESSOR_SEM && use_annotation_processor $AnnotationProcessor) +} + +# tag:java-specific macro _NOOP_MACRO(Args...) { ENABLE(UNUSED_MACRO) } @@ -698,7 +709,7 @@ macro _PACK_JAR_HELPER(Out) { # tag:java-specific macro _JAVAC_RUN_HELPER(JAVAC_CMD_WITH_ARGS...) { - .CMD=${cwd:ARCADIA_BUILD_ROOT} ${env:"LC_ALL=en_US.UTF-8"} $YMAKE_PYTHON ${input:"build/scripts/run_javac.py"} ${input;hide:"build/scripts/build_java_with_error_prone2.py"} ${input;hide:"build/scripts/setup_java_tmpdir.py"} --with-setup-java-tmpdir --sources-list ${BINDIR}/all-java.srclst ${RUN_JAVAC_ARGS} ${JAVAC_CMD_WITH_ARGS} @${BINDIR}/all-java.srclst -classpath ${ARCADIA_BUILD_ROOT}/bfg.jar -Xpkginfo:always ${JAVAC_OPTS} $_JAR_ANN_PROC_OPTS($_JAR_ANN_PROCESSORS) -d ${BINDIR}/cls -g -encoding UTF-8 + .CMD=${cwd:ARCADIA_BUILD_ROOT} ${env:"LC_ALL=en_US.UTF-8"} $YMAKE_PYTHON ${input:"build/scripts/run_javac.py"} ${input;hide:"build/scripts/build_java_with_error_prone2.py"} ${input;hide:"build/scripts/setup_java_tmpdir.py"} --with-setup-java-tmpdir --sources-list ${BINDIR}/all-java.srclst ${RUN_JAVAC_ARGS} ${JAVAC_CMD_WITH_ARGS} @${BINDIR}/all-java.srclst -classpath ${ARCADIA_BUILD_ROOT}/bfg.jar -Xpkginfo:always ${JAVAC_OPTS} ${_USE_ANNOTATION_PROCESSOR_OPT} $_JAR_ANN_PROC_OPTS($_JAR_ANN_PROCESSORS) -d ${BINDIR}/cls -g -encoding UTF-8 } # tag:java-specific @@ -916,6 +927,7 @@ BUILD_JAR_SEM= \ $_JAR_MAIN_SEM \ $_GRADLE_EXPORT_PUBLISHING_SEM \ $_ANN_PROCESSORS_SEM \ + $_USE_ANNOTATION_PROCESSOR_SEM \ $_ENABLE_PREVIEW_SEM \ $SEM_JAR_SOURCE_SET @@ -928,6 +940,7 @@ BUILD_PROTO_JAR_SEM= \ && consumer-type library \ $_JAVAC_SEM \ $_ANN_PROCESSORS_SEM \ + $_USE_ANNOTATION_PROCESSOR_SEM \ $_ENABLE_PREVIEW_SEM \ $_KOTLIN_SEM |