Beispiel #1
0
def convertOne(infile, options):
    outDirBase = 'outcode'
    outfile = join(outDirBase, infile)
    print 'converting %s to %s' % (infile, outfile)

    if 'dart' in options.target:
        htmlconverter.convertForDartium(infile, outDirBase,
                                        outfile.replace('.html', '-dart.html'),
                                        options.verbose)
    if 'js' in options.target:
        htmlconverter.convertForChromium(infile, options.dartc_extra_flags,
                                         outfile.replace('.html', '-js.html'),
                                         options.verbose)
Beispiel #2
0
def convertOne(infile, options):
    outDirBase = 'outcode'
    outfile = join(outDirBase, infile)
    print 'converting %s to %s' % (infile, outfile)

    if 'dart' in options.target:
        htmlconverter.convertForDartium(infile, outDirBase,
                                        outfile.replace('.html', '-dart.html'),
                                        options.verbose)
    if 'js' in options.target:
        htmlconverter.convertForChromium(infile, options.dartc_extra_flags,
                                         outfile.replace('.html', '-js.html'),
                                         options.verbose)
Beispiel #3
0
def convertOne(infile, options):
    outDirBase = 'outcode'
    outfile = join(outDirBase, infile)
    print 'converting %s to %s' % (infile, outfile)

    # TODO(jmesserly): this is a workaround for an OOM error in DartC
    # See bug 5393264
    if options.optimize:
        os.putenv('DART_JVMARGS', '-Xmx512m')

    if 'dart' in options.target:
        htmlconverter.convertForDartium(infile, outDirBase,
                                        outfile.replace('.html', '-dart.html'),
                                        options.verbose)
    if 'js' in options.target:
        htmlconverter.convertForChromium(infile, options.optimize,
                                         options.dartc_extra_flags,
                                         outfile.replace('.html', '-js.html'),
                                         options.verbose)
Beispiel #4
0
def convertOne(infile, options):
  outDirBase = 'outcode'
  outfile = join(outDirBase, infile)
  print 'converting %s to %s' % (infile, outfile)

  # TODO(jmesserly): this is a workaround for an OOM error in DartC
  # See bug 5393264
  if options.optimize:
    os.putenv('DART_JVMARGS', '-Xmx512m')

  if 'dart' in options.target:
    htmlconverter.convertForDartium(
        infile,
        outDirBase,
        outfile.replace('.html', '-dart.html'),
        options.verbose)
  if 'js' in options.target:
    htmlconverter.convertForChromium(
        infile, options.optimize, options.dartc_extra_flags,
        outfile.replace('.html', '-js.html'),
        options.verbose)