Skip to content

Commit

Permalink
Add jna
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Sep 8, 2024
1 parent 1548501 commit e5608a6
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 435 deletions.
28 changes: 2 additions & 26 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<property name="dir.bin" value="${dir.binfile}/bin"/>
<property name="dir.build" value="${dir.binfile}/build"/>
<property name="dir.dist" value="${dir.binfile}/dist"/>
<property name="dir.ppa" value="${dir.binfile}/debian"/>
<property name="main.class" value="mpo.dayon.common.Runner"/>
<property name="ant.build.javac.release" value="11"/>
<property name="version" value="14.0.2"/>
Expand Down Expand Up @@ -50,6 +49,8 @@
<jar destfile="${dir.build}/dayon.jar">
<zipfileset src="${dir.binfile}/lib/xz-1.10.jar" excludes="META-INF/**"/>
<zipfileset src="${dir.binfile}/lib/com/dosse/upnp/WaifUPnP/1.3.1/WaifUPnP-1.3.1.jar" excludes="META-INF/**"/>
<zipfileset src="${dir.binfile}/lib/jna-5.10.0.jar" excludes="META-INF/**,com/sun/jna/aix*/**,com/sun/jna/darwin*/**,com/sun/jna/freebsd*/**,com/sun/jna/linux*/**,com/sun/jna/openbsd*/**,com/sun/jna/sunos*/**"/>
<zipfileset src="${dir.binfile}/lib/jna-platform-5.10.0.jar" excludes="META-INF/**,com/sun/jna/platform/mac/**,com/sun/jna/platform/linux/**,com/sun/jna/platform/unix/**,com/sun/jna/platform/*$X11*,com/sun/jna/platform/*$Mac*,com/sun/jna/platform/Window*,com/sun/jna/platform/win32/COM/**,com/sun/jna/platform/win32/Crypt*,com/sun/jna/platform/win32/D*,com/sun/jna/platform/win32/G*,com/sun/jna/platform/win32/Net*,com/sun/jna/platform/win32/HighLevel*,com/sun/jna/platform/win32/IPHlp*,com/sun/jna/platform/win32/LM*,com/sun/jna/platform/win32/LowLevel*,com/sun/jna/platform/win32/O*"/>
<manifest>
<attribute name="Application-Name" value="Dayon!"/>
<attribute name="Implementation-Version" value="${version}"/>
Expand All @@ -65,33 +66,8 @@
<copy file="${dir.build}/dayon.jar" todir="${dir.dist}"/>
<copy todir="${dir.dist}">
<fileset dir="${dir.res}">
<exclude name="snap/"/>
<exclude name="jre/"/>
<exclude name="jrex/"/>
</fileset>
</copy>
<copy file="${dir.docs}/favicon.ico" todir="${dir.dist}"/>
<chmod dir="${dir.dist}" perm="ugo+rx" includes="**/*.sh"/>
</target>

<target name="ppa" depends="build" description="Creates directory structure with files for ppa">
<copy file="${dir.build}/dayon.jar" todir="${dir.ppa}"/>
<copy todir="${dir.ppa}">
<fileset dir="${dir.res}">
<exclude name="snap/"/>
<exclude name="jre/"/>
<exclude name="jrex/"/>
<exclude name="readme.txt"/>
<exclude name="setup.sh"/>
</fileset>
</copy>
<chmod dir="${dir.ppa}" perm="ugo+rx" includes="**/*.sh"/>
</target>

<target name="dist_with_jre" depends="dist" description="Creates directory structure with files for distribution, including openJDK for Windows">
<copy todir="${dir.dist}">
<fileset dir="${dir.res}"/>
</copy>
<copy file="${dir.docs}/favicon.ico" todir="${dir.dist}"/>
</target>

Expand Down
Binary file added lib/jna-5.10.0.jar
Binary file not shown.
Binary file added lib/jna-platform-5.10.0.jar
Binary file not shown.
Loading

0 comments on commit e5608a6

Please sign in to comment.