xref: /aosp_15_r20/external/protobuf/java/kotlin-lite/generate-test-sources-build.xml (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1*1b3f573fSAndroid Build Coastguard Worker<project name="generate-test-sources">
2*1b3f573fSAndroid Build Coastguard Worker    <mkdir dir="${generated.testsources.dir}"/>
3*1b3f573fSAndroid Build Coastguard Worker    <exec executable="${protoc}">
4*1b3f573fSAndroid Build Coastguard Worker        <arg value="--java_out=lite:${generated.testsources.dir}"/>
5*1b3f573fSAndroid Build Coastguard Worker        <arg value="--proto_path=${protobuf.source.dir}"/>
6*1b3f573fSAndroid Build Coastguard Worker        <arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/>
7*1b3f573fSAndroid Build Coastguard Worker        <arg value="--experimental_allow_proto3_optional"/>
8*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/>
9*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest.proto"/>
10*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_import.proto"/>
11*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_lite.proto"/>
12*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public.proto"/>
13*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public_lite.proto"/>
14*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/>
15*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3_lite.proto"/>
16*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/>
17*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/>
18*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/>
19*1b3f573fSAndroid Build Coastguard Worker        <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/>
20*1b3f573fSAndroid Build Coastguard Worker    </exec>
21*1b3f573fSAndroid Build Coastguard Worker    <exec executable="${protoc}">
22*1b3f573fSAndroid Build Coastguard Worker      <arg value="--kotlin_out=lite:${generated.testsources.dir}"/>
23*1b3f573fSAndroid Build Coastguard Worker      <arg value="--proto_path=${protobuf.source.dir}"/>
24*1b3f573fSAndroid Build Coastguard Worker      <arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/>
25*1b3f573fSAndroid Build Coastguard Worker      <arg value="--experimental_allow_proto3_optional"/>
26*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/>
27*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/>
28*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3_lite.proto"/>
29*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/>
30*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/>
31*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/>
32*1b3f573fSAndroid Build Coastguard Worker      <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/>
33*1b3f573fSAndroid Build Coastguard Worker    </exec>
34*1b3f573fSAndroid Build Coastguard Worker</project>
35