(library-dependencies {libs :libs, foreign-libs :foreign-libs, ups-libs :ups-libs, ups-flibs :ups-foreign-libs})
Source
(defn library-dependencies
[{libs :libs foreign-libs :foreign-libs
ups-libs :ups-libs ups-flibs :ups-foreign-libs}]
(concat
(mapcat load-library ups-libs) ;upstream deps
; :libs are constrained to filesystem-only at this point; see
; `find-classpath-lib` for goog-style JS library lookup
(mapcat load-library (filter #(.exists (io/file %)) libs))
(map #(load-foreign-library % true) ups-flibs) ;upstream deps
(map load-foreign-library foreign-libs)))