ikvm-fork/native/native.build

30 строки
1.1 KiB
Plaintext
Исходник Обычный вид История

2004-08-30 19:56:23 +04:00
<?xml version="1.0"?>
<project name="ikvm-native" default="ikvm-native">
<target name="ikvm-native">
2006-10-16 09:40:35 +04:00
<if test="${platform::is-unix()}">
2004-08-30 19:56:23 +04:00
<call target="ikvm-native-unix"/>
</if>
2006-10-16 09:40:35 +04:00
<if test="${platform::is-win32()}">
2004-08-30 19:56:23 +04:00
<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 --libs gmodule-2.0` jni.c os.c'"/>
2004-08-30 19:56:23 +04:00
<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>
2005-12-07 12:06:32 +03:00
<include name="*.c"/>
2004-08-30 19:56:23 +04:00
</sources>
</cl>
<link output="Release/ikvm-native.dll" options="/DLL user32.lib">
<sources>
2005-12-07 12:06:32 +03:00
<include name="Release/*.obj"/>
2004-08-30 19:56:23 +04:00
</sources>
</link>
<copy file="Release/ikvm-native.dll" todir="../bin" />
</target>
</project>