目录

Dart2Java dev compiler

The Dart2Java dev compiler is a transpiler from Dart to Java source. It is based on DDC and Kernel IR, and its main goal is to investigate which features of the Dart language make it particularly hard or easy for AOT compilation to a new language. Ideally, Dart2Java will enable interoperability between Dart and Java programs, and automatic translation of Dart programs to Java source.

Compiling the SDK

The easy way to build the SDK is to run the tool/build_sdk.sh script.

The script executes the following steps:

  • Patch the SDK: tool/patch_sdk.sh
  • Compile the SDK: dart2java --dart-sdk=gen/patched_sdk --output=gen/compiled_sdk --package-prefix=dart dart:_internal ...
  • Compile the generated .java files with javac
  • Archive the generated .class files with jar

Disclaimer

This is not an official Google product.

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号