factor/contrib/gl/load.factor

17 lines
410 B
Factor

IN: gl
USING: alien compiler kernel parser sequences words ;
win32? [
"gl" "opengl32.dll" "stdcall" add-library
"glu" "glu32.dll" "stdcall" add-library
] [
"gl" "libGL.so" "cdecl" add-library
"glu" "libGLU.so" "cdecl" add-library
] ifte
[ "sdl-gl.factor" "gl.factor" "glu.factor" ]
[ "contrib/gl/" swap append run-file ] each
"gl" words [ try-compile ] each
"glu" words [ try-compile ] each