[gstreamermm] msvc: switch to dynamic library



commit f0c4b26fba685f77db756feaa982735d02a3c72f
Author: Szymon Sobik <szymon sobik flytronic pl>
Date:   Fri Aug 29 09:21:03 2014 +0200

    msvc: switch to dynamic library
    
    made similar to glibmm, with the gendef program
    
            * .gitignore: added gendef's automatically generated project files
            * MSVC_2010/gendef/gendef.cc:
            * MSVC_2010/gendef/gendef.vcxproj:
            * MSVC_2010/gendef/gendef.vcxproj.filters: symbols generator added
              (just like in gtkmm project)
            * MSVC_2010/gstreamermm.sln: added gendef's project to a main
              solution
            * MSVC_2010/gstreamermm/gstreamermm.vcxproj: switched build to
              dynamic library, ran gendef program before build

 .gitignore                                |    3 +
 MSVC_2010/gendef/gendef.cc                |   94 +++++++++++++++
 MSVC_2010/gendef/gendef.vcxproj           |  184 +++++++++++++++++++++++++++++
 MSVC_2010/gendef/gendef.vcxproj.filters   |   22 ++++
 MSVC_2010/gstreamermm.sln                 |   13 ++
 MSVC_2010/gstreamermm/gstreamermm.vcxproj |   32 ++++-
 6 files changed, 342 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 42f5dd9..7c2c8eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -534,5 +534,8 @@ build/missing
 gstreamermm.sdf
 gstreamermm.suo
 gstreamermm.vcxproj.user
+gendef.vcxproj.user
 /MSVC_2010/gstreamermm/Win32/*
 /MSVC_2010/gstreamermm/x64/*
+/MSVC_2010/gendef/Win32/*
+/MSVC_2010/gendef/x64/*
diff --git a/MSVC_2010/gendef/gendef.cc b/MSVC_2010/gendef/gendef.cc
new file mode 100644
index 0000000..cf66560
--- /dev/null
+++ b/MSVC_2010/gendef/gendef.cc
@@ -0,0 +1,94 @@
+/*
+ *  MICO --- an Open Source CORBA implementation
+ *  Copyright (c) 2003 Harald B�hme
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *  For more information, visit the MICO Home Page at
+ *  http://www.mico.org/
+ */
+
+/* Modified by Cedric Gustin <cedric gustin gmail com> on 2006/01/13 :
+ * Redirect the output of dumpbin to dumpbin.out instead of reading the
+ * output stream of popen, as it fails with Visual Studio 2005 in 
+ * pre-link build events.
+ */
+
+#include <iostream>
+#include <fstream>
+#include <stdio.h>
+
+using namespace std;
+
+int main(int argc,char** argv)
+{
+  if (argc < 4) {
+         cerr << "Usage: " << argv[0] << " <def-file-name> <dll-base-name> <obj-file> ...." << endl;
+         return 2;
+  }
+
+  // CG : Explicitly redirect stdout to dumpbin.out.
+  string dumpbin = "dumpbin /SYMBOLS /OUT:dumpbin.out";
+  int i = 3;
+
+  for(;i<argc;) {
+         dumpbin += " ";
+         dumpbin += argv[i++];
+  }
+
+  FILE * dump; 
+  
+  if( (dump = _popen(dumpbin.c_str(),"r")) == NULL ) {
+         cerr << "could not popen dumpbin" << endl;
+         return 3;
+  }
+
+  // CG : Wait for the dumpbin process to finish and open dumpbin.out.
+  _pclose(dump);
+  dump=fopen("dumpbin.out","r");
+
+  ofstream def_file(argv[1]);
+
+  def_file << "LIBRARY " << argv[2] << endl;
+  def_file << "EXPORTS" << endl;
+
+  i=0;
+  while( !feof(dump)) {
+         char buf [65000]; 
+         
+         if( fgets( buf, 64999, dump ) != NULL ) {
+                 if(!strstr(buf," UNDEF ") && strstr(buf," External ")) {
+                         char *s = strchr(buf,'|') + 1;
+                         while(*s == ' ' || *s == '\t') s++;
+                         char *e=s;
+                         while(*e != ' ' && *e != '\t' && *e != '\0' && *e!= '\n') e++;
+                         *e = '\0';
+                       
+                       if(strchr(s,'?')==0 && s[0]=='_' && strchr(s,'@') == 0 )//this is a C export type: 
_fct -> fct
+                                 def_file << "    " << (s+1) << endl;                  
+                       else
+                       if(strchr(s,'?')!=0 && strncmp(s,"??_G",4)!=0 && strncmp(s,"??_E",4)!=0) {
+                                 def_file << "    " << s << endl;
+                         }
+                 }
+         }
+  }
+
+  // CG : Close dumpbin.out and delete it.
+  fclose(dump);
+  remove("dumpbin.out");
+
+  cout << dumpbin.c_str() << endl;
+}
diff --git a/MSVC_2010/gendef/gendef.vcxproj b/MSVC_2010/gendef/gendef.vcxproj
new file mode 100644
index 0000000..1a433f6
--- /dev/null
+++ b/MSVC_2010/gendef/gendef.vcxproj
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="utf-8"?><Project DefaultTargets="Build" ToolsVersion="4.0" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{07324745-C9BE-4D65-B08A-9C88188C0C28}</ProjectGuid>
+    <Keyword>Win32Proj</Keyword>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props"/>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/>
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+    <Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" 
Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props"/>
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+    <Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" 
Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props"/>
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+    <Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" 
Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props"/>
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+    <Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" 
Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"/>
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props"/>
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros"/>
+  <PropertyGroup>
+    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
+    <OutDir 
Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</OutDir>
+    <IntDir 
Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MinimalRebuild>true</MinimalRebuild>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+    
<AdditionalIncludeDirectories>;f:/s.sobik/compile_roots/win32-msvc/include/gtk-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/gtk-2.0/include;f:/s.sobik/compile_roots/win32-msvc/include/pango-1.0;f:/s.sobik/compile_roots/win32-msvc/include/gdk-pixbuf-2.0;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/cairo;f:/s.sobik/compile_roots/win32-msvc/include/pixman-1;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/freetype2;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/harfbuzz;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/atk-1.0;f:/s.sobik/compile_roots/win32-msvc/include/glib-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/glib-2.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/pangomm-1.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/pangomm-1.4/include;h:/tmp-build/_split_stage/c085cd523ce2/includ
 
