[Scummvm-cvs-logs] SF.net SVN: scummvm:[50193] scummvm/branches/gsoc2010-opengl

vgvgf at users.sourceforge.net vgvgf at users.sourceforge.net
Wed Jun 23 23:07:04 CEST 2010


Revision: 50193
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50193&view=rev
Author:   vgvgf
Date:     2010-06-23 21:07:03 +0000 (Wed, 23 Jun 2010)

Log Message:
-----------
Relocated Win32 and Posix ports. (Part 2)

Modified Paths:
--------------
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/module.mk
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/main.cpp
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/posix.cpp
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/main.cpp
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/win32.cpp
    scummvm/branches/gsoc2010-opengl/tools/create_msvc/create_msvc.cpp

Removed Paths:
-------------
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/module.mk
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/module.mk

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/module.mk
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/module.mk	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/module.mk	2010-06-23 21:07:03 UTC (rev 50193)
@@ -1,6 +1,10 @@
 MODULE := backends/platform/sdl
 
 MODULE_OBJS := \
+	posix/main.o \
+	posix/posix.o \
+	win32/main.o \
+	win32/win32.o \
 	hardwarekeys.o \
 	main.o \
 	sdl.o

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/main.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/main.cpp	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/main.cpp	2010-06-23 21:07:03 UTC (rev 50193)
@@ -23,9 +23,11 @@
  *
  */
 
+#ifdef UNIX
+
 #include "common/scummsys.h"
 
-#include "backends/platform/posix/posix.h"
+#include "backends/platform/sdl/posix/posix.h"
 #include "backends/plugins/sdl/sdl-provider.h"
 #include "base/main.h"
 
@@ -44,3 +46,5 @@
 	delete (OSystem_POSIX *)g_system;
 	return res;
 }
+
+#endif

Deleted: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/module.mk
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/module.mk	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/module.mk	2010-06-23 21:07:03 UTC (rev 50193)
@@ -1,11 +0,0 @@
-MODULE := backends/platform/posix
-
-MODULE_OBJS := \
-	main.o \
-	posix.o
-
-MODULE_DIRS += \
-	backends/platform/posix/
-
-# We don't use the rules.mk here on purpose
-OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS)

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/posix.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/posix.cpp	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/posix/posix.cpp	2010-06-23 21:07:03 UTC (rev 50193)
@@ -23,7 +23,9 @@
  *
  */
 
-#include "backends/platform/posix/posix.h"
+#ifdef UNIX
+
+#include "backends/platform/sdl/posix/posix.h"
 #include "common/archive.h"
 #include "common/config-manager.h"
 #include "common/debug.h"
@@ -74,3 +76,5 @@
 
 	return configFile;
 }
+
+#endif

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/main.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/main.cpp	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/main.cpp	2010-06-23 21:07:03 UTC (rev 50193)
@@ -23,6 +23,8 @@
  *
  */
 
+#ifdef WIN32
+
 // Fix for bug #2895217 "MSVC compilation broken with r47595":
 // We need to keep this on top of the "common/scummsys.h" include,
 // otherwise we will get errors about the windows headers redefining
@@ -33,7 +35,7 @@
 
 #include "common/scummsys.h"
 
-#include "backends/platform/win32/win32.h"
+#include "backends/platform/sdl/win32/win32.h"
 #include "backends/plugins/sdl/sdl-provider.h"
 #include "base/main.h"
 
@@ -57,3 +59,5 @@
 	delete (OSystem_Win32 *)g_system;
 	return res;
 }
+
+#endif

Deleted: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/module.mk
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/module.mk	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/module.mk	2010-06-23 21:07:03 UTC (rev 50193)
@@ -1,11 +0,0 @@
-MODULE := backends/platform/win32
-
-MODULE_OBJS := \
-	main.o \
-	win32.o
-
-MODULE_DIRS += \
-	backends/platform/win32/
-
-# We don't use the rules.mk here on purpose
-OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS)
\ No newline at end of file

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/win32.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/win32.cpp	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/win32/win32.cpp	2010-06-23 21:07:03 UTC (rev 50193)
@@ -23,11 +23,13 @@
  *
  */
 
+#ifdef WIN32
+
 #include <windows.h>
 // winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h
 #undef ARRAYSIZE
 
-#include "backends/platform/win32/win32.h"
+#include "backends/platform/sdl/win32/win32.h"
 #include "common/archive.h"
 #include "common/config-manager.h"
 #include "common/debug.h"
@@ -96,3 +98,5 @@
 
 	return configFile;
 }
+
+#endif

Modified: scummvm/branches/gsoc2010-opengl/tools/create_msvc/create_msvc.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/tools/create_msvc/create_msvc.cpp	2010-06-23 21:00:21 UTC (rev 50192)
+++ scummvm/branches/gsoc2010-opengl/tools/create_msvc/create_msvc.cpp	2010-06-23 21:07:03 UTC (rev 50193)
@@ -990,7 +990,6 @@
 	// File list for the ScummVM project file
 	createModuleList(setup.srcDir + "/backends", setup.defines, in, ex);
 	createModuleList(setup.srcDir + "/backends/platform/sdl", setup.defines, in, ex);
-	createModuleList(setup.srcDir + "/backends/platform/win32", setup.defines, in, ex);
 	createModuleList(setup.srcDir + "/base", setup.defines, in, ex);
 	createModuleList(setup.srcDir + "/common", setup.defines, in, ex);
 	createModuleList(setup.srcDir + "/engines", setup.defines, in, ex);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list