mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-04 00:36:01 +00:00
created ant build file using one-jar to create a runnable jar for all platforms
This commit is contained in:
parent
23084fc21e
commit
71aacf1305
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,9 @@
|
|||||||
*.class
|
*.class
|
||||||
|
|
||||||
|
#ignore builds
|
||||||
|
limelight-pc/build/*
|
||||||
|
limelight-pc/classes/*
|
||||||
|
|
||||||
#ignore mac DS_STORE
|
#ignore mac DS_STORE
|
||||||
.DS_STORE
|
.DS_STORE
|
||||||
|
|
||||||
|
189
limelight-pc/build.xml
Normal file
189
limelight-pc/build.xml
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<project default="all" name="Create Runnable Jar for Limelight">
|
||||||
|
<property name="one-jar.dist.dir" value="${basedir}"/>
|
||||||
|
|
||||||
|
<property name="src.dir" location="${basedir}/src"/>
|
||||||
|
<property name="libs.dir" location="${basedir}/libs"/>
|
||||||
|
<property name="libs.osx64.dir" location="${libs.dir}/osx"/>
|
||||||
|
<property name="libs.lin32.dir" location="${libs.dir}/lin32"/>
|
||||||
|
<property name="libs.lin64.dir" location="${libs.dir}/lin64"/>
|
||||||
|
<property name="libs.win32.dir" location="${libs.dir}/win32"/>
|
||||||
|
<property name="libs.win64.dir" location="${libs.dir}/win64"/>
|
||||||
|
|
||||||
|
<property name="lib.dir" location="${basedir}/lib"/>
|
||||||
|
<property name="build.dir" location="${basedir}/build"/>
|
||||||
|
|
||||||
|
<property name="classes.dir" location="${basedir}/classes"/>
|
||||||
|
|
||||||
|
<target name="init">
|
||||||
|
<mkdir dir="${classes.dir}"/>
|
||||||
|
<mkdir dir="${classes.dir}/lib"/>
|
||||||
|
<mkdir dir="${classes.dir}/src"/>
|
||||||
|
<mkdir dir="${build.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<import file="one-jar-ant-task.xml"/>
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build.dir}"/>
|
||||||
|
<delete dir="${classes.dir}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="all" depends="limelight-osx,limelight-lin32,limelight-lin64,limelight-win32,limelight-win64"/>
|
||||||
|
|
||||||
|
<target name="limelight-osx" depends="init">
|
||||||
|
<!-- compile limelight -->
|
||||||
|
<javac includeantruntime="false" destdir="${classes.dir}/src">
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath path="${build.dir}"/>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- construct one-jar file -->
|
||||||
|
<one-jar destfile="${build.dir}/limelight-osx64.jar">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="One-Jar-Main-Class" value="com.limelight.Limelight"/>
|
||||||
|
</manifest>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- construct limelight.jar -->
|
||||||
|
<fileset dir="${classes.dir}/src"/>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<lib>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<binlib>
|
||||||
|
<fileset dir="${libs.osx64.dir}" includes="*"/>
|
||||||
|
</binlib>
|
||||||
|
</one-jar>
|
||||||
|
</target>
|
||||||
|
<target name="limelight-lin32" depends="init">
|
||||||
|
<!-- compile limelight -->
|
||||||
|
<javac includeantruntime="false" destdir="${classes.dir}/src">
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath path="${build.dir}"/>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- construct one-jar file -->
|
||||||
|
<one-jar destfile="${build.dir}/limelight-lin32.jar">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="One-Jar-Main-Class" value="com.limelight.Limelight"/>
|
||||||
|
</manifest>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- construct limelight.jar -->
|
||||||
|
<fileset dir="${classes.dir}/src"/>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<lib>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<binlib>
|
||||||
|
<fileset dir="${libs.lin32.dir}" includes="*"/>
|
||||||
|
</binlib>
|
||||||
|
</one-jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="limelight-lin64" depends="init">
|
||||||
|
<!-- compile limelight -->
|
||||||
|
<javac includeantruntime="false" destdir="${classes.dir}/src">
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath path="${build.dir}"/>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- construct one-jar file -->
|
||||||
|
<one-jar destfile="${build.dir}/limelight-lin64.jar">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="One-Jar-Main-Class" value="com.limelight.Limelight"/>
|
||||||
|
</manifest>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- construct limelight.jar -->
|
||||||
|
<fileset dir="${classes.dir}/src"/>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<lib>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<binlib>
|
||||||
|
<fileset dir="${libs.lin64.dir}" includes="*"/>
|
||||||
|
</binlib>
|
||||||
|
</one-jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="limelight-win32" depends="init">
|
||||||
|
<!-- compile limelight -->
|
||||||
|
<javac includeantruntime="false" destdir="${classes.dir}/src">
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath path="${build.dir}"/>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- construct one-jar file -->
|
||||||
|
<one-jar destfile="${build.dir}/limelight-win32.jar">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="One-Jar-Main-Class" value="com.limelight.Limelight"/>
|
||||||
|
</manifest>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- construct limelight.jar -->
|
||||||
|
<fileset dir="${classes.dir}/src"/>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<lib>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<binlib>
|
||||||
|
<fileset dir="${libs.win32.dir}" includes="*"/>
|
||||||
|
</binlib>
|
||||||
|
</one-jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="limelight-win64" depends="init">
|
||||||
|
<!-- compile limelight -->
|
||||||
|
<javac includeantruntime="false" destdir="${classes.dir}/src">
|
||||||
|
<src path="${src.dir}"/>
|
||||||
|
<classpath path="${build.dir}"/>
|
||||||
|
<classpath>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- construct one-jar file -->
|
||||||
|
<one-jar destfile="${build.dir}/limelight-win64.jar">
|
||||||
|
<manifest>
|
||||||
|
<attribute name="One-Jar-Main-Class" value="com.limelight.Limelight"/>
|
||||||
|
</manifest>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- construct limelight.jar -->
|
||||||
|
<fileset dir="${classes.dir}/src"/>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<lib>
|
||||||
|
<fileset dir="${libs.dir}" includes="*.jar"/>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<binlib>
|
||||||
|
<fileset dir="${libs.win64.dir}" includes="*"/>
|
||||||
|
</binlib>
|
||||||
|
</one-jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
</project>
|
3
limelight-pc/manifest.mf
Normal file
3
limelight-pc/manifest.mf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Manifest-Version: 1.0
|
||||||
|
Main-Class: com.limelight.Limelight
|
||||||
|
|
BIN
limelight-pc/one-jar-ant-task-0.97.jar
Normal file
BIN
limelight-pc/one-jar-ant-task-0.97.jar
Normal file
Binary file not shown.
10
limelight-pc/one-jar-ant-task.xml
Normal file
10
limelight-pc/one-jar-ant-task.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project>
|
||||||
|
<!-- The following property is expected to be overridden by caller -->
|
||||||
|
<property name="one-jar.dist.dir" value="./dist"/>
|
||||||
|
<property name="one-jar.version" value="0.97"/>
|
||||||
|
<property name="one-jar.ant.jar" value="${one-jar.dist.dir}/one-jar-ant-task-${one-jar.version}.jar"/>
|
||||||
|
<taskdef name="one-jar" classname="com.simontuffs.onejar.ant.OneJarTask"
|
||||||
|
classpath="${one-jar.ant.jar}" onerror="report"/>
|
||||||
|
|
||||||
|
</project>
|
Loading…
x
Reference in New Issue
Block a user