-
-
Notifications
You must be signed in to change notification settings - Fork 291
/
runtime.xml
49 lines (42 loc) · 2 KB
/
runtime.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Java Runtime" basedir=".">
<property name="runtime.dependency" value="${build}/jdk-17.0.9+9"/>
<property name="bundle.runtime" value="${bundle.plugins}/Runtime.jre"/>
<property name="bundle.runtime.lib"
value="@executable_path/../PlugIns/Runtime.jre/Contents/Home/lib/server/libjvm.dylib"/>
<property name="build.lipo.binaries" value="**/Contents/Frameworks/*.dylib"/>
<target name="runtime">
<mkdir dir="${bundle}/${bundle.runtime}"/>
<!-- Copy runtime -->
<echo message="Copy runtime from ${runtime.dependency} to ${bundle}/${bundle.runtime}"/>
<copy todir="${bundle}/${bundle.runtime}" preservelastmodified="true">
<fileset followsymlinks="true" dir="${runtime.dependency}" excludesfile="${home}/runtime-excludes.properties"/>
</copy>
</target>
<target name="shared-library-install-name">
<echo message="Change dynamic shared library install names to ${newname} in ${directory}"/>
<apply executable="/usr/bin/xcrun" failonerror="true"
type="file"
parallel="false" spawn="false" force="true">
<arg line="install_name_tool -change ${oldname} ${newname}"/>
<fileset dir="${directory}">
<include name="*.dylib"/>
</fileset>
<srcfile/>
</apply>
</target>
<target name="lipo">
<echo message="Remove ${arch} slice from ${build.lipo.binaries}"/>
<apply executable="/usr/bin/xcrun" failonerror="false" dest="${bundle}"
parallel="false" spawn="false" force="true">
<!--Remove from executables-->
<!--Remove from frameworks-->
<!--Remove from shared libraries-->
<fileset dir="${bundle}" includes="${build.lipo.binaries}"/>
<arg line="lipo -remove ${arch} -output"/>
<srcfile/>
<targetfile/>
<identitymapper/>
</apply>
</target>
</project>