1 ! Copyright (C) 2013 Björn Lindqvist
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: alien.libraries alien.libraries.finder arrays combinators
5 kernel sequences system ;
7 IN: alien.libraries.finder.windows
11 : candidate-paths ( name -- paths )
14 [ "lib" ".dll" surround ]
15 [ "dlls/" ".dll" surround ]
16 [ "dlls/lib" ".dll" surround ]
21 M: windows find-library
22 candidate-paths [ dlopen dll-valid? ] map-find nip ;