forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Manifest entries for native jar java-native-access#7
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,7 @@ | |
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.4"/> | ||
<attribute name="Bundle-Vendor" value="${vendor}"/> | ||
<attribute name="Bundle-ActivationPolicy" value="lazy"/> | ||
<attribute name="Export-Package" value="com.sun.jna*"/> | ||
<attribute name="Export-Package" value="com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32"/> | ||
</section> | ||
</manifest> | ||
<fileset dir="${classes}" excludes="${jar.omitted}"> | ||
|
@@ -416,6 +416,26 @@ | |
<manifest> | ||
<attribute name="Implementation-Version" value="${jni.version} b${jni.build}"/> | ||
<attribute name="Specification-Version" value="${jni.version}"/> | ||
<!-- OSGi Bundle attributes --> | ||
<!-- Need this variable to be conditional per platform --> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
whatnick
Author
Owner
|
||
<attribute name="Bundle-NativeCode" value="jnidispatch.dll ; | ||
osname=Win32 ; | ||
processor=x86, | ||
libjnidispatch.so ; | ||
osname=Linux; | ||
processor=x86, | ||
libjnidispatch.dylib ; | ||
osname=MacOS; | ||
processor=x86"/> | ||
<attribute name="Bundle-Name" value="JNA Native Code"/> | ||
<attribute name="Fragment-Host" value="com.sun.jna"/> | ||
|
||
<attribute name="Bundle-ManifestVersion" value="2"/> | ||
<attribute name="Bundle-SymbolicName" value="com.sun.jna.native.${os.prefix}.${ARCH}"/> | ||
<attribute name="Bundle-Version" value="${spec.version}"/> | ||
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.4"/> | ||
<attribute name="Bundle-Vendor" value="${vendor}"/> | ||
<attribute name="Bundle-ActivationPolicy" value="lazy"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
This comment is ambiguous. Does the attribute below handle the per-platform conditions, or is that something that still needs to be done? I note this only identifies three os/cpu pairs, while there exist for JNA three of those for macos alone.