зеркало из https://github.com/mono/ikvm-fork.git
30 строки
1.1 KiB
XML
30 строки
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<project name="ikvm-native" default="ikvm-native">
|
|
<target name="ikvm-native">
|
|
<if test="${platform::is-unix()}">
|
|
<call target="ikvm-native-unix"/>
|
|
</if>
|
|
<if test="${platform::is-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>
|
|
<include name="*.c"/>
|
|
</sources>
|
|
</cl>
|
|
<link output="Release/ikvm-native.dll" options="/DLL user32.lib">
|
|
<sources>
|
|
<include name="Release/*.obj"/>
|
|
</sources>
|
|
</link>
|
|
<copy file="Release/ikvm-native.dll" todir="../bin" />
|
|
</target>
|
|
</project>
|