Browse Source

build: add a new libcaca Windows build and add the proper MSBuild rules

to link with it.
legacy
Sam Hocevar sam 12 years ago
parent
commit
07449fce39
1 changed files with 16 additions and 2 deletions
  1. +16
    -2
      win32/Lol.Core.Vars.props

+ 16
- 2
win32/Lol.Core.Vars.props View File

@@ -17,6 +17,7 @@
<SdlLibs Condition="'$(Platform)'=='x64'">$(SdlDir)\lib\x86_64-w64-mingw32</SdlLibs> <SdlLibs Condition="'$(Platform)'=='x64'">$(SdlDir)\lib\x86_64-w64-mingw32</SdlLibs>
<SdlDeps Condition="'$(Platform)'=='Win32'">SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib</SdlDeps> <SdlDeps Condition="'$(Platform)'=='Win32'">SDL.lib;SDLmain.lib;SDL_image.lib;SDL_mixer.lib</SdlDeps>
<SdlDeps Condition="'$(Platform)'=='x64'">libSDL.a;libSDLmain.a</SdlDeps> <SdlDeps Condition="'$(Platform)'=='x64'">libSDL.a;libSDLmain.a</SdlDeps>
<Win32Defines>HAVE_SDL_H;USE_SDL;$(Win32Defines)</Win32Defines>


<!-- GTK+ & GtkGl --> <!-- GTK+ & GtkGl -->
<GtkDir>$(ContribDir)\gtk-2.22.1</GtkDir> <GtkDir>$(ContribDir)\gtk-2.22.1</GtkDir>
@@ -25,8 +26,17 @@
<GtkLibs>$(GtkDir)\lib;$(GtkDir)\bin;$(GtkGlDir)\lib</GtkLibs> <GtkLibs>$(GtkDir)\lib;$(GtkDir)\bin;$(GtkGlDir)\lib</GtkLibs>
<GtkDeps>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</GtkDeps> <GtkDeps>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</GtkDeps>


<!-- libcaca -->
<CacaDir>$(ContribDir)\libcaca-0.99.beta18</CacaDir>
<CacaIncludes>$(CacaDir)\include</CacaIncludes>
<CacaLibs Condition="'$(Platform)'=='Win32'">$(CacaDir)\lib\i686-w64-mingw32</CacaLibs>
<CacaLibs Condition="'$(Platform)'=='x64'">$(CacaDir)\lib\x86_64-w64-mingw32</CacaLibs>
<CacaDeps>libcaca.lib</CacaDeps>
<Win32Defines>CACA_STATIC;$(Win32Defines)</Win32Defines>

<!-- GDI+ --> <!-- GDI+ -->
<GdiDeps>Gdiplus.lib</GdiDeps> <GdiDeps>Gdiplus.lib</GdiDeps>
<Win32Defines>USE_GDIPLUS;$(Win32Defines)</Win32Defines>


<!-- OpenGL & GLEW --> <!-- OpenGL & GLEW -->
<GlewDir>$(ContribDir)\glew-1.7.0</GlewDir> <GlewDir>$(ContribDir)\glew-1.7.0</GlewDir>
@@ -34,6 +44,7 @@
<GlLibs Condition="'$(Platform)'=='Win32'">$(GlewDir)\lib\i686-w64-mingw32</GlLibs> <GlLibs Condition="'$(Platform)'=='Win32'">$(GlewDir)\lib\i686-w64-mingw32</GlLibs>
<GlLibs Condition="'$(Platform)'=='x64'">$(GlewDir)\lib\x86_64-w64-mingw32</GlLibs> <GlLibs Condition="'$(Platform)'=='x64'">$(GlewDir)\lib\x86_64-w64-mingw32</GlLibs>
<GlDeps>opengl32.lib;glew32.lib</GlDeps> <GlDeps>opengl32.lib;glew32.lib</GlDeps>
<Win32Defines Condition="'$(UseOpenGL)'=='true'">HAVE_GL_2X;USE_GLEW;GLEW_STATIC;$(Win32Defines)</Win32Defines>


<!-- Direct3D 9 --> <!-- Direct3D 9 -->
<D3d9Includes>$(DXSDK_DIR)\Include</D3d9Includes> <D3d9Includes>$(DXSDK_DIR)\Include</D3d9Includes>
@@ -41,9 +52,8 @@
<D3d9Libs Condition="'$(Platform)'=='x64'">$(DXSDK_DIR)\Lib\x64</D3d9Libs> <D3d9Libs Condition="'$(Platform)'=='x64'">$(DXSDK_DIR)\Lib\x64</D3d9Libs>
<D3d9Deps Condition="'$(Configuration)'=='Release'">d3d9.lib;d3dx9.lib;xinput.lib</D3d9Deps> <D3d9Deps Condition="'$(Configuration)'=='Release'">d3d9.lib;d3dx9.lib;xinput.lib</D3d9Deps>
<D3d9Deps Condition="'$(Configuration)'=='Debug'">d3d9.lib;d3dx9d.lib;xinput.lib</D3d9Deps> <D3d9Deps Condition="'$(Configuration)'=='Debug'">d3d9.lib;d3dx9d.lib;xinput.lib</D3d9Deps>
<Win32Defines Condition="'$(UseOpenGL)'=='false'">USE_D3D9;$(Win32Defines)</Win32Defines>


<Win32Defines Condition="'$(UseOpenGL)'=='true'">HAVE_SDL_H;USE_SDL;USE_GDIPLUS;HAVE_GL_2X;USE_GLEW;GLEW_STATIC</Win32Defines>
<Win32Defines Condition="'$(UseOpenGL)'=='false'">HAVE_SDL_H;USE_SDL;USE_GDIPLUS;USE_D3D9</Win32Defines>
<XboxDefines></XboxDefines> <XboxDefines></XboxDefines>
</PropertyGroup> </PropertyGroup>
<PropertyGroup /> <PropertyGroup />
@@ -63,6 +73,10 @@
<BuildMacro Include="GtkIncludes"><Value>$(GtkIncludes)</Value></BuildMacro> <BuildMacro Include="GtkIncludes"><Value>$(GtkIncludes)</Value></BuildMacro>
<BuildMacro Include="GtkLibs"><Value>$(GtkLibs)</Value></BuildMacro> <BuildMacro Include="GtkLibs"><Value>$(GtkLibs)</Value></BuildMacro>
<BuildMacro Include="GtkDeps"><Value>$(GtkDeps)</Value></BuildMacro> <BuildMacro Include="GtkDeps"><Value>$(GtkDeps)</Value></BuildMacro>
<BuildMacro Include="CacaDir"><Value>$(CacaDir)</Value></BuildMacro>
<BuildMacro Include="CacaIncludes"><Value>$(CacaIncludes)</Value></BuildMacro>
<BuildMacro Include="CacaLibs"><Value>$(CacaLibs)</Value></BuildMacro>
<BuildMacro Include="CacaDeps"><Value>$(CacaDeps)</Value></BuildMacro>
<BuildMacro Include="GdiDeps"><Value>$(GdiDeps)</Value></BuildMacro> <BuildMacro Include="GdiDeps"><Value>$(GdiDeps)</Value></BuildMacro>
<BuildMacro Include="GlewDir"><Value>$(GlewDir)</Value></BuildMacro> <BuildMacro Include="GlewDir"><Value>$(GlewDir)</Value></BuildMacro>
<BuildMacro Include="GlIncludes"><Value>$(GlIncludes)</Value></BuildMacro> <BuildMacro Include="GlIncludes"><Value>$(GlIncludes)</Value></BuildMacro>


Loading…
Cancel
Save