summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-06-22 10:35:33 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-06-22 10:35:33 +0800
commitd6fff9c1424fc21e6504a93a1004a95d717a3703 (patch)
treef4fa25a785520e3aba4145d5f84eeea329a29bd5
parent51e51fd15c4b8d52b96447658ed7d3636c91add3 (diff)
downloadpango-d6fff9c1424fc21e6504a93a1004a95d717a3703.tar.gz
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.
-rw-r--r--build/win32/vs10/pango-build-defines.props6
-rw-r--r--build/win32/vs10/pangocairo.vcxprojin16
-rw-r--r--build/win32/vs9/pango-build-defines.vsprops4
-rw-r--r--build/win32/vs9/pangocairo.vcprojin16
-rw-r--r--config.h.win32.in4
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 f7756cb3..f8cc5a4a 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 67f869c0..d756f2dd 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 46325ee0..8ecd4336 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=\&quot;Pango\&quot;;PANGO_ENABLE_BACKEND;PANGO_ENABLE_ENGINE;SYSCONFDIR=\&quot;$(PangoDummyPrefix)/etc\&quot;;LIBDIR=\&quot;$(PangoDummyPrefix)/lib\&quot;"
/>
<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 59eba231..8f014bb8 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 39259199..15dadbab 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