Fix CMake build.
[WebKit-https.git] / WebKitLibraries / win / tools / vsprops / GStreamerCommon.props
index 4c68e66..198cb12 100644 (file)
@@ -1,8 +1,24 @@
-<?xml version="1.0" encoding="utf-8"?>\r
+<?xml version="1.0" encoding="utf-8"?>\r
 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <ImportGroup Label="PropertySheets">\r
+    <Import Project="GStreamer32.props" Condition="$(Platform)=='Win32'" />\r
+    <Import Project="GStreamer64.props" Condition="$(Platform)=='x64'" />\r
+  </ImportGroup>\r
+  <PropertyGroup Label="UserMacros">\r
+    <ENABLE_GSTREAMER_WINCAIRO></ENABLE_GSTREAMER_WINCAIRO>\r
+  </PropertyGroup>\r
   <ItemDefinitionGroup>\r
-    <Link>\r
-      <AdditionalDependencies>gstpbutils-1.0.lib;gstaudio-1.0.lib;gstbase-1.0.lib;gstvideo-1.0.lib;gobject-2.0.lib;gstapp-1.0.lib;glib-2.0.lib;gstreamer-1.0.lib;gsttag-1.0.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
+    <ClCompile>\r
+      <PreprocessorDefinitions>$(ENABLE_GSTREAMER_WINCAIRO);%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+    </ClCompile>\r
+    <Link Condition="$(ENABLE_GSTREAMER_WINCAIRO)=='ENABLE_GSTREAMER_WINCAIRO'">\r
+      <AdditionalDependencies>gstpbutils-1.0.lib;gstaudio-1.0.lib;gstbase-1.0.lib;gstvideo-1.0.lib;gobject-2.0.lib;gstapp-1.0.lib;glib-2.0.lib;gstreamer-1.0.lib;gsttag-1.0.lib;gio-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
     </Link>\r
   </ItemDefinitionGroup>\r
+  <ItemGroup>\r
+    <BuildMacro Include="ENABLE_GSTREAMER_WINCAIRO">\r
+      <Value>$(ENABLE_GSTREAMER_WINCAIRO)</Value>\r
+      <EnvironmentVariable>true</EnvironmentVariable>\r
+    </BuildMacro>\r
+  </ItemGroup>\r
 </Project>
\ No newline at end of file