e/cairomm-1.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/cairomm-1.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/giomm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/giomm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/atkmm-1.6;h:/tmp-build/_split_stage/c085cd523ce2/include/glibmm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/glibmm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/sigc++-2.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/sigc++-2.0/include
+</AdditionalIncludeDirectories></ClCompile>
+    <Link>
+      <OutputFile>$(OutDir)gendef.exe</OutputFile>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>$(OutDir)gendef.pdb</ProgramDatabaseFile>
+      <SubSystem>Console</SubSystem>
+      <RandomizedBaseAddress>false</RandomizedBaseAddress>
+      <DataExecutionPrevention>
+      </DataExecutionPrevention>
+      <TargetMachine>MachineX86</TargetMachine>
+    
<AdditionalLibraryDirectories>;f:/s.sobik/compile_roots/win32-msvc/lib;h:/tmp-build/_split_stage/c085cd523ce2/lib
+</AdditionalLibraryDirectories></Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <ClCompile>
+      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+    
<AdditionalIncludeDirectories>;f:/s.sobik/compile_roots/win32-msvc/include/gtk-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/gtk-2.0/include;f:/s.sobik/compile_roots/win32-msvc/include/pango-1.0;f:/s.sobik/compile_roots/win32-msvc/include/gdk-pixbuf-2.0;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/cairo;f:/s.sobik/compile_roots/win32-msvc/include/pixman-1;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/freetype2;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/harfbuzz;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/atk-1.0;f:/s.sobik/compile_roots/win32-msvc/include/glib-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/glib-2.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/pangomm-1.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/pangomm-1.4/include;h:/tmp-build/_split_stage/c085cd523ce2/includ
 
e/cairomm-1.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/cairomm-1.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/giomm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/giomm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/atkmm-1.6;h:/tmp-build/_split_stage/c085cd523ce2/include/glibmm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/glibmm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/sigc++-2.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/sigc++-2.0/include
+</AdditionalIncludeDirectories></ClCompile>
+    <Link>
+      <OutputFile>$(OutDir)gendef.exe</OutputFile>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <SubSystem>Console</SubSystem>
+      <OptimizeReferences>true</OptimizeReferences>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <RandomizedBaseAddress>false</RandomizedBaseAddress>
+      <DataExecutionPrevention>
+      </DataExecutionPrevention>
+      <TargetMachine>MachineX86</TargetMachine>
+    
<AdditionalLibraryDirectories>;f:/s.sobik/compile_roots/win32-msvc/lib;h:/tmp-build/_split_stage/c085cd523ce2/lib
+</AdditionalLibraryDirectories></Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Midl>
+      <TargetEnvironment>X64</TargetEnvironment>
+    </Midl>
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MinimalRebuild>true</MinimalRebuild>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+    
<AdditionalIncludeDirectories>;f:/s.sobik/compile_roots/win32-msvc/include/gtk-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/gtk-2.0/include;f:/s.sobik/compile_roots/win32-msvc/include/pango-1.0;f:/s.sobik/compile_roots/win32-msvc/include/gdk-pixbuf-2.0;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/cairo;f:/s.sobik/compile_roots/win32-msvc/include/pixman-1;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/freetype2;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/harfbuzz;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/atk-1.0;f:/s.sobik/compile_roots/win32-msvc/include/glib-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/glib-2.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/pangomm-1.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/pangomm-1.4/include;h:/tmp-build/_split_stage/c085cd523ce2/includ
 
