]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11303: [Build-System] Migrate Visual C++ components redistribution using merge...
authorAndrey Volk <andywolk@gmail.com>
Wed, 1 Aug 2018 15:49:24 +0000 (18:49 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 1 Aug 2018 15:49:24 +0000 (18:49 +0300)
libs/win32/sofia/libsofia_sip_ua_static.2017.vcxproj
w32/Setup/Product.2017.wxs
w32/Setup/Setup.2017.wixproj

index 40bead239f28eed3e5cbe17f3dc70921a21a4d96..adc8d9fd5e40e1e8fabdb0d32204d3179eb4d4fa 100644 (file)
@@ -511,10 +511,6 @@ if not exist "$(ProjectDir)$(IntDir)\auth_client.obj" "autogen.cmd"
     <ClInclude Include="..\..\sofia-sip\libsofia-sip-ua\soa\sofia-sip\soa_tag.h" />
   </ItemGroup>
   <ItemGroup>
-    <ProjectReference Include="..\Download PTHREAD.2017.vcxproj">
-      <Project>{8b3b4c4c-13c2-446c-beb0-f412cc2cfb9a}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
     <ProjectReference Include="..\pthread\pthread.2017.vcxproj">
       <Project>{df018947-0fff-4eb3-bdee-441dc81da7a4}</Project>
       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
index bbda12f1c827f0820208d180fa7692c99094da4a..9290112d5ad8c8e2ab3ec93d605bb935ac41fda4 100644 (file)
                                        <!-- </Component> -->
                                        <?if $(var.Platform) != x64 ?>
                                                <Merge Id="CrtFiles_x86"
-                                               SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x86.msm"
+                                               SourceFile="$(var.MergeModules)\Microsoft_VC$(var.VCVer)_$(var.CRT_Configuration)CRT_x86.msm"
                                                DiskId="1"
                                                Language="1033"/>
                                        <?endif ?>
                                        <?if $(var.Platform) = x64 ?>
                                                <Merge Id="CrtFiles_x64"
-                                               SourceFile="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_$(var.CRT_Configuration)CRT_x64.msm"
+                                               SourceFile="$(var.MergeModules)\Microsoft_VC$(var.VCVer)_$(var.CRT_Configuration)CRT_x64.msm"
                                                DiskId="1"
                                                Language="1033"/>
                                        <?endif ?>
index ec06ec997f1ae1cfe2387be94a960c851936297b..6e608b82fce828053676060a4f42904268a747bf 100644 (file)
@@ -4,6 +4,7 @@
     <GitSkipCache>true</GitSkipCache>
   </PropertyGroup>
   <ImportGroup Label="PropertySheets">
+    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Common.props" />
     <Import Project="..\sound_tools.props" />
     <Import Project="GitInfo\GitInfo.targets" />
   </ImportGroup>
     <CreateProperty Condition="$(FullVersion) != ''" Value="$(SolutionDir)$(UserFriendlyPlatform)\$(OutputName)-$(FullVersion)$(Revision)$(SnapshotName)-$(UserFriendlyPlatform)-$(Configuration).msi">
       <Output TaskParameter="Value" PropertyName="DestinationFileName" />
     </CreateProperty>
-    <CreateProperty Value="FreeSWITCHSoundFilesDir=$(SoundsDir);$(DefineConstants)">
+    <CreateProperty Value="$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64@Major).$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64@Minor).$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64@Bld)">
+      <Output TaskParameter="Value" PropertyName="VCLibVersion" />
+    </CreateProperty>
+    <CreateProperty Value="$(VSInstallDir)\VC\Redist\MSVC\$(VCLibVersion)\MergeModules\">
+      <Output TaskParameter="Value" PropertyName="MergeModules" />
+    </CreateProperty>
+    <CreateProperty Value="FreeSWITCHSoundFilesDir=$(SoundsDir);MergeModules=$(MergeModules);VCVer=$(PlatformToolsetVersion);$(DefineConstants)">
       <Output TaskParameter="Value" PropertyName="DefineConstants" />
     </CreateProperty>
+    <Message Importance="High" Text="Visual C++ lib-version: $(VCLibVersion)" />
+    <Message Importance="High" Text="PlatformToolsetVersion: $(PlatformToolsetVersion)" />
+    <Message Importance="High" Text="VSInstallDir: $(VSInstallDir)" />
     <Message Importance="High" Text="SoundsDir: $(SoundsDir)" />
     <Message Importance="High" Text="DefineConstants: $(DefineConstants)" />
   </Target>