Revert "alien.libraries.finder: using find-library for some often missing libs"

This reverts commit a6b3f50e2c.

Conflicts:
	basis/gtk/ffi/ffi.factor
db4
John Benediktsson 2014-11-13 09:33:30 -08:00
parent d89ae96c64
commit 3a0c04340e
3 changed files with 44 additions and 34 deletions

View File

@ -2,12 +2,15 @@
! See http://factorcode.org/license.txt for BSD license.
! An interface to the sqlite database. Tested against sqlite v3.1.3.
! Not all functions have been wrapped.
USING: alien alien.libraries alien.libraries.finder compiler kernel
math namespaces sequences strings alien.syntax system combinators
alien.c-types ;
USING: alien compiler kernel math namespaces sequences strings alien.syntax
system combinators alien.c-types alien.libraries ;
IN: db.sqlite.ffi
<< "sqlite" "sqlite3" find-library cdecl add-library >>
<< "sqlite" {
{ [ os windows? ] [ "sqlite3.dll" ] }
{ [ os macosx? ] [ "/usr/lib/libsqlite3.dylib" ] }
{ [ os unix? ] [ "libsqlite3.so" ] }
} cond cdecl add-library >>
! Return values from sqlite functions
CONSTANT: SQLITE_OK 0 ! Successful result

View File

@ -1,7 +1,7 @@
! Copyright (C) 2010 Anton Gorenko.
! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.destructors alien.libraries
alien.libraries.finder alien.syntax assocs gobject-introspection
alien.syntax combinators gobject-introspection
gobject-introspection.standard-types kernel pango.ffi system
vocabs ;
IN: gtk.ffi
@ -15,9 +15,10 @@ LIBRARY: gtk
<<
"gtk" {
{ linux "gtk-x11-2.0" }
{ windows "libgtk-win32-2.0-0" }
} os of [ find-library cdecl add-library ] [ drop ] if*
{ [ os windows? ] [ "libgtk-win32-2.0-0.dll" cdecl add-library ] }
{ [ os macosx? ] [ drop ] }
{ [ os unix? ] [ "libgtk-x11-2.0.so" cdecl add-library ] }
} cond
>>
IMPLEMENT-STRUCTS: GtkTreeIter ;

View File

@ -1,11 +1,17 @@
! Copyright (C) 2010 Erik Charlebois
! See http:// factorcode.org/license.txt for BSD license.
USING: alien alien.c-types alien.syntax alien.libraries.finder
classes.struct accessors kernel libc math make unix.types namespaces
system combinators alien.libraries ;
USING: alien alien.c-types kernel alien.syntax classes.struct
accessors libc math make unix.types namespaces system
combinators alien.libraries ;
IN: readline.ffi
<< "readline" dup find-library cdecl add-library >>
<<
"readline" {
{ [ os windows? ] [ "readline.dll" ] }
{ [ os macosx? ] [ "libreadline.dylib" ] }
{ [ os unix? ] [ "libreadline.so" ] }
} cond cdecl add-library
>>
LIBRARY: readline
TYPEDEF: void* histdata_t