Changeset 27096 in project


Ignore:
Timestamp:
07/21/12 18:05:15 (9 years ago)
Author:
megane
Message:

sdl: Added warning messages for missing libraries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/sdl/trunk/sdl.setup

    r26836 r27096  
    11;;;; sdl.setup -*- Scheme -*-
    22
     3
     4(define (check-depends)
     5     
     6  (let* ((lib-fun-pack '(("SDL" "SDL_Init" "libsdl1.2-dev")
     7                         ("SDL_gfx" "polygonColor" "libsdl-gfx1.2-dev")
     8                         ("SDL_net" "SDLNet_Init" "libsdl-net1.2-dev")
     9                         ("SDL_ttf" "TTF_Init" "libsdl-ttf2.0-dev")
     10                         ("SDL_image" "IMG_Init" "libsdl-image1.2-dev")))
     11         (missing (filter (lambda (lib-fun)
     12                            (not (find-library (first lib-fun) (second lib-fun))))
     13                          lib-fun-pack)))
     14    (for-each
     15     (lambda (lib-fun)
     16       (print "\nWARNING: You seem to be missing the library " (first lib-fun) "!"))
     17     missing)
     18    (cond-expand
     19     (linux
     20      (unless (null? missing)
     21        (print "\nSuggested package(s) to install: " (map third missing))))
     22     (else #f))))
     23
     24(check-depends)
    325
    426(let* ((escape-flags (lambda (fs)
Note: See TracChangeset for help on using the changeset viewer.