Updated exports
authorSam Lantinga <slouken@libsdl.org>
Wed, 01 Feb 2006 09:01:12 +0000
changeset 13176c7b69218276
parent 1316 0781906086fa
child 1318 f95502c6fc72
Updated exports
src/main/beos/exports/Makefile
src/main/beos/exports/SDL.exp
src/main/beos/exports/genexp.pl
src/main/macos/exports/Makefile
src/main/macos/exports/gendef.pl
src/main/macosx/exports/Makefile
src/main/macosx/exports/SDL.x
src/main/macosx/exports/gendef.pl
src/main/win32/exports/Makefile
src/main/win32/exports/SDL.def
src/main/win32/exports/gendef.pl
     1.1 --- a/src/main/beos/exports/Makefile	Wed Feb 01 08:24:32 2006 +0000
     1.2 +++ b/src/main/beos/exports/Makefile	Wed Feb 01 09:01:12 2006 +0000
     1.3 @@ -11,11 +11,11 @@
     1.4  	../../../../include/SDL_endian.h \
     1.5  	../../../../include/SDL_error.h \
     1.6  	../../../../include/SDL_events.h \
     1.7 +	../../../../include/SDL_getenv.h \
     1.8  	../../../../include/SDL_joystick.h \
     1.9  	../../../../include/SDL_keyboard.h \
    1.10  	../../../../include/SDL_keysym.h \
    1.11  	../../../../include/SDL_loadso.h \
    1.12 -	../../../../include/SDL_main.h \
    1.13  	../../../../include/SDL_mouse.h \
    1.14  	../../../../include/SDL_mutex.h \
    1.15  	../../../../include/SDL_quit.h \
    1.16 @@ -27,9 +27,10 @@
    1.17  	../../../../include/SDL_version.h \
    1.18  	../../../../include/SDL_video.h
    1.19  
    1.20 +
    1.21  all: $(EXPORTS)
    1.22  
    1.23 -$(EXPORTS): $(HEADERS)
    1.24 +$(EXPORTS): Makefile genexp.pl $(HEADERS)
    1.25  	perl genexp.pl $(HEADERS) >$@ || rm $@
    1.26  
    1.27  clean:
     2.1 --- a/src/main/beos/exports/SDL.exp	Wed Feb 01 08:24:32 2006 +0000
     2.2 +++ b/src/main/beos/exports/SDL.exp	Wed Feb 01 09:01:12 2006 +0000
     2.3 @@ -86,9 +86,6 @@
     2.4  _SDL_LoadObject
     2.5  _SDL_LoadFunction
     2.6  _SDL_UnloadObject
     2.7 -_SDL_SetModuleHandle
     2.8 -_SDL_RegisterApp
     2.9 -_SDL_InitQuickDraw
    2.10  _SDL_GetMouseState
    2.11  _SDL_GetRelativeMouseState
    2.12  _SDL_WarpMouse
     3.1 --- a/src/main/beos/exports/genexp.pl	Wed Feb 01 08:24:32 2006 +0000
     3.2 +++ b/src/main/beos/exports/genexp.pl	Wed Feb 01 09:01:12 2006 +0000
     3.3 @@ -2,6 +2,11 @@
     3.4  #
     3.5  # Program to take a set of header files and generate MWCC export definitions
     3.6  
     3.7 +# Special exports to ignore for this platform
     3.8 +$exclude{"SDL_putenv"} = 1;
     3.9 +$exclude{"SDL_getenv"} = 1;
    3.10 +$exclude{"SDL_CreateThread_Core"} = 1;
    3.11 +
    3.12  while ( ($file = shift(@ARGV)) ) {
    3.13  	if ( ! defined(open(FILE, $file)) ) {
    3.14  		warn "Couldn't open $file: $!\n";
    3.15 @@ -10,9 +15,12 @@
    3.16  	$file =~ s,.*/,,;
    3.17  	while (<FILE>) {
    3.18  		if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
    3.19 -			print "_$1\n";
    3.20 +			if ( not $exclude{$1} ) {
    3.21 +				print "_$1\n";
    3.22 +			}
    3.23  		}
    3.24  	}
    3.25  	close(FILE);
    3.26  }
    3.27 -# Special exports not public in the header files
    3.28 +
    3.29 +# Special exports to include for this platform
     4.1 --- a/src/main/macos/exports/Makefile	Wed Feb 01 08:24:32 2006 +0000
     4.2 +++ b/src/main/macos/exports/Makefile	Wed Feb 01 09:01:12 2006 +0000
     4.3 @@ -30,7 +30,7 @@
     4.4  
     4.5  all: $(EXPORTS)
     4.6  
     4.7 -$(EXPORTS): $(HEADERS)
     4.8 +$(EXPORTS): Makefile gendef.pl $(HEADERS)
     4.9  	perl gendef.pl $(HEADERS) >$@ || rm $@
    4.10  
    4.11  clean:
     5.1 --- a/src/main/macos/exports/gendef.pl	Wed Feb 01 08:24:32 2006 +0000
     5.2 +++ b/src/main/macos/exports/gendef.pl	Wed Feb 01 09:01:12 2006 +0000
     5.3 @@ -2,6 +2,9 @@
     5.4  #
     5.5  # Program to take a set of header files and generate DLL export definitions
     5.6  
     5.7 +# Special exports to ignore for this platform
     5.8 +$exclude{"SDL_CreateThread_Core"} = 1;
     5.9 +
    5.10  while ( ($file = shift(@ARGV)) ) {
    5.11  	if ( ! defined(open(FILE, $file)) ) {
    5.12  		warn "Couldn't open $file: $!\n";
    5.13 @@ -11,10 +14,13 @@
    5.14  	$file =~ s,.*/,,;
    5.15  	while (<FILE>) {
    5.16  		if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
    5.17 -			print "\t$1\n";
    5.18 +			if ( not $exclude{$1} ) {
    5.19 +				print "\t$1\n";
    5.20 +			}
    5.21  		}
    5.22  	}
    5.23  	close(FILE);
    5.24  }
    5.25 -# Special exports not in the header files
    5.26 +
    5.27 +# Special exports to include for this platform
    5.28  print "\tSDL_InitQuickDraw\n";
     6.1 --- a/src/main/macosx/exports/Makefile	Wed Feb 01 08:24:32 2006 +0000
     6.2 +++ b/src/main/macosx/exports/Makefile	Wed Feb 01 09:01:12 2006 +0000
     6.3 @@ -11,6 +11,7 @@
     6.4  	../../../../include/SDL_endian.h \
     6.5  	../../../../include/SDL_error.h \
     6.6  	../../../../include/SDL_events.h \
     6.7 +	../../../../include/SDL_getenv.h \
     6.8  	../../../../include/SDL_joystick.h \
     6.9  	../../../../include/SDL_keyboard.h \
    6.10  	../../../../include/SDL_keysym.h \
    6.11 @@ -29,7 +30,7 @@
    6.12  
    6.13  all: $(EXPORTS)
    6.14  
    6.15 -$(EXPORTS): $(HEADERS)
    6.16 +$(EXPORTS): Makefile gendef.pl $(HEADERS)
    6.17  	perl gendef.pl $(HEADERS) >$@ || rm $@
    6.18  
    6.19  clean:
     7.1 --- a/src/main/macosx/exports/SDL.x	Wed Feb 01 08:24:32 2006 +0000
     7.2 +++ b/src/main/macosx/exports/SDL.x	Wed Feb 01 09:01:12 2006 +0000
     7.3 @@ -1,5 +1,3 @@
     7.4 -	.objc_class_name_SDL_QuartzWindow
     7.5 -	.objc_class_name_SDL_QuartzWindowDelegate
     7.6  	_SDL_Init
     7.7  	_SDL_InitSubSystem
     7.8  	_SDL_QuitSubSystem
     7.9 @@ -188,3 +186,5 @@
    7.10  	_SDL_WM_ToggleFullScreen
    7.11  	_SDL_WM_GrabInput
    7.12  	_SDL_SoftStretch
    7.13 +	.objc_class_name_SDL_QuartzWindow
    7.14 +	.objc_class_name_SDL_QuartzWindowDelegate
     8.1 --- a/src/main/macosx/exports/gendef.pl	Wed Feb 01 08:24:32 2006 +0000
     8.2 +++ b/src/main/macosx/exports/gendef.pl	Wed Feb 01 09:01:12 2006 +0000
     8.3 @@ -2,21 +2,27 @@
     8.4  #
     8.5  # Program to take a set of header files and generate DLL export definitions
     8.6  
     8.7 -# print objective-c exports
     8.8 -print "\t.objc_class_name_SDL_QuartzWindow\n";
     8.9 -print "\t.objc_class_name_SDL_QuartzWindowDelegate\n";
    8.10 +# Special exports to ignore for this platform
    8.11 +$exclude{"SDL_putenv"} = 1;
    8.12 +$exclude{"SDL_getenv"} = 1;
    8.13 +$exclude{"SDL_CreateThread_Core"} = 1;
    8.14  
    8.15  while ( ($file = shift(@ARGV)) ) {
    8.16  	if ( ! defined(open(FILE, $file)) ) {
    8.17  		warn "Couldn't open $file: $!\n";
    8.18  		next;
    8.19  	}
    8.20 -	$printed_header = 0;
    8.21  	$file =~ s,.*/,,;
    8.22  	while (<FILE>) {
    8.23  		if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
    8.24 -			print "\t_$1\n";
    8.25 +			if ( not $exclude{$1} ) {
    8.26 +				print "\t_$1\n";
    8.27 +			}
    8.28  		}
    8.29  	}
    8.30  	close(FILE);
    8.31  }
    8.32 +
    8.33 +# Special exports to include for this platform
    8.34 +print "\t.objc_class_name_SDL_QuartzWindow\n";
    8.35 +print "\t.objc_class_name_SDL_QuartzWindowDelegate\n";
     9.1 --- a/src/main/win32/exports/Makefile	Wed Feb 01 08:24:32 2006 +0000
     9.2 +++ b/src/main/win32/exports/Makefile	Wed Feb 01 09:01:12 2006 +0000
     9.3 @@ -11,11 +11,11 @@
     9.4  	../../../../include/SDL_endian.h \
     9.5  	../../../../include/SDL_error.h \
     9.6  	../../../../include/SDL_events.h \
     9.7 +	../../../../include/SDL_getenv.h \
     9.8  	../../../../include/SDL_joystick.h \
     9.9  	../../../../include/SDL_keyboard.h \
    9.10  	../../../../include/SDL_keysym.h \
    9.11  	../../../../include/SDL_loadso.h \
    9.12 -	../../../../include/SDL_main.h \
    9.13  	../../../../include/SDL_mouse.h \
    9.14  	../../../../include/SDL_mutex.h \
    9.15  	../../../../include/SDL_quit.h \
    9.16 @@ -30,7 +30,7 @@
    9.17  
    9.18  all: $(EXPORTS)
    9.19  
    9.20 -$(EXPORTS): $(HEADERS)
    9.21 +$(EXPORTS): Makefile gendef.pl $(HEADERS)
    9.22  	perl gendef.pl $(HEADERS) >$@ || rm $@
    9.23  
    9.24  clean:
    10.1 --- a/src/main/win32/exports/SDL.def	Wed Feb 01 08:24:32 2006 +0000
    10.2 +++ b/src/main/win32/exports/SDL.def	Wed Feb 01 09:01:12 2006 +0000
    10.3 @@ -61,6 +61,8 @@
    10.4  	SDL_SetEventFilter
    10.5  	SDL_GetEventFilter
    10.6  	SDL_EventState
    10.7 +	SDL_putenv
    10.8 +	SDL_getenv
    10.9  	SDL_NumJoysticks
   10.10  	SDL_JoystickName
   10.11  	SDL_JoystickOpen
   10.12 @@ -86,9 +88,6 @@
   10.13  	SDL_LoadObject
   10.14  	SDL_LoadFunction
   10.15  	SDL_UnloadObject
   10.16 -	SDL_SetModuleHandle
   10.17 -	SDL_RegisterApp
   10.18 -	SDL_InitQuickDraw
   10.19  	SDL_GetMouseState
   10.20  	SDL_GetRelativeMouseState
   10.21  	SDL_WarpMouse
   10.22 @@ -191,3 +190,4 @@
   10.23  	SDL_SoftStretch
   10.24  	SDL_RegisterApp
   10.25  	SDL_SetModuleHandle
   10.26 +	SDL_UnregisterApp
    11.1 --- a/src/main/win32/exports/gendef.pl	Wed Feb 01 08:24:32 2006 +0000
    11.2 +++ b/src/main/win32/exports/gendef.pl	Wed Feb 01 09:01:12 2006 +0000
    11.3 @@ -2,20 +2,26 @@
    11.4  #
    11.5  # Program to take a set of header files and generate DLL export definitions
    11.6  
    11.7 +# Special exports to ignore for this platform
    11.8 +$exclude{"SDL_CreateThread_Core"} = 1;
    11.9 +
   11.10  while ( ($file = shift(@ARGV)) ) {
   11.11  	if ( ! defined(open(FILE, $file)) ) {
   11.12  		warn "Couldn't open $file: $!\n";
   11.13  		next;
   11.14  	}
   11.15 -	$printed_header = 0;
   11.16  	$file =~ s,.*/,,;
   11.17  	while (<FILE>) {
   11.18  		if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) {
   11.19 -			print "\t$1\n";
   11.20 +			if ( not $exclude{$1} ) {
   11.21 +				print "\t$1\n";
   11.22 +			}
   11.23  		}
   11.24  	}
   11.25  	close(FILE);
   11.26  }
   11.27 -# Special exports not in the header files
   11.28 +
   11.29 +# Special exports to include for this platform
   11.30  print "\tSDL_RegisterApp\n";
   11.31  print "\tSDL_SetModuleHandle\n";
   11.32 +print "\tSDL_UnregisterApp\n";