Mercurial > sdl-ios-xcode
annotate src/main/macosx/exports/gendef.pl @ 742:528a52626680
Fixed building cpuinfo under mingw32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Nov 2003 08:03:10 +0000 |
parents | cc47d783f096 |
children | ab0d977f91f8 |
rev | line source |
---|---|
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
1 #!/usr/bin/perl |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
2 # |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
3 # Program to take a set of header files and generate DLL export definitions |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
4 |
685
cc47d783f096
Date: Sun, 10 Aug 2003 13:24:45 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
5 # Export Objective-C classes for Cocoa integration support |
cc47d783f096
Date: Sun, 10 Aug 2003 13:24:45 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
6 print "\t.objc_class_name_SDL_QuartzWindow\n"; |
cc47d783f096
Date: Sun, 10 Aug 2003 13:24:45 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
7 print "\t.objc_class_name_SDL_QuartzWindowView\n"; |
cc47d783f096
Date: Sun, 10 Aug 2003 13:24:45 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
8 print "\t.objc_class_name_SDL_QuartzWindowDelegate\n"; |
cc47d783f096
Date: Sun, 10 Aug 2003 13:24:45 -0400
Sam Lantinga <slouken@libsdl.org>
parents:
345
diff
changeset
|
9 |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
10 while ( ($file = shift(@ARGV)) ) { |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
11 if ( ! defined(open(FILE, $file)) ) { |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
12 warn "Couldn't open $file: $!\n"; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
13 next; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
14 } |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
15 $printed_header = 0; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
16 $file =~ s,.*/,,; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
17 while (<FILE>) { |
345
05b97424225f
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
337
diff
changeset
|
18 if ( / DECLSPEC.*SDLCALL ([^\s\(]+)/ ) { |
47
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
19 print "\t_$1\n"; |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
20 } |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
21 } |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
22 close(FILE); |
45b1c4303f87
Added initial support for Quartz video (thanks Darrell!)
Sam Lantinga <slouken@lokigames.com>
parents:
diff
changeset
|
23 } |