[pango] Visual Studio builds: Clean up PangoCairo build files
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Visual Studio builds: Clean up PangoCairo build files
- Date: Wed, 22 Jun 2016 02:38:10 +0000 (UTC)
commit d6fff9c1424fc21e6504a93a1004a95d717a3703
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jun 22 10:35:33 2016 +0800
Visual Studio builds: Clean up PangoCairo build files
Define HAVE_CAIRO_FREETYPE in the property sheets instead of disabling it
via conditional compilation, which makes things a bit neater.
build/win32/vs10/pango-build-defines.props | 6 +++---
build/win32/vs10/pangocairo.vcxprojin | 16 ++++++++--------
build/win32/vs9/pango-build-defines.vsprops | 4 ++--
build/win32/vs9/pangocairo.vcprojin | 16 ++++++++--------
config.h.win32.in | 4 +---
5 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/build/win32/vs10/pango-build-defines.props b/build/win32/vs10/pango-build-defines.props
index f7756cb..f8cc5a4 100644
--- a/build/win32/vs10/pango-build-defines.props
+++ b/build/win32/vs10/pango-build-defines.props
@@ -7,7 +7,7 @@
<PangoBinaryVersion>1.8.0</PangoBinaryVersion>
<PangoDummyPrefix>/dummy</PangoDummyPrefix>
<PangoDefines>G_LOG_DOMAIN="Pango";PANGO_ENABLE_BACKEND;PANGO_ENABLE_ENGINE;SYSCONFDIR="$(PangoDummyPrefix)/etc";LIBDIR="$(PangoDummyPrefix)/lib"</PangoDefines>
- <NoFCDef>PANGO_VISUALC_NO_FC</NoFCDef>
+ <CairoFTDefines>HAVE_CAIRO_FREETYPE=1</CairoFTDefines>
<PangoFT2Incs>..;$(GlibEtcInstallRoot)\include\harfbuzz</PangoFT2Incs>
<PangoFT2Libs>fontconfig.lib;freetype.lib;harfbuzz.lib</PangoFT2Libs>
<PangoCairoIncs>$(GlibEtcInstallRoot)\include\cairo</PangoCairoIncs>
@@ -41,8 +41,8 @@
<BuildMacro Include="PangoDefines">
<Value>$(PangoDefines)</Value>
</BuildMacro>
- <BuildMacro Include="NoFCDef">
- <Value>$(NoFCDef)</Value>
+ <BuildMacro Include="CairoFTDefines">
+ <Value>$(CairoFTDefines)</Value>
</BuildMacro>
<BuildMacro Include="PangoFT2Incs">
<Value>$(PangoFT2Incs)</Value>
diff --git a/build/win32/vs10/pangocairo.vcxprojin b/build/win32/vs10/pangocairo.vcxprojin
index 67f869c..d756f2d 100644
--- a/build/win32/vs10/pangocairo.vcxprojin
+++ b/build/win32/vs10/pangocairo.vcxprojin
@@ -138,7 +138,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(PangoCairoIncs)%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-
<PreprocessorDefinitions>_DEBUG;$(PangoDefines);$(NoFCDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_DEBUG;$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@@ -161,7 +161,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(PangoCairoIncs)%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-
<PreprocessorDefinitions>$(PangoDefines);$(NoFCDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@@ -185,7 +185,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(PangoCairoIncs)%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-
<PreprocessorDefinitions>_DEBUG;$(PangoDefines);$(NoFCDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_DEBUG;$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@@ -208,7 +208,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(PangoCairoIncs)%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-
<PreprocessorDefinitions>$(PangoDefines);$(NoFCDef);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@@ -231,7 +231,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(PangoCairoIncs);$(PangoFT2Incs);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_DEBUG;$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+
<PreprocessorDefinitions>_DEBUG;$(CairoFTDefines);$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@@ -253,7 +253,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_FC|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>$(PangoCairoIncs);$(PangoFT2Incs);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+
<PreprocessorDefinitions>$(CairoFTDefines);$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
@@ -276,7 +276,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>$(PangoCairoIncs);$(PangoFT2Incs);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>_DEBUG;$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+
<PreprocessorDefinitions>_DEBUG;$(CairoFTDefines);$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
@@ -298,7 +298,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_FC|x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(PangoCairoIncs);$(PangoFT2Incs);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <PreprocessorDefinitions>$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+
<PreprocessorDefinitions>$(CairoFTDefines);$(PangoDefines);%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
diff --git a/build/win32/vs9/pango-build-defines.vsprops b/build/win32/vs9/pango-build-defines.vsprops
index 46325ee..8ecd433 100644
--- a/build/win32/vs9/pango-build-defines.vsprops
+++ b/build/win32/vs9/pango-build-defines.vsprops
@@ -32,8 +32,8 @@
Value="G_LOG_DOMAIN=\"Pango\";PANGO_ENABLE_BACKEND;PANGO_ENABLE_ENGINE;SYSCONFDIR=\"$(PangoDummyPrefix)/etc\";LIBDIR=\"$(PangoDummyPrefix)/lib\""
/>
<UserMacro
- Name="NoFCDef"
- Value="PANGO_VISUALC_NO_FC"
+ Name="CairoFTDefines"
+ Value="HAVE_CAIRO_FREETYPE=1"
/>
<UserMacro
Name="PangoFT2Incs"
diff --git a/build/win32/vs9/pangocairo.vcprojin b/build/win32/vs9/pangocairo.vcprojin
index 59eba23..8f014bb 100644
--- a/build/win32/vs9/pangocairo.vcprojin
+++ b/build/win32/vs9/pangocairo.vcprojin
@@ -30,7 +30,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(PangoCairoIncs);$(PangoFT2Incs)"
- PreprocessorDefinitions="_DEBUG;$(PangoDefines)"
+ PreprocessorDefinitions="_DEBUG;$(PangoDefines);$(CairoFTDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -63,7 +63,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(PangoCairoIncs)"
- PreprocessorDefinitions="_DEBUG;$(PangoDefines);$(NoFCDef)"
+ PreprocessorDefinitions="_DEBUG;$(PangoDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -96,7 +96,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(PangoCairoIncs);$(PangoFT2Incs)"
- PreprocessorDefinitions="$(PangoDefines)"
+ PreprocessorDefinitions="$(PangoDefines);$(CairoFTDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
@@ -128,7 +128,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(PangoCairoIncs)"
- PreprocessorDefinitions="$(PangoDefines);$(NoFCDef)"
+ PreprocessorDefinitions="$(PangoDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
@@ -159,7 +159,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(PangoCairoIncs);$(PangoFT2Incs)"
- PreprocessorDefinitions="_DEBUG;$(PangoDefines)"
+ PreprocessorDefinitions="_DEBUG;$(PangoDefines);$(CairoFTDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -189,7 +189,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="$(PangoCairoIncs)"
- PreprocessorDefinitions="_DEBUG;$(PangoDefines);$(NoFCDef)"
+ PreprocessorDefinitions="_DEBUG;$(PangoDefines)"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -219,7 +219,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(PangoCairoIncs);$(PangoFT2Incs)"
- PreprocessorDefinitions="$(PangoDefines)"
+ PreprocessorDefinitions="$(PangoDefines);$(CairoFTDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
@@ -248,7 +248,7 @@
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="$(PangoCairoIncs)"
- PreprocessorDefinitions="$(PangoDefines);$(NoFCDef)"
+ PreprocessorDefinitions="$(PangoDefines)"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
diff --git a/config.h.win32.in b/config.h.win32.in
index 3925919..15dadba 100644
--- a/config.h.win32.in
+++ b/config.h.win32.in
@@ -6,9 +6,7 @@
#define HAVE_CAIRO 1
/* Whether Cairo can use FreeType for fonts */
-#ifndef PANGO_VISUALC_NO_FC
-#define HAVE_CAIRO_FREETYPE 1
-#endif
+/* HAVE_CAIRO_FREETYPE */
/* Whether Cairo has PDF support */
#define HAVE_CAIRO_PDF 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]