This is an automated email from the git hooks/post-receive script. ecsv-guest pushed a commit to branch master in repository mupen64plus-video-glide64.
commit 93c8ed04a1c1d1f1f9bdba0a9831ba544dc52787 Author: Sven Eckelmann <[email protected]> Date: Wed Jun 5 11:05:24 2013 +0200 Imported Upstream version 1.99.5+23+ecd597fb6dcf --- projects/unix/Makefile | 78 ++++++++++++++++++++---------------------------- src/Main.cpp | 16 +++++++++- src/m64p.h | 5 ++-- src/video_api_export.ver | 1 + src/wrapper/main.cpp | 2 +- 5 files changed, 53 insertions(+), 49 deletions(-) diff --git a/projects/unix/Makefile b/projects/unix/Makefile index a7c07f0..2780c1b 100644 --- a/projects/unix/Makefile +++ b/projects/unix/Makefile @@ -119,16 +119,12 @@ ifeq ("$(CPU)","NONE") endif # base CFLAGS, LDLIBS, and LDFLAGS -OPTFLAGS ?= -O3 +OPTFLAGS ?= -O3 -flto WARNFLAGS ?= -Wall CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/wrapper -DGCC CXXFLAGS += -fvisibility-inlines-hidden LDFLAGS += $(SHARED) -# default configuration programs -SDL_CONFIG = $(CROSS_COMPILE)sdl-config -PKG_CONFIG = $(CROSS_COMPILE)pkg-config - ifeq ($(CPU), X86) CFLAGS += -msse endif @@ -137,10 +133,8 @@ endif # On 32-bit x86 systems we do not want to use -fPIC because we don't have to and it has a big performance penalty on this arch ifeq ($(PIC), 1) CFLAGS += -fPIC - LDFLAGS += -fPIC else CFLAGS += -fno-PIC - LDFLAGS += -fno-PIC endif ifeq ($(BIG_ENDIAN), 1) @@ -153,7 +147,7 @@ ifeq ($(ARCH_DETECTED), 64BITS_32) $(error Do not use the BITS=32 option with FreeBSD, use -m32 and -m elf_i386) endif CFLAGS += -m32 - LDFLAGS += -m32 -Wl,-m,elf_i386 + LDFLAGS += -Wl,-m,elf_i386 endif # set special flags per-system @@ -178,11 +172,11 @@ ifeq ($(OS), OSX) ifeq ($(CPU), X86) ifeq ($(ARCH_DETECTED), 64BITS) CFLAGS += -pipe -arch x86_64 -mmacosx-version-min=$(OSX_SDK) -isysroot $(OSX_SYSROOT)/MacOSX$(OSX_SDK).sdk - LDFLAGS += -bundle -arch x86_64 + LDFLAGS += -bundle LDLIBS += -ldl else CFLAGS += -pipe -mmmx -msse -fomit-frame-pointer -arch i686 -mmacosx-version-min=$(OSX_SDK) -isysroot $(OSX_SYSROOT)/MacOSX$(OSX_SDK).sdk - LDFLAGS += -bundle -arch i686 + LDFLAGS += -bundle LDLIBS += -ldl endif endif @@ -192,47 +186,47 @@ ifeq ($(OS), FREEBSD) endif # search for OpenGL libraries -GL_LIBS= ifeq ($(OS), OSX) - GL_LIBS = -framework OpenGL + GL_LDLIBS = -framework OpenGL endif ifeq ($(OS), MINGW) - GL_LIBS = -lopengl32 + GL_LDLIBS = -lopengl32 endif -ifeq ("$(GL_LIBS)", "") - ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),) - $(error $(PKG_CONFIG) not found) +ifeq ($(origin GL_CFLAGS) $(origin GL_LDLIBS), undefined undefined) + ifeq ($(origin PKG_CONFIG), undefined) + PKG_CONFIG = $(CROSS_COMPILE)pkg-config + ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),) + $(error $(PKG_CONFIG) not found) + endif endif + ifeq ($(shell $(PKG_CONFIG) --modversion gl 2>/dev/null),) $(error No OpenGL development libraries found!) endif - CFLAGS += $(shell $(PKG_CONFIG) --cflags gl) - GL_LIBS = $(shell $(PKG_CONFIG) --libs gl) + GL_CFLAGS += $(shell $(PKG_CONFIG) --cflags gl) + GL_LDLIBS += $(shell $(PKG_CONFIG) --libs gl) endif -LDLIBS += $(GL_LIBS) +CFLAGS += $(GL_CFLAGS) +LDLIBS += $(GL_LDLIBS) # test for presence of SDL -ifeq ($(shell which $(SDL_CONFIG) 2>/dev/null),) - $(error No SDL development libraries found!) -endif -ifeq ($(OS),FREEBSD) - CFLAGS += $(shell $(SDL_CONFIG) --cflags) - LDLIBS += $(shell $(SDL_CONFIG) --libs) -endif -ifeq ($(OS),OSX) - CFLAGS += $(shell $(SDL_CONFIG) --cflags) +ifeq ($(origin SDL_CFLAGS) $(origin SDL_LDLIBS), undefined undefined) + SDL_CONFIG = $(CROSS_COMPILE)sdl-config + ifeq ($(shell which $(SDL_CONFIG) 2>/dev/null),) + $(error No SDL development libraries found!) + endif + ifeq ($(OS),OSX) + SDL_CFLAGS += $(shell $(SDL_CONFIG) --cflags) # sdl-config on mac screws up when we're trying to build a library and not an executable # SDL 1.3 is supposed to fix that, if it's ever released - LDLIBS += -L/usr/local/lib -lSDL -Wl,-framework,Cocoa -endif -ifeq ($(OS),LINUX) - CFLAGS += $(shell $(SDL_CONFIG) --cflags) - LDLIBS += $(shell $(SDL_CONFIG) --libs) -endif -ifeq ($(OS), MINGW) - CFLAGS += $(shell $(SDL_CONFIG) --cflags) - LDLIBS += $(shell $(SDL_CONFIG) --libs) + SDL_LDLIBS += -L/usr/local/lib -lSDL -Wl,-framework,Cocoa + else + SDL_CFLAGS += $(shell $(SDL_CONFIG) --cflags) + SDL_LDLIBS += $(shell $(SDL_CONFIG) --libs) + endif endif +CFLAGS += $(SDL_CFLAGS) +LDLIBS += $(SDL_LDLIBS) # set mupen64plus core API header path ifneq ("$(APIDIR)","") @@ -273,7 +267,7 @@ INSTALL ?= install MKDIR ?= mkdir -p COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c COMPILE.cc = $(Q_CXX)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c -LINK.o = $(Q_LD)$(CXX) $(LDFLAGS) $(TARGET_ARCH) +LINK.o = $(Q_LD)$(CXX) $(CXXFLAGS) $(LDFLAGS) $(TARGET_ARCH) # set special flags for given Makefile parameters ifeq ($(DEBUG),1) @@ -356,7 +350,7 @@ targets: @echo " BITS=32 == build 32-bit binaries on 64-bit machine" @echo " NO_ASM=1 == build without inline assembly code (x86 MMX/SSE)" @echo " APIDIR=path == path to find Mupen64Plus Core headers" - @echo " OPTFLAGS=flag == compiler optimization (default: -O3)" + @echo " OPTFLAGS=flag == compiler optimization (default: -O3 -flto)" @echo " WARNFLAGS=flag == compiler warning levels (default: -Wall)" @echo " PIC=(1|0) == Force enable/disable of position independent code" @echo " POSTFIX=name == String added to the name of the the build (default: '')" @@ -368,7 +362,6 @@ targets: @echo " DESTDIR=path == path to prepend to all installation paths (only for packagers)" @echo " Debugging Options:" @echo " DEBUG=1 == add debugging symbols" - @echo " LTO=1 == enable experimental build with link-time optimization" @echo " V=1 == show verbose compiler output" all: $(TARGET) @@ -393,11 +386,6 @@ CFLAGS += -MD -include $(OBJECTS:.o=.d) CXXFLAGS += $(CFLAGS) -ifeq ($(LTO), 1) - CFLAGS += -flto -ffunction-sections -fdata-sections - CXXFLAGS += -flto -ffunction-sections -fdata-sections - LDFLAGS += -fuse-linker-plugin -Wl,--gc-sections $(CXXFLAGS) -endif # standard build rules $(OBJDIR)/%.o: $(SRCDIR)/%.c diff --git a/src/Main.cpp b/src/Main.cpp index 4d50f83..e971305 100755 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -104,6 +104,7 @@ ptr_VidExt_ListFullscreenModes CoreVideo_ListFullscreenModes = NULL; ptr_VidExt_SetVideoMode CoreVideo_SetVideoMode = NULL; ptr_VidExt_SetCaption CoreVideo_SetCaption = NULL; ptr_VidExt_ToggleFullScreen CoreVideo_ToggleFullScreen = NULL; +ptr_VidExt_ResizeWindow CoreVideo_ResizeWindow = NULL; ptr_VidExt_GL_GetProcAddress CoreVideo_GL_GetProcAddress = NULL; ptr_VidExt_GL_SetAttribute CoreVideo_GL_SetAttribute = NULL; ptr_VidExt_GL_SwapBuffers CoreVideo_GL_SwapBuffers = NULL; @@ -984,13 +985,14 @@ EXPORT m64p_error CALL PluginStartup(m64p_dynlib_handle CoreLibHandle, void *Con CoreVideo_SetVideoMode = (ptr_VidExt_SetVideoMode) osal_dynlib_getproc(CoreLibHandle, "VidExt_SetVideoMode"); CoreVideo_SetCaption = (ptr_VidExt_SetCaption) osal_dynlib_getproc(CoreLibHandle, "VidExt_SetCaption"); CoreVideo_ToggleFullScreen = (ptr_VidExt_ToggleFullScreen) osal_dynlib_getproc(CoreLibHandle, "VidExt_ToggleFullScreen"); + CoreVideo_ResizeWindow = (ptr_VidExt_ResizeWindow) osal_dynlib_getproc(CoreLibHandle, "VidExt_ResizeWindow"); CoreVideo_GL_GetProcAddress = (ptr_VidExt_GL_GetProcAddress) osal_dynlib_getproc(CoreLibHandle, "VidExt_GL_GetProcAddress"); CoreVideo_GL_SetAttribute = (ptr_VidExt_GL_SetAttribute) osal_dynlib_getproc(CoreLibHandle, "VidExt_GL_SetAttribute"); CoreVideo_GL_SwapBuffers = (ptr_VidExt_GL_SwapBuffers) osal_dynlib_getproc(CoreLibHandle, "VidExt_GL_SwapBuffers"); if (!CoreVideo_Init || !CoreVideo_Quit || !CoreVideo_ListFullscreenModes || !CoreVideo_SetVideoMode || !CoreVideo_SetCaption || !CoreVideo_ToggleFullScreen || !CoreVideo_GL_GetProcAddress || - !CoreVideo_GL_SetAttribute || !CoreVideo_GL_SwapBuffers) + !CoreVideo_GL_SetAttribute || !CoreVideo_GL_SwapBuffers || !CoreVideo_ResizeWindow) { WriteLog(M64MSG_ERROR, "Couldn't connect to Core video functions"); return M64ERR_INCOMPATIBLE; @@ -1343,6 +1345,18 @@ EXPORT void CALL ProcessRDPList(void) #endif /****************************************************************** +Function: ResizeVideoOutput +Purpose: This function is called to force us to resize our output OpenGL window. + This is currently unsupported, and should never be called because we do + not pass the RESIZABLE flag to VidExt_SetVideoMode when initializing. +input: new width and height +output: none +*******************************************************************/ +EXPORT void CALL ResizeVideoOutput(int Width, int Height) +{ +} + +/****************************************************************** Function: RomClosed Purpose: This function is called when a rom is closed. input: none diff --git a/src/m64p.h b/src/m64p.h index 153258a..39573e0 100755 --- a/src/m64p.h +++ b/src/m64p.h @@ -32,9 +32,9 @@ #define PLUGIN_NAME "Glide64 Video Plugin" #define PLUGIN_VERSION 0x016305 -#define VIDEO_PLUGIN_API_VERSION 0x020100 +#define VIDEO_PLUGIN_API_VERSION 0x020200 #define CONFIG_API_VERSION 0x020000 -#define VIDEXT_API_VERSION 0x020000 +#define VIDEXT_API_VERSION 0x030000 #define VERSION_PRINTF_SPLIT(x) (((x) >> 16) & 0xffff), (((x) >> 8) & 0xff), ((x) & 0xff) void WriteLog(m64p_msg_level level, const char *msg, ...); @@ -80,6 +80,7 @@ extern ptr_VidExt_ListFullscreenModes CoreVideo_ListFullscreenModes; extern ptr_VidExt_SetVideoMode CoreVideo_SetVideoMode; extern ptr_VidExt_SetCaption CoreVideo_SetCaption; extern ptr_VidExt_ToggleFullScreen CoreVideo_ToggleFullScreen; +extern ptr_VidExt_ResizeWindow CoreVideo_ResizeWindow; extern ptr_VidExt_GL_GetProcAddress CoreVideo_GL_GetProcAddress; extern ptr_VidExt_GL_SetAttribute CoreVideo_GL_SetAttribute; extern ptr_VidExt_GL_SwapBuffers CoreVideo_GL_SwapBuffers; diff --git a/src/video_api_export.ver b/src/video_api_export.ver index 557b009..c4db656 100644 --- a/src/video_api_export.ver +++ b/src/video_api_export.ver @@ -15,6 +15,7 @@ ViStatusChanged; ViWidthChanged; ReadScreen2; SetRenderingCallback; +ResizeVideoOutput; FBRead; FBWrite; FBGetFrameBufferInfo; diff --git a/src/wrapper/main.cpp b/src/wrapper/main.cpp index 09427e7..b3d9204 100755 --- a/src/wrapper/main.cpp +++ b/src/wrapper/main.cpp @@ -423,7 +423,7 @@ grSstWinOpen( return 0; } - if (CoreVideo_SetVideoMode(width, height, 0, screen_mode) != M64ERR_SUCCESS) + if (CoreVideo_SetVideoMode(width, height, 0, screen_mode, (m64p_video_flags) 0) != M64ERR_SUCCESS) { WriteLog(M64MSG_ERROR, "Could not set video mode."); return 0; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-video-glide64.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

