diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2019-02-05 14:37:40 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2019-02-05 14:37:40 +0100 |
commit | f2b9525671985c98f59026cde58f437eeea8d97e (patch) | |
tree | 64f334d4d88d1ae6b799cba54cbba671204c922c | |
parent | ffeda8bff53d248642b9db532fc7e00d724a4e63 (diff) | |
download | MPC-f2b9525671985c98f59026cde58f437eeea8d97e.tar.gz |
Add support for Visual Studio 2019 using Visual C++ 14.2
-rw-r--r-- | config/pin_base.mpb | 2 | ||||
-rw-r--r-- | config/pintool.mpb | 4 | ||||
-rw-r--r-- | config/winapp.mpb | 2 | ||||
-rw-r--r-- | config/wireshark.mpb | 3 | ||||
-rw-r--r-- | docs/html/MakeProjectCreator.html | 29 | ||||
-rwxr-xr-x | registry.pl | 1 | ||||
-rw-r--r-- | templates/vs2019dll.mpt | 4 | ||||
-rw-r--r-- | templates/vs2019exe.mpt | 4 | ||||
-rw-r--r-- | templates/vs2019lib.mpt | 4 | ||||
-rw-r--r-- | templates/vs2019libexe.mpt | 4 | ||||
-rw-r--r-- | templates/vs2019platforms.mpt | 24 |
11 files changed, 69 insertions, 12 deletions
diff --git a/config/pin_base.mpb b/config/pin_base.mpb index dca15a09..d583d2cb 100644 --- a/config/pin_base.mpb +++ b/config/pin_base.mpb @@ -13,7 +13,7 @@ project { compile_flags += /Oy } - specific (vc10, vc11, vc12, vc14, vs2017) { + specific (vc10, vc11, vc12, vc14, vs2017, vs2019) { runtime_library = MultiThreaded ImageHasSafeExceptionHandlers = false diff --git a/config/pintool.mpb b/config/pintool.mpb index a343f7e4..e6b4bc10 100644 --- a/config/pintool.mpb +++ b/config/pintool.mpb @@ -41,7 +41,7 @@ feature (ia32) { link_options += /ENTRY:Ptrace_DllMainCRTStartup@12 } - specific (vc10, vc11, vc12, vc14, vs2017) { + specific (vc10, vc11, vc12, vc14, vs2017, vs2019) { EntryPointSymbol = Ptrace_DllMainCRTStartup@12 } } @@ -51,7 +51,7 @@ feature (intel64) { link_options += /ENTRY:Ptrace_DllMainCRTStartup } - specific (vc10, vc11, vc12, vc14, vs2017) { + specific (vc10, vc11, vc12, vc14, vs2017, vs2019) { EntryPointSymbol = Ptrace_DllMainCRTStartup } } diff --git a/config/winapp.mpb b/config/winapp.mpb index 0c7a76d5..b87b3d42 100644 --- a/config/winapp.mpb +++ b/config/winapp.mpb @@ -5,7 +5,7 @@ project { } else { subsystem = 2 } - specific(vc10, vc11, vc12, vc14, vs2017) { + specific(vc10, vc11, vc12, vc14, vs2017, vs2019) { subsystem = Windows } } diff --git a/config/wireshark.mpb b/config/wireshark.mpb index 87b07612..0a8c24ef 100644 --- a/config/wireshark.mpb +++ b/config/wireshark.mpb @@ -29,6 +29,9 @@ project : glib { specific(vs2017) { macros += MSC_VER_REQUIRED=1910 } + specific(vs2019) { + macros += MSC_VER_REQUIRED=1920 + } verbatim(nmake, top, 1) { include $(WIRESHARK_SRC)/config.nmake } diff --git a/docs/html/MakeProjectCreator.html b/docs/html/MakeProjectCreator.html index 42589174..e27f5ba6 100644 --- a/docs/html/MakeProjectCreator.html +++ b/docs/html/MakeProjectCreator.html @@ -518,6 +518,18 @@ <tr> <td rowspan="1" colspan="1"> <p class="TblCode"> + <em class="TableCode">vs2019</em> + </p> + </td> + + <td rowspan="1" colspan="1"> + <p class="Tbl-Body">Visual Studio 2019.</p> + </td> + </tr> + + <tr> + <td rowspan="1" colspan="1"> + <p class="TblCode"> <em class="TableCode"> <a href="WB26.html"> wb26 @@ -1825,8 +1837,8 @@ class="XRef">the -workers_port option</a>, "Code">em3</em>, <em class="Code">vc6</em>, <em class= "Code">vc7</em>, <em class="Code">vc71</em>, <em class="Code">vc8</em>, <em class="Code">vc9</em>, <em class="Code">vc10</em>, <em class="Code">vc11</em>, - <em class="Code">vc12</em>, <em class="Code">vc14</em> and - <em class="Code">vs2017</em> project types. If this environment + <em class="Code">vc12</em>, <em class="Code">vc14</em>, + <em class="Code">vs2017</em>, and <em class="Code">vs2019</em> project types. If this environment variable is set, MPC will generate inter-project dependencies for libraries within a single workspace. This is usually not desired since adding these dependencies in a static workspace has the side @@ -1982,7 +1994,7 @@ class="XRef">the -workers_port option</a>, <p class="Code"> exclude(vc6, vc7, vc71, vc8, vc9, - vc10, vc11, vc12, vc14, vs2017, nmake) { + vc10, vc11, vc12, vc14, vs2017, vs2019, nmake) { </p> <p class="Code"> this_directory</p> @@ -2590,7 +2602,8 @@ class="Code">specific</em> clause. <em class="Code">vc8</em>, <em class="Code">vc9</em>, <em class="Code">vc10</em>, <em class="Code">vc11</em>, <em class="Code">vc12</em>, <em class="Code">vc14</em>, - and <em class="Code">vs2017</em> project types. + <em class="Code">vc12</em>, <em class="Code">vc14</em>, + <em class="Code">vs2017</em>, and <em class="Code">vs2019</em> project types. </p> </td> </tr> @@ -3236,8 +3249,8 @@ class="Code">specific</em> clause. "Code">gnuace</em>, <em class="Code">vc6</em>, <em class= "Code">vc7</em>, <em class="Code">vc71</em>, <em class="Code">vc8</em>, <em class="Code">vc9</em>, <em class="Code">vc10</em>, <em class="Code">vc11</em>, - <em class="Code">vc12</em>, <em class="Code">vc14</em>, and - <em class="Code">vs2017</em> project types. + <em class="Code">vc12</em>, <em class="Code">vc14</em>, + <em class="Code">vs2017</em>, and <em class="Code">vs2019</em> project types. </p> <p class="Body"> @@ -8097,7 +8110,7 @@ class="Code">specific</em> clause. 7.10 is return for vc71 and 8.00 is returned for vc8, 9.00 is returned for vc9, 10.00 is returned for vc10, 11.00 is returned for vc11, 12.0 is returned for vc12, - 14.0 is returned for vc14, 14.1 is returned for vs2017. + 14.0 is returned for vc14, 14.1 is returned for vs2017, 14.2 is returned for vs2019. </p> </td> </tr> @@ -8415,7 +8428,7 @@ class="Code">specific</em> clause. <p class="Body"> Certain project types don't support the same input file used by multiple custom types (current examples of - this are vc10, vc11, vc12, vc14, vs2017, cdt6, and cdt7). To accommodate these types, MPC + this are vc10, vc11, vc12, vc14, vs2017, vs2019, cdt6, and cdt7). To accommodate these types, MPC has a capability called "combined custom". With this capability enabled in the specific ProjectCreator, MPC will "fold together" the multiple custom steps so that the target tool (Visual Studio diff --git a/registry.pl b/registry.pl index dba41f43..d221b1bd 100755 --- a/registry.pl +++ b/registry.pl @@ -37,6 +37,7 @@ my %types = ('nmake' => ['NMAKE', 'NMAKE'], 'vc12' => ['SLN 12.0', 'VCPROJ 12.0'], 'vc14' => ['SLN 14.0', 'VCPROJ 14.0'], 'vs2017' => ['SLN 2017', 'PROJ 2017'], + 'vs2019' => ['SLN 2019', 'PROJ 2019'], 'wix' => ['WiX', 'WiX Project'], ); diff --git a/templates/vs2019dll.mpt b/templates/vs2019dll.mpt new file mode 100644 index 00000000..9034a6b2 --- /dev/null +++ b/templates/vs2019dll.mpt @@ -0,0 +1,4 @@ +// -*- MPC -*- +conditional_include "vs2019platforms" +conditional_include "vc1xdll" +conditional_include "user_vs2019dll" diff --git a/templates/vs2019exe.mpt b/templates/vs2019exe.mpt new file mode 100644 index 00000000..17c8b408 --- /dev/null +++ b/templates/vs2019exe.mpt @@ -0,0 +1,4 @@ +// -*- MPC -*- +conditional_include "vs2019platforms" +conditional_include "vc1xexe" +conditional_include "user_vs2019exe" diff --git a/templates/vs2019lib.mpt b/templates/vs2019lib.mpt new file mode 100644 index 00000000..eb550df9 --- /dev/null +++ b/templates/vs2019lib.mpt @@ -0,0 +1,4 @@ +// -*- MPC -*- +conditional_include "vs2019platforms" +conditional_include "vc1xlib" +conditional_include "user_vs2019lib" diff --git a/templates/vs2019libexe.mpt b/templates/vs2019libexe.mpt new file mode 100644 index 00000000..20d63cac --- /dev/null +++ b/templates/vs2019libexe.mpt @@ -0,0 +1,4 @@ +// -*- MPC -*- +conditional_include "vs2019platforms" +conditional_include "vc1xlibexe" +conditional_include "user_vs2019libexe" diff --git a/templates/vs2019platforms.mpt b/templates/vs2019platforms.mpt new file mode 100644 index 00000000..29370e3a --- /dev/null +++ b/templates/vs2019platforms.mpt @@ -0,0 +1,24 @@ +// -*- MPC -*- +// +// Any of these platforms can set using value_template platforms= +// when generating solutions/projects. +// +//platforms = Win32 x64 + +platforms = Win32 x64 +default_platform = Win32 +PlatformToolset = v142 +WindowsTargetPlatformVersion = 10.0.16299.0 + +Win32 { + output_subdir = I386 +} + +x64 { + output_subdir = AMD64 + cpu_defines = _AMD64_ + platform_defines = _WIN64 + TargetMachine = "0" // We let VC++ figure it out for us. + link_options = /machine:AMD64 +} + |