mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Add specific build files for corelibs for different OS
This commit is contained in:
parent
6c0c3554aa
commit
d3cf4608d1
13
CoreLibs/build-mac.xml
Normal file
13
CoreLibs/build-mac.xml
Normal 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
13
CoreLibs/build-unix.xml
Normal 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>
|
13
CoreLibs/build-windows.xml
Normal file
13
CoreLibs/build-windows.xml
Normal 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>
|
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user