mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
20e619f8a6
Cogl, when built with the SDL winsys, will include the SDL headers when Cogl-based programs are built, which causes the SDL's wrapper for main() to be used on Windows, causing an implicit requirement that all Cogl-based apps must link to SDL2.lib and SDL2main.lib. Avoid this behavior by defining SDL_MAIN_HANDLED in the CFLAGS of the sample and interactive test programs
62 lines
2.4 KiB
XML
62 lines
2.4 KiB
XML
<?xml version="1.0" encoding="Windows-1252"?>
|
|
<VisualStudioPropertySheet
|
|
ProjectType="Visual C++"
|
|
Version="8.00"
|
|
Name="clutterbuilddefinesprops"
|
|
OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin"
|
|
IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)"
|
|
InheritedPropertySheets=".\clutter-version-paths.vsprops"
|
|
>
|
|
<Tool
|
|
Name="VCCLCompilerTool"
|
|
AdditionalIncludeDirectories="..\..\..;..\..\..\clutter;$(GlibEtcInstallRoot)\include\cogl-1.0;$(GlibEtcInstallRoot)\include\pango-1.0;$(GlibEtcInstallRoot)\include\atk-1.0;$(GlibEtcInstallRoot)\include\json-glib-1.0;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(GlibEtcInstallRoot)\include\cairo;$(GlibEtcInstallRoot)\include"
|
|
PreprocessorDefinitions="G_DISABLE_SINGLE_INCLUDES"
|
|
ForcedIncludeFiles="msvc_recommended_pragmas.h"
|
|
/>
|
|
<Tool
|
|
Name="VCLinkerTool"
|
|
AdditionalDependencies="cogl-pango-1.0.lib cogl-path-1.0.lib cogl-1.0.lib glib-2.0.lib gobject-2.0.lib"
|
|
AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
|
|
/>
|
|
<UserMacro
|
|
Name="BaseWinBuildDef"
|
|
Value="_WIN32_WINNT=0x0501"
|
|
/>
|
|
<UserMacro
|
|
Name="ClutterBuildDefines"
|
|
Value="$(BaseWinBuildDef);G_LOG_DOMAIN=\"Clutter\";CLUTTER_LOCALEDIR=\"../share/locale\";CLUTTER_SYSCONFDIR=\"../etc\";COGL_DISABLE_DEPRECATION_WARNINGS"
|
|
/>
|
|
<UserMacro
|
|
Name="ClutterDisableDeprecationWarnings"
|
|
Value="CLUTTER_DISABLE_DEPRECATION_WARNINGS;GLIB_DISABLE_DEPRECATION_WARNINGS"
|
|
/>
|
|
<UserMacro
|
|
Name="AvoidSDLMain"
|
|
Value="SDL_MAIN_HANDLED"
|
|
/>
|
|
<UserMacro
|
|
Name="CallyTestDefs"
|
|
Value="$(BaseWinBuildDef);PREFIXDIR=\"/some/dummy/dir\";$(ClutterDisableDeprecationWarnings);$(AvoidSDLMain)"
|
|
/>
|
|
<UserMacro
|
|
Name="TestProgDef"
|
|
Value="$(BaseWinBuildDef);TESTS_DATADIR=\"../share/clutter-$(ApiVersion)/data\";TESTS_DATA_DIR=\"../share/clutter-$(ApiVersion)/data\";$(AvoidSDLMain)"
|
|
/>
|
|
<UserMacro
|
|
Name="TestPerfProgDef"
|
|
Value="$(TestProgDef);$(ClutterDisableDeprecationWarnings)"
|
|
/>
|
|
<UserMacro
|
|
Name="LibBuildDefines"
|
|
Value="HAVE_CONFIG_H;CLUTTER_COMPILATION;COGL_ENABLE_EXPERIMENTAL_API;DLL_EXPORT"
|
|
/>
|
|
<UserMacro
|
|
Name="DebugLibBuildDefines"
|
|
Value="$(LibBuildDefines);_DEBUG;CLUTTER_ENABLE_DEBUG"
|
|
/>
|
|
<UserMacro
|
|
Name="ReleaseLibBuildDefines"
|
|
Value="$(LibBuildDefines);G_DISABLE_ASSERT;G_DISABLE_CHECKS;G_DISABLE_CAST_CHECKS"
|
|
/>
|
|
</VisualStudioPropertySheet>
|