e/cairomm-1.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/cairomm-1.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/giomm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/giomm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/atkmm-1.6;h:/tmp-build/_split_stage/c085cd523ce2/include/glibmm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/glibmm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/sigc++-2.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/sigc++-2.0/include
+</AdditionalIncludeDirectories></ClCompile>
+    <Link>
+      <OutputFile>$(OutDir)gendef.exe</OutputFile>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>$(OutDir)gendef.pdb</ProgramDatabaseFile>
+      <SubSystem>Console</SubSystem>
+      <RandomizedBaseAddress>false</RandomizedBaseAddress>
+      <DataExecutionPrevention>
+      </DataExecutionPrevention>
+      <TargetMachine>MachineX64</TargetMachine>
+    
<AdditionalLibraryDirectories>;f:/s.sobik/compile_roots/win32-msvc/lib;h:/tmp-build/_split_stage/c085cd523ce2/lib
+</AdditionalLibraryDirectories></Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Midl>
+      <TargetEnvironment>X64</TargetEnvironment>
+    </Midl>
+    <ClCompile>
+      <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <WarningLevel>Level3</WarningLevel>
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+    
<AdditionalIncludeDirectories>;f:/s.sobik/compile_roots/win32-msvc/include/gtk-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/gtk-2.0/include;f:/s.sobik/compile_roots/win32-msvc/include/pango-1.0;f:/s.sobik/compile_roots/win32-msvc/include/gdk-pixbuf-2.0;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/cairo;f:/s.sobik/compile_roots/win32-msvc/include/pixman-1;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/freetype2;f:/s.sobik/compile_roots/win32-msvc/include;f:/s.sobik/compile_roots/win32-msvc/include/harfbuzz;f:/s.sobik/compile_roots/win32-msvc/include/libpng16;f:/s.sobik/compile_roots/win32-msvc/include/atk-1.0;f:/s.sobik/compile_roots/win32-msvc/include/glib-2.0;f:/s.sobik/compile_roots/win32-msvc/lib/glib-2.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/pangomm-1.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/pangomm-1.4/include;h:/tmp-build/_split_stage/c085cd523ce2/includ
 
e/cairomm-1.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/cairomm-1.0/include;h:/tmp-build/_split_stage/c085cd523ce2/include/giomm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/giomm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/atkmm-1.6;h:/tmp-build/_split_stage/c085cd523ce2/include/glibmm-2.4;h:/tmp-build/_split_stage/c085cd523ce2/lib/glibmm-2.4/include;h:/tmp-build/_split_stage/c085cd523ce2/include/sigc++-2.0;h:/tmp-build/_split_stage/c085cd523ce2/lib/sigc++-2.0/include
+</AdditionalIncludeDirectories></ClCompile>
+    <Link>
+      <OutputFile>$(OutDir)gendef.exe</OutputFile>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <SubSystem>Console</SubSystem>
+      <OptimizeReferences>true</OptimizeReferences>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <RandomizedBaseAddress>false</RandomizedBaseAddress>
+      <DataExecutionPrevention>
+      </DataExecutionPrevention>
+      <TargetMachine>MachineX64</TargetMachine>
+    
<AdditionalLibraryDirectories>;f:/s.sobik/compile_roots/win32-msvc/lib;h:/tmp-build/_split_stage/c085cd523ce2/lib
+</AdditionalLibraryDirectories></Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ClCompile Include="gendef.cc"/>
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets"/>
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/MSVC_2010/gendef/gendef.vcxproj.filters b/MSVC_2010/gendef/gendef.vcxproj.filters
new file mode 100644
index 0000000..ec3f611
--- /dev/null
+++ b/MSVC_2010/gendef/gendef.vcxproj.filters
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <ItemGroup>
+    <Filter Include="Source Files">
+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+      <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+    </Filter>
+    <Filter Include="Header Files">
+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
+    </Filter>
+    <Filter Include="Resource Files">
+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="gendef.cc">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/MSVC_2010/gstreamermm.sln b/MSVC_2010/gstreamermm.sln
index bf78786..d6d6fc7 100644
--- a/MSVC_2010/gstreamermm.sln
+++ b/MSVC_2010/gstreamermm.sln
@@ -2,6 +2,11 @@
 Microsoft Visual Studio Solution File, Format Version 11.00
 # Visual Studio 2010
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gstreamermm-1.0", "gstreamermm\gstreamermm.vcxproj", 
"{491FE46F-2D7B-47E5-9929-96D348FAF507}"
+       ProjectSection(ProjectDependencies) = postProject
+               {07324745-C9BE-4D65-B08A-9C88188C0C28} = {07324745-C9BE-4D65-B08A-9C88188C0C28}
+       EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gendef", "gendef\gendef.vcxproj", 
"{07324745-C9BE-4D65-B08A-9C88188C0C28}"
 EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -19,6 +24,14 @@ Global
                {491FE46F-2D7B-47E5-9929-96D348FAF507}.Release|Win32.Build.0 = Release|Win32
                {491FE46F-2D7B-47E5-9929-96D348FAF507}.Release|x64.ActiveCfg = Release|x64
                {491FE46F-2D7B-47E5-9929-96D348FAF507}.Release|x64.Build.0 = Release|x64
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Debug|Win32.ActiveCfg = Debug|Win32
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Debug|Win32.Build.0 = Debug|Win32
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Debug|x64.ActiveCfg = Debug|x64
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Debug|x64.Build.0 = Debug|x64
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Release|Win32.ActiveCfg = Release|Win32
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Release|Win32.Build.0 = Release|Win32
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Release|x64.ActiveCfg = Release|x64
+               {07324745-C9BE-4D65-B08A-9C88188C0C28}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
diff --git a/MSVC_2010/gstreamermm/gstreamermm.vcxproj b/MSVC_2010/gstreamermm/gstreamermm.vcxproj
index 56cb82b..cbfa84e 100644
--- a/MSVC_2010/gstreamermm/gstreamermm.vcxproj
+++ b/MSVC_2010/gstreamermm/gstreamermm.vcxproj
@@ -287,25 +287,25 @@
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
     <CharacterSet>MultiByte</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>true</UseDebugLibraries>
     <CharacterSet>MultiByte</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <WholeProgramOptimization>false</WholeProgramOptimization>
     <CharacterSet>MultiByte</CharacterSet>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>StaticLibrary</ConfigurationType>
