projects
/
sdlgit/SDL_perl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Fixed some merge errors in MSWin32.pm. Also seperated Darwin specific build flags...
[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_svg' => 0,
33
'SDL_net' => [
34
'/usr/include/SDL',
35
'/usr/lib'
36
],
37
'SDL_image' => [
38
'/usr/include/SDL',
39
'/usr/lib'
40
],
41
'jpeg' => [
42
'/usr/include',
43
'/usr/lib'
44
],
45
'SDL_gfx' => [
46
'/usr/include/SDL',
47
'/usr/lib'
48
],
49
'smpeg' => [
50
'/usr/include/smpeg',
51
'/usr/lib'
52
],
53
'SDL_sound' => [
54
'/usr/include/SDL',
55
'/usr/lib'
56
],
57
'SDL_mixer' => [
58
'/usr/include/SDL',
59
'/usr/lib'
60
]
61
},
62
'SFont' => {
63
'SDL_image' => [
64
'/usr/include/SDL',
65
'/usr/lib'
66
],
67
'SDL' => [
68
'/usr/include/SDL',
69
'/usr/lib'
70
]
71
}
72
};
73
74
sub has
75
{
76
my ($class, $define) = @_;
77
scalar grep { $$sdl_config{$_}{$define} } keys %$sdl_config;
78
}
79
80
1;