Project

Profile

Help

Revision 9b52d94c

Added by Norman Tovey-Walsh 6 months ago

Support -debug option for ikmvc

View differences:

build-n.gradle
10 10
  }
11 11
}
12 12

  
13
def additionalIkvmOptions = []
14
if (hasProperty("ikvmDebug")) {
15
  additionalIkvmOptions += ["-debug"]
16
}
17

  
13 18
task hen_setupPreprocess(
14 19
  type: Copy,
15 20
  description: "Copy HE sources for preprocessing HE"
......
540 545
  inputs.file("${buildDir}/xerces/xerces.jar")
541 546
  inputs.file("${ikvmDir}/saxondotnet.snk")
542 547
  outputs.file("build/n/bin/he/saxon9he.dll")
543
  commandLine "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe",
544
    "-out:${buildDir}/n/bin/he/saxon9he.dll",
545
    "-assembly:saxon9he",
546
    "-target:library",
547
    "-keyfile:${ikvmDir}/saxondotnet.snk",
548
    "-version:${saxonVersion}",
549
    "-srcpath:${buildDir}/preprocess/hen",
550
    "-reference:mscorlib.dll",
551
    "-reference:System.Xml.dll",
552
    "-reference:System.dll",
553
    "-reference:${buildDir}/n/bin/he/IKVM.OpenJDK.Core.dll",
554
    "${buildDir}/n/jar/saxon9he.jar",
555
    "${buildDir}/n/jar/xerces.jar"
548

  
549
  def ikvmCommand = [ "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe" ] \
550
  + additionalIkvmOptions \
551
  + ["-out:${buildDir}/n/bin/he/saxon9he.dll",
552
     "-assembly:saxon9he",
553
     "-target:library",
554
     "-keyfile:${ikvmDir}/saxondotnet.snk",
555
     "-version:${saxonVersion}",
556
     "-srcpath:${buildDir}/preprocess/hen",
557
     "-reference:mscorlib.dll",
558
     "-reference:System.Xml.dll",
559
     "-reference:System.dll",
560
     "-reference:${buildDir}/n/bin/he/IKVM.OpenJDK.Core.dll",
561
     "${buildDir}/n/jar/saxon9he.jar",
562
     "${buildDir}/n/jar/xerces.jar"]
563

  
564
  commandLine ikvmCommand
556 565
  doFirst {
557 566
    mkdir "${buildDir}/n/bin/he"
558 567
  }
......
567 576
  inputs.file("${buildDir}/xerces/xerces.jar")
568 577
  inputs.file("${ikvmDir}/saxondotnet.snk")
569 578
  outputs.file("build/n/bin/pe/saxon9pe.dll")
570
  commandLine "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe",
571
    "-out:${buildDir}/n/bin/pe/saxon9pe.dll",
572
    "-assembly:saxon9pe",
573
    "-target:library",
574
    "-keyfile:${ikvmDir}/saxondotnet.snk",
575
    "-version:${saxonVersion}",
576
    "-srcpath:${buildDir}/preprocess/pen",
577
    "-reference:mscorlib.dll",
578
    "-reference:System.Xml.dll",
579
    "-reference:System.dll",
580
    "-reference:${buildDir}/n/bin/pe/IKVM.OpenJDK.Core.dll",
581
    "-reference:System.Security.dll",
582
    "${buildDir}/n/jar/saxon9pe.jar",
583
    "${buildDir}/n/jar/xerces.jar",
584
    "${buildDir}/n/jar/tagsoup-${tagsoupVersion}.jar",
585
    "${buildDir}/n/jar/javax.mail-${mailVersion}.jar",
586
    "${buildDir}/n/jar/icu4j-${icu4jVersion}.jar"
579

  
580
  def ikvmCommand = [ "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe" ] \
581
  + additionalIkvmOptions \
582
  + ["-out:${buildDir}/n/bin/pe/saxon9pe.dll",
583
     "-assembly:saxon9pe",
584
     "-target:library",
585
     "-keyfile:${ikvmDir}/saxondotnet.snk",
586
     "-version:${saxonVersion}",
587
     "-srcpath:${buildDir}/preprocess/pen",
588
     "-reference:mscorlib.dll",
589
     "-reference:System.Xml.dll",
590
     "-reference:System.dll",
591
     "-reference:${buildDir}/n/bin/pe/IKVM.OpenJDK.Core.dll",
592
     "-reference:System.Security.dll",
593
     "${buildDir}/n/jar/saxon9pe.jar",
594
     "${buildDir}/n/jar/xerces.jar",
595
     "${buildDir}/n/jar/tagsoup-${tagsoupVersion}.jar",
596
     "${buildDir}/n/jar/javax.mail-${mailVersion}.jar",
597
     "${buildDir}/n/jar/icu4j-${icu4jVersion}.jar"]
598

  
599
  commandLine ikvmCommand
587 600
  doFirst {
588 601
    mkdir "${buildDir}/n/bin/pe"
589 602
  }
......
598 611
  inputs.file("${buildDir}/xerces/xerces.jar")
599 612
  inputs.file("${ikvmDir}/saxondotnet.snk")
600 613
  outputs.file("build/n/bin/ee/saxon9ee.dll")
601
  commandLine "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe",
602
    "-out:${buildDir}/n/bin/ee/saxon9ee.dll",
603
    "-assembly:saxon9ee",
604
    "-target:library",
605
    "-keyfile:${ikvmDir}/saxondotnet.snk",
606
    "-version:${saxonVersion}",
607
    "-srcpath:${buildDir}/preprocess/een",
608
    "-reference:mscorlib.dll",
609
    "-reference:System.Xml.dll",
610
    "-reference:System.dll",
611
    "-reference:${buildDir}/n/bin/ee/IKVM.OpenJDK.Core.dll",
612
    "-reference:System.Security.dll",
613
    "${buildDir}/n/jar/saxon9ee.jar",
614
    "${buildDir}/n/jar/xerces.jar",
615
    "${buildDir}/n/jar/asm-${asmVersion}/asm-${asmVersion}.jar",
616
    "${buildDir}/n/jar/asm-${asmVersion}/asm-analysis-${asmVersion}.jar",
617
    "${buildDir}/n/jar/asm-${asmVersion}/asm-commons-${asmVersion}.jar",
618
    "${buildDir}/n/jar/asm-${asmVersion}/asm-tree-${asmVersion}.jar",
619
    "${buildDir}/n/jar/asm-${asmVersion}/asm-util-${asmVersion}.jar",
620
    "${buildDir}/n/jar/tagsoup-${tagsoupVersion}.jar",
621
    "${buildDir}/n/jar/javax.mail-${mailVersion}.jar",
622
    "${buildDir}/n/jar/icu4j-${icu4jVersion}.jar"
614

  
615
  def ikvmCommand = [ "${ikvmDir}/ikvm-${ikvmVersion}/bin/ikvmc.exe" ] \
616
  + additionalIkvmOptions \
617
  + ["-out:${buildDir}/n/bin/ee/saxon9ee.dll",
618
     "-assembly:saxon9ee",
619
     "-target:library",
620
     "-keyfile:${ikvmDir}/saxondotnet.snk",
621
     "-version:${saxonVersion}",
622
     "-srcpath:${buildDir}/preprocess/een",
623
     "-reference:mscorlib.dll",
624
     "-reference:System.Xml.dll",
625
     "-reference:System.dll",
626
     "-reference:${buildDir}/n/bin/ee/IKVM.OpenJDK.Core.dll",
627
     "-reference:System.Security.dll",
628
     "${buildDir}/n/jar/saxon9ee.jar",
629
     "${buildDir}/n/jar/xerces.jar",
630
     "${buildDir}/n/jar/asm-${asmVersion}/asm-${asmVersion}.jar",
631
     "${buildDir}/n/jar/asm-${asmVersion}/asm-analysis-${asmVersion}.jar",
632
     "${buildDir}/n/jar/asm-${asmVersion}/asm-commons-${asmVersion}.jar",
633
     "${buildDir}/n/jar/asm-${asmVersion}/asm-tree-${asmVersion}.jar",
634
     "${buildDir}/n/jar/asm-${asmVersion}/asm-util-${asmVersion}.jar",
635
     "${buildDir}/n/jar/tagsoup-${tagsoupVersion}.jar",
636
     "${buildDir}/n/jar/javax.mail-${mailVersion}.jar",
637
     "${buildDir}/n/jar/icu4j-${icu4jVersion}.jar"]
638

  
639
  commandLine ikvmCommand
623 640
  doFirst {
624 641
    mkdir "${buildDir}/n/bin/ee"
625 642
  }

Also available in: Unified diff