Add specific build files for corelibs for different OS

This commit is contained in:
adam-m 2013-01-27 00:53:56 -05:00
parent 6c0c3554aa
commit d3cf4608d1
4 changed files with 56 additions and 12 deletions

13
CoreLibs/build-mac.xml Normal file
View File

@ -0,0 +1,13 @@
<project name="NativeCoreLibs">
<target name="build-native-libs" description="build native library dependencies">
<!-- sigar: note, matching jar is pulled with ivy -->
<mkdir dir="${lib.dir}"/>
<unzip src="${thirdparty.dir}/sigar/1.6.4/sigar-native.zip" dest="${lib.dir}" >
<patternset>
<include name="**/*.dylib"/>
</patternset>
</unzip>
</target>
</project>

13
CoreLibs/build-unix.xml Normal file
View File

@ -0,0 +1,13 @@
<project name="NativeCoreLibs">
<target name="build-native-libs" description="build native library dependencies">
<!-- sigar: note, matching jar is pulled with ivy -->
<mkdir dir="${lib.dir}"/>
<unzip src="${thirdparty.dir}/sigar/1.6.4/sigar-native.zip" dest="${lib.dir}" >
<patternset>
<include name="**/*.so"/>
</patternset>
</unzip>
</target>
</project>

View File

@ -0,0 +1,13 @@
<project name="NativeCoreLibs">
<target name="build-native-libs" description="build native library dependencies">
<!-- sigar: note, matching jar is pulled with ivy -->
<mkdir dir="${lib.dir}"/>
<unzip src="${thirdparty.dir}/sigar/1.6.4/sigar-native.zip" dest="${lib.dir}" >
<patternset>
<include name="**/*.dll"/>
</patternset>
</unzip>
</target>
</project>

View File

@ -18,6 +18,17 @@
<property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
<condition property="os.family" value="unix">
<os family="unix"/>
</condition>
<condition property="os.family" value="mac">
<os family="mac"/>
</condition>
<condition property="os.family" value="windows">
<os family="windows"/>
</condition>
<import file="build-${os.family}.xml"/>
<target name="download-ivy" unless="offline">
<available file="${ivy.jar.file}" property="ivy.available"/>
<antcall target="-download-ivy" />
@ -38,12 +49,6 @@
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
</target>
<target name="build-native-libs" description="build native library dependencies">
<!-- sigar: note, matching jar is pulled with ivy -->
<mkdir dir="${lib.dir}"/>
<unzip src="${thirdparty.dir}/sigar/1.6.4/sigar-native.zip" dest="${lib.dir}"/>
</target>
<target name="retrieve-deps" description="retrieve dependencies using ivy" depends="init-ivy,build-native-libs">
<ivy:settings file="ivysettings.xml" />