aboutsummaryrefslogtreecommitdiffstats
path: root/resources/install
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2016-05-29 13:34:34 +0200
committerIngo Bauersachs <ingo@jitsi.org>2016-05-29 13:34:34 +0200
commitd258eaf5fdf8cff44675b690f5586f8abf13e878 (patch)
tree4d842ec10471d88be3cd4c8f7b8796e7a1f01f3e /resources/install
parentb93a459a93f1ebc6279c9ac1e2fd66b9babc5ddb (diff)
downloadjitsi-d258eaf5fdf8cff44675b690f5586f8abf13e878.zip
jitsi-d258eaf5fdf8cff44675b690f5586f8abf13e878.tar.gz
jitsi-d258eaf5fdf8cff44675b690f5586f8abf13e878.tar.bz2
Exclude native libs of foreign platforms
I.e. no Windows DLLs for Mac OS, etc.
Diffstat (limited to 'resources/install')
-rw-r--r--resources/install/build.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/resources/install/build.xml b/resources/install/build.xml
index 00add08..6693513 100644
--- a/resources/install/build.xml
+++ b/resources/install/build.xml
@@ -131,6 +131,42 @@
<mkdir dir="${generic.app.dir}"/>
</target>
+ <target name="strip-multi-platform-jar">
+ <condition property="win64">
+ <equals arg1="${platform}" arg2="windows-64" />
+ </condition>
+ <condition property="win32">
+ <equals arg1="${platform}" arg2="windows-32" />
+ </condition>
+ <condition property="linux64">
+ <equals arg1="${platform}" arg2="linux-64" />
+ </condition>
+ <condition property="linux32">
+ <equals arg1="${platform}" arg2="linux-32" />
+ </condition>
+ <condition property="macos">
+ <equals arg1="${platform}" arg2="osx" />
+ </condition>
+ <jar destfile="${jar}.tmp">
+ <zipfileset src="${jar}">
+ <exclude name="**/darwin/*.jnilib" unless="${macos}"/>
+ <exclude name="**/linux-x86/*.so" unless="${linux32}"/>
+ <exclude name="**/linux-x86-64/*.so" unless="${linux64}"/>
+ <exclude name="**/win32-x86/*.dll" unless="${win32}"/>
+ <exclude name="**/win32-x86-64/*.dll" unless="${win64}"/>
+
+ <exclude name="**/freebsd-x86/*.so"/>
+ <exclude name="**/freebsd-x86-64/*.so"/>
+ <exclude name="**/linux-arm/*.so"/>
+ <exclude name="**/openbsd-x86/*.so"/>
+ <exclude name="**/openbsd-x86-64/*.so"/>
+ <exclude name="**/sunos-*/*.so"/>
+ <exclude name="**/w32ce-arm/*.dll"/>
+ </zipfileset>
+ </jar>
+ <move file="${jar}.tmp" tofile="${jar}"/>
+ </target>
+
<target name="build-installation-generic"
depends="clean-install-generic,define-izpack-task,version,load-properties">
@@ -539,6 +575,18 @@
<exclude name="*slick.jar" />
</fileset>
</copy>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${light.dir}/sc-bundles/libjitsi.jar"/>
+ <param name="platform" value="windows-${windows.arch}" />
+ </antcall>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${light.dir}/sc-bundles/jitsi-lgpl-dependencies.jar"/>
+ <param name="platform" value="windows-${windows.arch}" />
+ </antcall>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${light.dir}/sc-bundles/jnalib.jar"/>
+ <param name="platform" value="windows-${windows.arch}" />
+ </antcall>
<!--
Include a private Java Runtime Environment if it has been specified.
@@ -1147,6 +1195,18 @@
<include name="**/*.jar"/>
</fileset>
</copy>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${bundles.dest}/libjitsi.jar"/>
+ <param name="platform" value="osx" />
+ </antcall>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${bundles.dest}/jitsi-lgpl-dependencies.jar"/>
+ <param name="platform" value="osx" />
+ </antcall>
+ <antcall target="strip-multi-platform-jar">
+ <param name="jar" value="${bundles.dest}/jnalib.jar"/>
+ <param name="platform" value="osx" />
+ </antcall>
<!-- Delete the old .app if it exists -->
<delete dir="${macosx.app.dir}/${application.name}.app"