Welcome to mirror list, hosted at ThFree Co, Russian Federation.

native.build « native - github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c35fc9afc03ba8b06f52114630818bc79e486c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<project name="ikvm-native" default="ikvm-native">
    <target name="ikvm-native">
		<if propertytrue="nant.platform.unix">
            <call target="ikvm-native-unix"/>
        </if>
        <if propertytrue="nant.platform.win32">
            <call target="ikvm-native-win32"/>
        </if>
    </target>
    <target name="ikvm-native-unix">
        <exec program="/bin/bash" commandline="-c 'gcc -o libikvm-native.so --shared -fPIC `pkg-config --cflags gmodule-2.0` jni.c os.c'"/>
        <copy file="libikvm-native.so" todir="../bin"/>
    </target>
    <target name="ikvm-native-win32">
        <mkdir dir="Release"/>
        <cl outputdir="Release" options="/O2 /D WIN32 /D NDEBUG /D _WINDLL /D _MBCS /GS /W3 /nologo /c">
            <sources>
                <includes name="*.c"/>
            </sources>
        </cl>
        <link output="Release/ikvm-native.dll" options="/DLL user32.lib">
            <sources>
                <includes name="Release/*.obj"/>
            </sources>
        </link>
        <copy file="Release/ikvm-native.dll" todir="../bin" />
    </target>
</project>