Skip to content

Commit 79e470e

Browse files
authored
Merge pull request #8207 from ydb-platform/mergelibs-240823-1155
Library import 240823-1155
2 parents 5d02f01 + 26fe297 commit 79e470e

File tree

496 files changed

+15854
-2923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

496 files changed

+15854
-2923
lines changed

build/conf/java.conf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,17 @@ macro _JAR_ANN_PROC_OPTS(Classes...) {
468468
.CMD=$_JAR_ANN_PROC_OPT_PREFIX ${join=,:Classes}
469469
}
470470

471+
# tag:java-specific
472+
_USE_ANNOTATION_PROCESSOR_OPT=
473+
_USE_ANNOTATION_PROCESSOR_SEM=
474+
### @usage: USE_ANNOTATION_PROCESSOR(AnnotationProcessor)
475+
###
476+
### Used to specify annotation processor for building JAVA_PROGRAM() and JAVA_LIBRARY().
477+
macro USE_ANNOTATION_PROCESSOR(AnnotationProcessor) {
478+
SET(_USE_ANNOTATION_PROCESSOR_OPT -processorpath @${tool:AnnotationProcessor}.cplist)
479+
SET(_USE_ANNOTATION_PROCESSOR_SEM && use_annotation_processor $AnnotationProcessor)
480+
}
481+
471482
# tag:java-specific
472483
macro _NOOP_MACRO(Args...) {
473484
ENABLE(UNUSED_MACRO)
@@ -698,7 +709,7 @@ macro _PACK_JAR_HELPER(Out) {
698709

699710
# tag:java-specific
700711
macro _JAVAC_RUN_HELPER(JAVAC_CMD_WITH_ARGS...) {
701-
.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
712+
.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
702713
}
703714

704715
# tag:java-specific
@@ -916,6 +927,7 @@ BUILD_JAR_SEM= \
916927
$_JAR_MAIN_SEM \
917928
$_GRADLE_EXPORT_PUBLISHING_SEM \
918929
$_ANN_PROCESSORS_SEM \
930+
$_USE_ANNOTATION_PROCESSOR_SEM \
919931
$_ENABLE_PREVIEW_SEM \
920932
$SEM_JAR_SOURCE_SET
921933

@@ -928,6 +940,7 @@ BUILD_PROTO_JAR_SEM= \
928940
&& consumer-type library \
929941
$_JAVAC_SEM \
930942
$_ANN_PROCESSORS_SEM \
943+
$_USE_ANNOTATION_PROCESSOR_SEM \
931944
$_ENABLE_PREVIEW_SEM \
932945
$_KOTLIN_SEM
933946

build/conf/settings.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ REPORT_ALL_DUPSRC=yes
1616
DEPS_CACHE_CONTROL_UIDS_CACHE=yes
1717
INCLUDE_BLACKLIST_TO_CONF_HASH=no
1818
INCLUDE_ISOLATED_PROJECTS_TO_CONF_HASH=yes
19+
USE_GRAND_BYPASS=no
1920
USE_GLOBAL_CMD=yes
2021
YMAKE_USE_NEW_UIDS=yes
2122
USE_GRAPH_CHANGES_PREDICTOR=yes

build/conf/ts/ts_next.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ TS_NEXT_CMD=$TOUCH_UNIT \
4040
$_NODE_MODULES_INOUTS ${hide:PEERS} \
4141
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
4242
${output;hide:"package.json"} \
43+
${requirements;hide:"cpu:2"} \
4344
${kv;hide:"pc magenta"} ${kv;hide:"p TS_NXT"}
4445

4546
### @usage: TS_NEXT([name])

build/conf/ts/ts_proto.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ _TS_PROTO_IMPL_CMD=$TOUCH_UNIT \
99
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
1010
${output;hide:"package.json"} \
1111
${hide:PROTO_FAKEID} \
12+
${requirements;hide:"cpu:2"} \
1213
${kv;hide:"pc magenta"} ${kv;hide:"p TS_PRO"}
1314

1415

build/conf/ts/ts_tsc.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ TS_TSC_CMD=$TOUCH_UNIT \
44
$_NODE_MODULES_INOUTS ${hide:PEERS} \
55
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
66
${output;hide:"package.json"} \
7+
${requirements;hide:"cpu:2"} \
78
${kv;hide:"pc magenta"} ${kv;hide:"p TS_TSC"}
89

910
### @usage: TS_TSC([name])

build/conf/ts/ts_vite.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ TS_VITE_CMD=$TOUCH_UNIT \
4242
$_NODE_MODULES_INOUTS ${hide:PEERS} \
4343
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
4444
${output;hide:"package.json"} \
45+
${requirements;hide:"cpu:2"} \
4546
${kv;hide:"pc magenta"} ${kv;hide:"p TS_VIT"}
4647

4748
### @usage: TS_VITE([name])

build/conf/ts/ts_webpack.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ TS_WEBPACK_CMD=$TOUCH_UNIT \
3939
$_NODE_MODULES_INOUTS ${hide:PEERS} \
4040
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
4141
${output;hide:"package.json"} \
42+
${requirements;hide:"cpu:2"} \
4243
${kv;hide:"pc magenta"} ${kv;hide:"p TS_WPK"}
4344

4445
### @usage: TS_WEBPACK([name])

build/export_generators/cmake/dir_targets.jinja

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,13 @@
6363
{{ RenderTargetOptions(target_name, prefix, target_options.publics, only_option, exclude_options) }}
6464
{%- endif -%}
6565

66-
{%- if not(is_really_fake_module) and (target_options.privates is defined) -%}
67-
{{ RenderTargetOptions(target_name, ' PRIVATE', target_options.privates, only_option, exclude_options) }}
66+
{%- if (target_options.privates is defined) -%}
67+
{%- if is_really_fake_module -%}
68+
{%- set prefix = ' INTERFACE' -%}
69+
{%- else -%}
70+
{%- set prefix = ' PRIVATE' -%}
71+
{%- endif -%}
72+
{{ RenderTargetOptions(target_name, prefix, target_options.privates, only_option, exclude_options) }}
6873
{%- endif -%}
6974
{%- endmacro -%}
7075

build/export_generators/cmake/merge_platforms_cmake_lists.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% include '[generator]/disclaimer.jinja' %}
1+
{%- include '[generator]/disclaimer.jinja' -%}
22

3-
{% if platform_names|length -%}
3+
{%- if platform_names|length %}
44
{%- for platform_name in platform_names %}
55
{% if not loop.first %}else{% endif %}if ({{ platform_conditions[platform_name] }})
66
include(CMakeLists.{{ platform_name }}.txt)

build/export_generators/cmake/target_cmake_lists.jinja

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,29 @@
2424
{%- endif -%}
2525
{%- endif -%}
2626
{%- if target_sources|length -%}
27-
{%- for target_source in target_sources -%}
28-
{%- if not (target_source.endswith('.h') or target_source.endswith('.hh') or target_source.endswith('.hpp') or target_source.endswith('.i') or target_source.endswith('.inc') or target_source.endswith('.inc.d')) -%}
29-
{#- Any non-header clear flag only_headers_like_sources_library -#}
30-
{%- set only_headers_like_sources_library = false -%}
31-
{%- endif -%}
32-
{%- endfor -%}
33-
{%- else -%}
34-
{#- Without target sources flag only_headers_like_sources_library -#}
35-
{%- set only_headers_like_sources_library = false -%}
27+
{%- set target_sources_non_headers = reject_by_ends(target_sources, ['.h', '.hh', '.hpp']) -%}
28+
{%- if (target_sources_non_headers|length) -%}
29+
{#- Any non-header clear flag only_headers_like_sources_library -#}
30+
{%- set only_headers_like_sources_library = false -%}
31+
{%- endif -%}
3632
{%- endif -%}
3733
{%- else -%}
3834
{%- set only_headers_like_sources_library = false -%}
3935
{%- endif -%}
4036

41-
{%- set is_really_fake_module = (current_target.is_fake_module) and not(only_headers_like_sources_library) -%}
37+
{%- set is_really_fake_module = (current_target.is_fake_module) and (only_headers_like_sources_library) -%}
4238

4339
{{ macro }}({{ name }}
4440
{%- if current_target.is_fake_module -%}
45-
{%- if only_headers_like_sources_library %} STATIC{%- else %} INTERFACE{%- endif -%}
41+
{%- if only_headers_like_sources_library %} INTERFACE{%- else %} STATIC{%- endif -%}
4642
{%- endif -%}
4743
{%- if macro_args|length > 0 -%}
4844
{%- for arg in macro_args %}
4945
{{ arg }}
5046
{%- endfor -%}
5147
{%- endif -%}
5248
)
53-
{% if (current_target.is_fake_module) and (only_headers_like_sources_library) %}
49+
{% if (current_target.is_fake_module) and not(only_headers_like_sources_library) %}
5450
set_property(TARGET {{ name }} PROPERTY LINKER_LANGUAGE CXX)
5551
{%- endif -%}
5652

0 commit comments

Comments
 (0)