aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mpir/fix-static-include-files.patch
blob: 5ae30734b6563569a366de9f1130bac7b440d9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
diff --git a/build.vc/postbuild.bat b/build.vc/postbuild.bat
index de1ed08..e4ecceb 100644
--- a/build.vc/postbuild.bat
+++ b/build.vc/postbuild.bat
@@ -37,12 +37,10 @@ set bin_dir="..\%extn%\%plat%\%conf%\"
 set hdr_dir="..\%extn%\%plat%\%conf%\"
 
 rem output parametrers for the MPIR tests
-if /i "%filename%" EQU "mpirxx" goto skip 
 echo (set ldir=%loc%)   > output_params.bat
 echo (set libr=%extn%) >> output_params.bat
 echo (set plat=%plat%) >> output_params.bat
 echo (set conf=%conf%) >> output_params.bat
-:skip
 
 echo copying outputs from %tgt_dir% to %bin_dir%
 if not exist %bin_dir% md %bin_dir%
diff --git a/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj b/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
index 3a23f01..1f44b22 100644
--- a/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
+++ b/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
@@ -70,6 +70,11 @@
     <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">mpirxx</TargetName>
   </PropertyGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <PreBuildEvent>
+      <Command>cd ..\..\build.vc
+prebuild gc Win32 15
+      </Command>
+    </PreBuildEvent>
     <ClCompile>
       <AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -82,6 +87,11 @@ postbuild "$(TargetPath)" 15
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <PreBuildEvent>
+      <Command>cd ..\..\build.vc
+prebuild gc Win32 15
+      </Command>
+    </PreBuildEvent>
     <ClCompile>
       <AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -94,6 +104,11 @@ postbuild "$(TargetPath)" 15
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <PreBuildEvent>
+      <Command>cd ..\..\build.vc
+prebuild gc Win32 15
+      </Command>
+    </PreBuildEvent>
     <ClCompile>
       <AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -106,6 +121,11 @@ postbuild "$(TargetPath)" 15
     </PostBuildEvent>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <PreBuildEvent>
+      <Command>cd ..\..\build.vc
+prebuild gc Win32 15
+      </Command>
+    </PreBuildEvent>
     <ClCompile>
       <AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>