mirror of
https://github.com/Maschell/GhidraRPXLoader.git
synced 2024-11-14 12:25:12 +01:00
51 lines
1.6 KiB
XML
51 lines
1.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
+ Compile sleigh languages within this module.
|
|
+ Sleigh compiler options are read from the sleighArgs.txt file.
|
|
+ Eclipse: right-click on this file and choose menu item "Run As->Ant Build"
|
|
-->
|
|
|
|
<project name="privateBuildDeveloper" default="sleighCompile">
|
|
|
|
<property name="sleigh.compile.class" value="ghidra.pcodeCPort.slgh_compile.SleighCompile"/>
|
|
|
|
<!--Import optional ant properties. GhidraDev Eclipse plugin produces this so this file can find the Ghidra installation-->
|
|
<import file="../.antProperties.xml" optional="false" />
|
|
|
|
<target name="sleighCompile">
|
|
|
|
<!-- If language module is detached from installation, get Ghidra installation directory path from imported properties -->
|
|
<property name="framework.path" value="${ghidra.install.dir}/Ghidra/Framework"/>
|
|
|
|
<path id="sleigh.class.path">
|
|
<fileset dir="${framework.path}/SoftwareModeling/lib">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
<fileset dir="${framework.path}/Generic/lib">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
<fileset dir="${framework.path}/Utility/lib">
|
|
<include name="*.jar"/>
|
|
</fileset>
|
|
</path>
|
|
|
|
<available classname="${sleigh.compile.class}" classpathref="sleigh.class.path" property="sleigh.compile.exists"/>
|
|
|
|
<fail unless="sleigh.compile.exists" />
|
|
|
|
<java classname="${sleigh.compile.class}"
|
|
classpathref="sleigh.class.path"
|
|
fork="true"
|
|
failonerror="true">
|
|
<jvmarg value="-Xmx2048M"/>
|
|
<arg value="-i"/>
|
|
<arg value="sleighArgs.txt"/>
|
|
<arg value="-a"/>
|
|
<arg value="./languages"/>
|
|
</java>
|
|
|
|
</target>
|
|
|
|
</project>
|