Changeset 14236 for trunk/abcl/contrib/mvn/jna.asd
- Timestamp:
- 11/09/12 14:44:33 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/contrib/mvn/jna.asd
r14225 r14236 1 1 ;;;; -*- Mode: LISP -*- 2 2 3 ;;;; Need to have jna.jar present for CFFI to have a chance of working.3 ;;;; Need to have jna.jar present for CFFI to work. 4 4 (asdf:defsystem :jna 5 5 :version "3.5.1" 6 6 :defsystem-depends-on (jss abcl-asdf) 7 7 ;; FIXME: always seems to be resolving the LATEST maven artifact. 8 :components ((:mvn "net.java.dev.jna/jna/3.5.1"))) 8 :components ((:mvn "net.java.dev.jna/jna/3.5.1" 9 :alternate-uri "http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.5.1/jna-3.5.1.jar" 10 :classname "com.sun.jna.Native"))) 9 11 10 12 (in-package :asdf) … … 13 15 (provide :jna))) 14 16 15 ;;; After ASDF performs COMPILE-OP, one expects that the JNA Java16 ;;; classes can be instantiated. If not, execute various loading strategies.17 (defmethod perform ((o compile-op) (c (eql (find-system :jna))))18 ;; Theoretically this should be the same thing as the MVN component.19 (format *debug-io* "~&Attemping to locate jvm binary artifacts for JNA...~&")20 (handler-case21 (jss:find-java-class "com.sun.jna.Native")22 (java:java-exception (e)23 (unless24 (java:add-to-classpath (abcl-asdf:resolve "net.java.dev.jna:jna:3.5.1"))25 (unless26 ;; Might want to download to local filesystem, then place in classpath27 (java:add-to-classpath #p"http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.5.1/jna-3.5.1.jar")28 (error "Failed to load jna-3.5.0.jar from the network via URI."))29 (error "Failed to load jna.jar via ABCL-ASDF.")))30 (t (e)31 (error "Failed to resolve 'jna.jar' because~&~A.~&" e))))32 33 17
Note: See TracChangeset
for help on using the changeset viewer.