1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Sun, 30 Oct 2022 21:34:04 -0400
Subject: optimize build targets
This patch makes some key internal build targets available to the
command line for use in d/rules.
* do-jar: compile and assemble arch:all jar
* build-native-library: compiles libjffi native library
Forwarded: not-needed
---
build.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Index: jffi/build.xml
===================================================================
--- jffi.orig/build.xml
+++ jffi/build.xml
@@ -18,7 +18,7 @@
<delete dir="${dist.dir}"/>
</target>
- <target name="jar" depends="-init,-pre-jar,-do-jar,-post-jar"/>
+ <target name="jar" depends="-init,-pre-jar,do-jar,-post-jar"/>
<target name="build-native" depends="-init, -build-platform-jar"/>
@@ -156,7 +156,7 @@
<target name="-pre-jar"/>
<target name="-post-init" depends="-init-vars"/>
<target name="-pre-compile" depends="-init"/>
- <target name="-post-compile" depends="-build-native-library"/>
+ <target name="-post-compile" depends="build-native-library"/>
<target name="-pre-compile-test" depends="-init"/>
<target name="-post-compile-test" depends="-build-native-testlib"/>
<target name="-post-jar" depends="-assemble-final-jar"/>
@@ -171,7 +171,7 @@
<target name="compile" depends="-init,-pre-compile,-do-compile,-post-compile">
</target>
- <target name="-do-jar" depends="-init,compile">
+ <target name="do-jar" depends="-init,compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.jar}" basedir="${build.classes.dir}" compress="true"/>
</target>
@@ -355,7 +355,7 @@
-->
</target>
- <target name="-build-native-library" depends="-init-vars, -generate-native-headers, -generate-version">
+ <target name="build-native-library" depends="-init-vars, -generate-native-headers, -generate-version">
<mkdir dir="${build.native.dir}"/>
<exec executable="cygpath" outputproperty="jni.GNUmakefile" osfamily="Windows">
@@ -414,7 +414,7 @@
</exec>
</target>
- <target name="-build-platform-jar" depends="-init-vars, -build-native-library">
+ <target name="-build-platform-jar" depends="-init-vars, build-native-library">
<echo message="platform=${platform}"/>
<zip destfile="${dist.dir}/jffi-${platform}.jar" level="9">
<zipfileset prefix="jni/${platform}" dir="${build.native.dir}">
|