diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2024-03-21 10:12:43 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2024-03-21 10:23:50 +0300 |
commit | 277820dd5f1dd43c321c9ef47d46ae2793d51392 (patch) | |
tree | c36fc413a91dbc096ed156532be2da156a3d3e1f | |
parent | b4d311ecf64ae93373551149d51e127fa47dac5b (diff) | |
download | ydb-277820dd5f1dd43c321c9ef47d46ae2793d51392.tar.gz |
Options for dump sems and attrs
fa0100c8a997347257e8fabbfee97d6c5671e97d
4 files changed, 23 insertions, 4 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.jinja b/build/export_generators/ide-gradle/build.gradle.kts.jinja index 39da3a17c8..c10ab27996 100644 --- a/build/export_generators/ide-gradle/build.gradle.kts.jinja +++ b/build/export_generators/ide-gradle/build.gradle.kts.jinja @@ -269,4 +269,4 @@ tasks.build.dependsOn( {% include 'publish.gradle.kts' ignore missing -%} {% endif -%} -{{ dump }} +{%- include "[generator]/debug.jinja" ignore missing -%} diff --git a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja index 1161ba8cdc..cdadeab24c 100644 --- a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja +++ b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja @@ -119,7 +119,7 @@ val prepareProto = tasks.register<Copy>("prepareProto") { {%- endfor %} {# Mining proto-deps sources directories #} {%- for library in target.consumer if library.prebuilt -%} -{%- if library.type == "library" %} +{%- if library.type == "library" %} {%- set proto_rep = library.classpath|replace('project(":','') %} {%- set proto_rep = proto_rep|replace('")','') %} {%- set proto_rep = proto_rep|replace(':','/') %} @@ -135,4 +135,4 @@ afterEvaluate { tasks.getByName("extractProto").dependsOn(prepareProto) } -{{ dump }} +{%- include "[generator]/debug.jinja" ignore missing -%} diff --git a/build/export_generators/ide-gradle/debug.jinja b/build/export_generators/ide-gradle/debug.jinja new file mode 100644 index 0000000000..83f574acf4 --- /dev/null +++ b/build/export_generators/ide-gradle/debug.jinja @@ -0,0 +1,19 @@ +{% if dump_sems is defined %} +// vvvvvv SEMANTICS +{#- replace(' ', ' ') is workaround, else `split` function in C++ receive invalid input -#} +{%- set lines = split(dump_sems|replace(' ', ' '), '\n') -%} +{%- for line in lines %} +// {{ line }} +{%- endfor %} +// ^^^^^^ SEMANTICS +{%- endif %} + +{% if dump_attrs is defined %} +// vvvvvv ATTRIBUTES +{#- replace(' ', ' ') is workaround, else `split` function in C++ receive invalid input -#} +{%- set lines = split(dump_attrs|replace(' ', ' '), '\n') -%} +{%- for line in lines %} +// {{ line }} +{%- endfor %} +// ^^^^^^ ATTRIBUTES +{%- endif %} diff --git a/build/export_generators/ide-gradle/settings.gradle.kts.jinja b/build/export_generators/ide-gradle/settings.gradle.kts.jinja index 623000ccf7..508faae245 100644 --- a/build/export_generators/ide-gradle/settings.gradle.kts.jinja +++ b/build/export_generators/ide-gradle/settings.gradle.kts.jinja @@ -6,4 +6,4 @@ include(":{{ classname }}") project(":{{ classname }}").projectDir = file("{{ exportRoot }}/{{ subdir }}") {% endfor -%} -{{ dump }} +{%- include "[generator]/debug.jinja" ignore missing -%} |