+    <ConfigurationType>DynamicLibrary</ConfigurationType>
     <UseDebugLibraries>false</UseDebugLibraries>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <WholeProgramOptimization>false</WholeProgramOptimization>
     <CharacterSet>MultiByte</CharacterSet>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
@@ -357,9 +357,14 @@
       
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       
<AdditionalIncludeDirectories>..\..\gstreamer;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
+    <PreLinkEvent>
+      <Message>Generate gtkmm def file</Message>
+      <Command>$(SolutionDir)gendef\$(Platform)\$(Configuration)\gendef 
$(Platform)\$(Configuration)\$(ProjectName).def $(TargetFileName) $(IntDir)*.obj</Command>
+    </PreLinkEvent>
     <Link>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ModuleDefinitionFile>$(Platform)\$(Configuration)\$(ProjectName).def</ModuleDefinitionFile>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -371,9 +376,14 @@
       
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       
<AdditionalIncludeDirectories>..\..\gstreamer;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
+    <PreLinkEvent>
+      <Message>Generate gtkmm def file</Message>
+      <Command>$(SolutionDir)gendef\$(Platform)\$(Configuration)\gendef 
$(Platform)\$(Configuration)\$(ProjectName).def $(TargetFileName) $(IntDir)*.obj</Command>
+    </PreLinkEvent>
     <Link>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ModuleDefinitionFile>$(Platform)\$(Configuration)\$(ProjectName).def</ModuleDefinitionFile>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -387,11 +397,16 @@
       
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       
<AdditionalIncludeDirectories>..\..\gstreamer;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
+    <PreLinkEvent>
+      <Message>Generate gtkmm def file</Message>
+      <Command>$(SolutionDir)gendef\$(Platform)\$(Configuration)\gendef 
$(Platform)\$(Configuration)\$(ProjectName).def $(TargetFileName) $(IntDir)*.obj</Command>
+    </PreLinkEvent>
     <Link>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <OptimizeReferences>true</OptimizeReferences>
+      <ModuleDefinitionFile>$(Platform)\$(Configuration)\$(ProjectName).def</ModuleDefinitionFile>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -405,11 +420,16 @@
       
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       
<AdditionalIncludeDirectories>..\..\gstreamer;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
+    <PreLinkEvent>
+      <Message>Generate gtkmm def file</Message>
+      <Command>$(SolutionDir)gendef\$(Platform)\$(Configuration)\gendef 
$(Platform)\$(Configuration)\$(ProjectName).def $(TargetFileName) $(IntDir)*.obj</Command>
+    </PreLinkEvent>
     <Link>
       <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <OptimizeReferences>true</OptimizeReferences>
+      <ModuleDefinitionFile>$(Platform)\$(Configuration)\$(ProjectName).def</ModuleDefinitionFile>
     </Link>
   </ItemDefinitionGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]