From 98e91ef6070dfda47f3cfee80a526194a45f524a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 1 Feb 2011 13:20:43 +0000 Subject: [PATCH] Add all the bells and whistles needed for GTK+ compilation on Win32. --- win32/Contribs.props | 58 +++++++++++ win32/deushax.vcxproj | 14 +-- win32/editor.vcxproj | 156 +++++++++++++++++++++++++++++ win32/editor.vcxproj.filters | 185 +++++++++++++++++++++++++++++++++++ win32/lolengine.sln | 6 ++ win32/monsterz.vcxproj | 14 +-- 6 files changed, 421 insertions(+), 12 deletions(-) create mode 100644 win32/Contribs.props create mode 100644 win32/editor.vcxproj create mode 100644 win32/editor.vcxproj.filters diff --git a/win32/Contribs.props b/win32/Contribs.props new file mode 100644 index 00000000..46c41ca2 --- /dev/null +++ b/win32/Contribs.props @@ -0,0 +1,58 @@ + + + + + $(SolutionDir)\..\contrib + $(ContribDir)\gtk+-bundle_2.22.1-20101227_win32 + $(ContribDir)\gtkglarea + $(ContribDir)\SDL-1.2.14 + $(ContribDir)\SDL_image-1.2.10 + $(ContribDir)\SDL_mixer-1.2.11 + $(GtkDir)\lib\glib-2.0\include;$(GtkDir)\lib\gtk-2.0\include;$(GtkDir)\include\glib-2.0;$(GtkDir)\include\gtk-2.0;$(GtkDir)\include\cairo;$(GtkDir)\include\pango-1.0;$(GtkDir)\include\gdk-pixbuf-2.0;$(GtkDir)\include\atk-1.0;$(GtkGlDir)\include + $(SdlDir)\include;$(SdlImageDir)\include;$(SdlMixerDir)\include + $(GtkDir)\lib;$(GtkGlDir)\lib + $(SdlDir)\lib;$(SdlImageDir)\lib;$(SdlMixerDir)\lib + gobject-2.0.lib;gthread-2.0.lib;glib-2.0.lib;gdk-win32-2.0.lib;gtk-win32-2.0.lib;gtkgl-2.0.lib + SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib + + + + + + $(ContribDir) + + + $(GtkDir) + + + $(GtkGlDir) + + + $(SdlDir) + + + $(SdlImageDir) + + + $(SdlMixerDir) + + + $(GtkIncludes) + + + $(SdlIncludes) + + + $(GtkLibs) + + + $(SdlLibs) + + + $(GtkDeps) + + + $(SdlDeps) + + + diff --git a/win32/deushax.vcxproj b/win32/deushax.vcxproj index 8f3b8311..22368d40 100644 --- a/win32/deushax.vcxproj +++ b/win32/deushax.vcxproj @@ -99,9 +99,11 @@ + + @@ -119,13 +121,13 @@ Level3 Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(SolutionDir)\..\src;$(SolutionDir)\..\contrib\SDL_image-1.2.10\include;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\include;$(SolutionDir)\..\contrib\SDL-1.2.14\include;%(AdditionalIncludeDirectories) + $(SolutionDir)\..\src;$(SdlIncludes);%(AdditionalIncludeDirectories) Console true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib;opengl32.lib - $(SolutionDir)\..\contrib\SDL_image-1.2.10\lib;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\lib;$(SolutionDir)\..\contrib\SDL-1.2.14\lib;%(AdditionalLibraryDirectories) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);opengl32.lib + $(SdlLibs);%(AdditionalLibraryDirectories) @@ -137,15 +139,15 @@ true true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(SolutionDir)\..\src;$(SolutionDir)\..\contrib\SDL_image-1.2.10\include;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\include;$(SolutionDir)\..\contrib\SDL-1.2.14\include;%(AdditionalIncludeDirectories) + $(SolutionDir)\..\src;$(SdlIncludes);%(AdditionalIncludeDirectories) Console true true true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib;opengl32.lib - $(SolutionDir)\..\contrib\SDL_image-1.2.10\lib;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\lib;$(SolutionDir)\..\contrib\SDL-1.2.14\lib;%(AdditionalLibraryDirectories) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);opengl32.lib + $(SdlLibs);%(AdditionalLibraryDirectories) diff --git a/win32/editor.vcxproj b/win32/editor.vcxproj new file mode 100644 index 00000000..8a327d6e --- /dev/null +++ b/win32/editor.vcxproj @@ -0,0 +1,156 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {9C66B179-0737-4BDA-AB42-2ADE478A9008} + Win32Proj + testmap + + + + Application + true + Unicode + Dynamic + + + Application + false + true + Unicode + Dynamic + + + + + + + + + + + + + + + Debug\$(ProjectName)\ + true + + + Release\$(ProjectName)\ + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + $(SolutionDir)\..\src;$(SolutionDir)\..\deushax;$(SdlIncludes);$(GtkIncludes);%(AdditionalIncludeDirectories) + + + Console + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);$(GtkDeps);opengl32.lib + $(SdlLibs);$(GtkLibs);%(AdditionalLibraryDirectories) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + $(SolutionDir)\..\src;$(SolutionDir)\..\deushax;$(SdlIncludes);$(GtkIncludes);%(AdditionalIncludeDirectories) + + + Console + true + true + true + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);$(GtkDeps);opengl32.lib + $(SdlLibs);$(GtkLibs);%(AdditionalLibraryDirectories) + + + + + + diff --git a/win32/editor.vcxproj.filters b/win32/editor.vcxproj.filters new file mode 100644 index 00000000..f11cc135 --- /dev/null +++ b/win32/editor.vcxproj.filters @@ -0,0 +1,185 @@ + + + + + {755186eb-cee6-4c2e-822f-24e728ac6fb8} + + + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + + + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + lolengine + + + + + + \ No newline at end of file diff --git a/win32/lolengine.sln b/win32/lolengine.sln index a3862185..3bb80c21 100644 --- a/win32/lolengine.sln +++ b/win32/lolengine.sln @@ -5,6 +5,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "deushax", "deushax.vcxproj" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "monsterz", "monsterz.vcxproj", "{17F0F184-4436-4D08-B8AA-16572EA238DB}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "editor", "editor.vcxproj", "{9C66B179-0737-4BDA-AB42-2ADE478A9008}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -19,6 +21,10 @@ Global {17F0F184-4436-4D08-B8AA-16572EA238DB}.Debug|Win32.Build.0 = Debug|Win32 {17F0F184-4436-4D08-B8AA-16572EA238DB}.Release|Win32.ActiveCfg = Release|Win32 {17F0F184-4436-4D08-B8AA-16572EA238DB}.Release|Win32.Build.0 = Release|Win32 + {9C66B179-0737-4BDA-AB42-2ADE478A9008}.Debug|Win32.ActiveCfg = Debug|Win32 + {9C66B179-0737-4BDA-AB42-2ADE478A9008}.Debug|Win32.Build.0 = Debug|Win32 + {9C66B179-0737-4BDA-AB42-2ADE478A9008}.Release|Win32.ActiveCfg = Release|Win32 + {9C66B179-0737-4BDA-AB42-2ADE478A9008}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/win32/monsterz.vcxproj b/win32/monsterz.vcxproj index 77d64dc2..bc263909 100644 --- a/win32/monsterz.vcxproj +++ b/win32/monsterz.vcxproj @@ -104,9 +104,11 @@ + + @@ -124,13 +126,13 @@ Level3 Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(SolutionDir)\..\src;$(SolutionDir)\..\contrib\SDL_image-1.2.10\include;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\include;$(SolutionDir)\..\contrib\SDL-1.2.14\include;%(AdditionalIncludeDirectories) + $(SolutionDir)\..\src;$(SdlIncludes);%(AdditionalIncludeDirectories) Console true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib;opengl32.lib - $(SolutionDir)\..\contrib\SDL_image-1.2.10\lib;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\lib;$(SolutionDir)\..\contrib\SDL-1.2.14\lib;%(AdditionalLibraryDirectories) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);opengl32.lib + $(SdlLibs);%(AdditionalLibraryDirectories) @@ -142,15 +144,15 @@ true true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - $(SolutionDir)\..\src;$(SolutionDir)\..\contrib\SDL_image-1.2.10\include;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\include;$(SolutionDir)\..\contrib\SDL-1.2.14\include;%(AdditionalIncludeDirectories) + $(SolutionDir)\..\src;$(SdlIncludes);%(AdditionalIncludeDirectories) Console true true true - kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib;opengl32.lib - $(SolutionDir)\..\contrib\SDL_image-1.2.10\lib;$(SolutionDir)\..\contrib\SDL_mixer-1.2.11\lib;$(SolutionDir)\..\contrib\SDL-1.2.14\lib;%(AdditionalLibraryDirectories) + kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies);$(SdlDeps);opengl32.lib + $(SdlLibs);%(AdditionalLibraryDirectories)