mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
2e0989bbaf
Cogl, when built with the SDL winsys, includes the SDL headers in its headers, which causes main() to be defined to SDL's main() wrapper on Windows, which means that SDL2.lib and SDL2main.lib need to be linked to every single program that links to Cogl with the SDL winsys. Avoid this behavior by defining SDL_MAIN_HANDLED in the CFLAGS of the sample and test programs, and let people know that this is the case.
54 lines
1.9 KiB
XML
54 lines
1.9 KiB
XML
<?xml version="1.0" encoding="Windows-1252"?>
|
|
<VisualStudioPropertySheet
|
|
ProjectType="Visual C++"
|
|
Version="8.00"
|
|
Name="coglbuilddefinesprops"
|
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin"
|
|
IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)"
|
|
InheritedPropertySheets=".\cogl-version-paths.vsprops"
|
|
>
|
|
<Tool
|
|
Name="VCCLCompilerTool"
|
|
AdditionalIncludeDirectories="..\..\..;..\..\..\cogl;..\..\..\cogl\winsys;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\include\cairo;$(GlibEtcInstallRoot)\include\pango-1.0;$(GlibEtcInstallRoot)\include\gdk-pixbuf-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include"
|
|
PreprocessorDefinitions="G_DISABLE_SINGLE_INCLUDES"
|
|
ForcedIncludeFiles="msvc_recommended_pragmas.h"
|
|
/>
|
|
<Tool
|
|
Name="VCLinkerTool"
|
|
AdditionalDependencies="glib-2.0.lib gobject-2.0.lib"
|
|
AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
|
|
/>
|
|
<UserMacro
|
|
Name="BaseBuildDefines"
|
|
Value="_WIN32_WINNT=0x0500;COGL_ENABLE_DEBUG"
|
|
/>
|
|
<UserMacro
|
|
Name="LibBuildDefines"
|
|
Value="HAVE_CONFIG_H;COGL_COMPILATION;$(BaseBuildDefines)"
|
|
/>
|
|
<UserMacro
|
|
Name="ReleaseLibBuildDefines"
|
|
Value="$(LibBuildDefines);G_DISABLE_CHECKS;G_DISABLE_CAST_CHECKS"
|
|
/>
|
|
<UserMacro
|
|
Name="DebugLibBuildDefines"
|
|
Value="_DEBUG;$(LibBuildDefines);COGL_GL_DEBUG;COGL_OBJECT_DEBUG;COGL_HANDLE_DEBUG"
|
|
/>
|
|
<UserMacro
|
|
Name="CoglBuildDefines"
|
|
Value="G_LOG_DOMAIN=\"Cogl\";COGL_HAS_WIN32_SUPPORT;COGL_BUILD_EXP;COGL_GL_LIBNAME=\"\";COGL_LOCALEDIR=\"/some/random/dir\""
|
|
/>
|
|
<UserMacro
|
|
Name="CoglPathBuildDefines"
|
|
Value="G_LOG_DOMAIN=\"CoglPath\""
|
|
/>
|
|
<UserMacro
|
|
Name="CoglPangoBuildDefines"
|
|
Value="G_LOG_DOMAIN=\"Cogl-Pango\""
|
|
/>
|
|
<UserMacro
|
|
Name="CoglAppAvoidForcedSDLLinkingDefines"
|
|
Value="SDL_MAIN_HANDLED"
|
|
/>
|
|
</VisualStudioPropertySheet>
|