~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ikvm/jvm/jvm.build

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<project name="JVM" default="JVM">
 
3
    <include buildfile="../ikvm.include" />
 
4
    <target name="version">
 
5
        <property name="VERSION" value="${assemblyname::get-version(assemblyname::get-assembly-name(path::combine(project::get-base-directory(), '../bin/IKVM.Runtime.dll')))}" />
 
6
        <copy file="jvm.rc.in" tofile="jvm.rc" outputencoding="ascii" overwrite="true">
 
7
            <filterchain>
 
8
                <replacetokens>
 
9
                    <token key="VERSIONLIST" value="${string::replace(property::get-value('VERSION'), '.', ',')}" />
 
10
                    <token key="VERSION" value="${VERSION}" />
 
11
                </replacetokens>
 
12
            </filterchain>
 
13
        </copy>
 
14
    </target>
 
15
    <target name="JVM" depends="version" if="${property::exists('ilasm') and (not string::starts-with(framework::get-target-framework(), 'mono'))}">
 
16
        <property overwrite="false" name="ilasm_signoption" value="" />
 
17
        <if test="${property::exists('rc')}">
 
18
            <exec program="${rc}" commandline="jvm.rc" />
 
19
        </if>
 
20
        <rc if="${not property::exists('rc')}" rcfile="jvm.rc" output="jvm.res" />
 
21
        <exec program="../tools/asmref.exe" useruntimeengine="true" commandline="mscorlib ../bin/IKVM.Runtime.JNI.dll" output="jvm_h.il" />
 
22
        <echo message=".assembly JVM { .ver ${string::replace(property::get-value('VERSION'), '.', ':')} }" file="jvm_h.il" append="true" />
 
23
        <exec program="${ilasm}" commandline="           /dll ${ilasm_signoption} /out:../bin-x86/JVM.DLL /RESOURCE:jvm.res jvm_h.il jvm32.il JVM.il" />
 
24
        <exec program="${ilasm}" commandline="/pe64 /x64 /dll ${ilasm_signoption} /out:../bin-x64/JVM.DLL /RESOURCE:jvm.res jvm_h.il jvm64.il JVM.il" />
 
25
    </target>
 
26
</project>