projects
/
sdlgit/SDL_perl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
improved documentation
[sdlgit/SDL_perl.git]
/
lib
/
SDL
/
Config.pm
1
package SDL::Config;
2
3
my $sdl_config;
4
$sdl_config = {
5
'OpenGL' => {
6
'GL' => [
7
'/usr/include/GL',
8
'/usr/lib'
9
],
10
'SDL' => [
11
'/usr/include/SDL',
12
'/usr/lib'
13
],
14
'GLU' => [
15
'/usr/include/GL',
16
'/usr/lib'
17
]
18
},
19
'SDL' => {
20
'png' => [
21
'/usr/include',
22
'/usr/lib'
23
],
24
'SDL' => [
25
'/usr/include/SDL',
26
'/usr/lib'
27
],
28
'SDL_ttf' => [
29
'/usr/include/SDL',
30
'/usr/lib'
31
],
32
'SDL_net' => [
33
'/usr/include/SDL',
34
'/usr/lib'
35
],
36
'SDL_image' => [
37
'/usr/include/SDL',
38
'/usr/lib'
39
],
40
'SDL_gfx' => [
41
'/usr/include/SDL',
42
'/usr/lib'
43
],
44
'jpeg' => [
45
'/usr/include',
46
'/usr/lib'
47
],
48
'smpeg' => [
49
'/usr/include/smpeg',
50
'/usr/lib'
51
],
52
'SDL_mixer' => [
53
'/usr/include/SDL',
54
'/usr/lib'
55
]
56
},
57
'SFont' => {
58
'SDL_image' => [
59
'/usr/include/SDL',
60
'/usr/lib'
61
],
62
'SDL' => [
63
'/usr/include/SDL',
64
'/usr/lib'
65
]
66
}
67
};
68
69
sub has
70
{
71
my ($class, $define) = @_;
72
scalar grep { $$sdl_config{$_}{$define} } keys %$sdl_config;
73
}
74
75
1;