@@ -836,11 +836,12 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
836
836
<term><function>MSVSProject</function>()</term>
837
837
<term><replaceable>env</replaceable>.<methodname>MSVSProject</methodname>()</term>
838
838
<listitem><para>
839
- Build a Microsoft Visual C++ project file and solution file.
839
+ Build a &MSVC; project file and solution file.
840
840
</para>
841
841
<para>
842
- Builds a C++ project file based on the
843
- version of Visual Studio (or to be more precise, of MSBuild)
842
+ Builds a &MSVC; project file based on the
843
+ version of Visual Studio (or to be more precise, of
844
+ <application>MSBuild</application>)
844
845
that is configured: either the latest installed version,
845
846
or the version specified by
846
847
&cv-link-MSVC_VERSION; in the current &consenv;.
@@ -852,10 +853,10 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
852
853
Note there are multiple versioning schemes involved in
853
854
the Microsoft compilation environment -
854
855
see the description of &cv-link-MSVC_VERSION; for equivalences.
855
- &SCons; does not know how to construct project files for
856
- other languages (such as <filename>.csproj</filename> for C#,
857
- <filename>.vbproj</filename> for Visual Basic or
858
- <filename>.pyproject</filename> for Python)) .
856
+ Note &SCons; does not know how to construct project files for
857
+ other languages (e.g. <filename>.csproj</filename> for C#,
858
+ <filename>.vbproj</filename> for Visual Basic or
859
+ <filename>.pyproject</filename> for Python).
859
860
</para>
860
861
<para>
861
862
For the <filename>.vcxproj</filename> file, the underlying
@@ -864,15 +865,15 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
864
865
https://learn.microsoft.com/en-us/cpp/build/reference/vcxproj-file-structure</ulink>.
865
866
The generated solution file enables Visual Studio to
866
867
understand the project structure, and allows building it
867
- using MSBuild to call back to &SCons;.
868
+ using <application> MSBuild</application> to call back to &SCons;.
868
869
The project file encodes a toolset version that has been
869
870
selected by &SCons; as described above. Since recent Visual
870
871
Studio versions support multiple concurrent toolsets,
871
872
use &cv-link-MSVC_VERSION; to select the desired one if
872
873
it does not match the &SCons; default.
873
874
The project file also includes entries which describe
874
875
how to call &SCons; to build the project from within Visual Studio
875
- (or from an MSBuild command line).
876
+ (or from an <application> MSBuild</application> command line).
876
877
In some situations &SCons; may generate this incorrectly -
877
878
notably when using the <emphasis>scons-local</emphasis>
878
879
distribution, which is not installed in a way that that
@@ -907,7 +908,8 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
907
908
(for example if you generate files for inclusion by using the
908
909
&f-link-Glob; function, the results should be converted to
909
910
a list of strings before passing them to &b-MSVSProject;).
910
- This is because Visual Studio and MSBuild know nothing about &SCons;
911
+ This is because Visual Studio and
912
+ <application>MSBuild</application> know nothing about &SCons;
911
913
Node types.
912
914
Each of the filename lists are individually optional, but at
913
915
least one list must be specified for the resulting project file to
@@ -1032,7 +1034,7 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
1032
1034
The name of the file that Visual Studio 7 and
1033
1035
later will run and debug. This appears as the
1034
1036
value of the <parameter>Output</parameter> field in the
1035
- resulting Visual C++ project file. If this is not
1037
+ resulting &MSVC; project file. If this is not
1036
1038
specified, the default is the same as the specified
1037
1039
<parameter>buildtarget</parameter> value.
1038
1040
</para>
@@ -1051,7 +1053,7 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
1051
1053
than the directory of the &SConstruct; file, users will not be able to
1052
1054
double-click on the file name in compilation error messages
1053
1055
displayed in the Visual Studio console output window. This can
1054
- be remedied by adding the Visual C/C++ <option>/FC</option>
1056
+ be remedied by adding the &MSVC; <option>/FC</option>
1055
1057
compiler option to the &cv-link-CCFLAGS; variable so that
1056
1058
the compiler will print the full path name of any files that
1057
1059
cause compilation errors.
@@ -1067,7 +1069,8 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
1067
1069
of the build.
1068
1070
</para>
1069
1071
<para>
1070
- If the project file is used to drive MSBuild (such as selecting
1072
+ If the project file is used to drive
1073
+ <application>MSBuild</application> (such as selecting
1071
1074
"build" from the Visual Studio interface) you lose the direct
1072
1075
control of target selection and command-line options you would
1073
1076
have if launching the build directly from &SCons;,
@@ -1078,7 +1081,8 @@ Compile files for languages defined in <filename>LINGUAS</filename> file
1078
1081
targets, arguments, defines, flags and paths for different variants.
1079
1082
</para>
1080
1083
<para>
1081
- If the build is divided into a solution with multiple MSBuild
1084
+ If the build is divided into a solution with multiple
1085
+ <application>MSBuild</application>
1082
1086
projects the mapping is further strained. In this case,
1083
1087
it is important not to set Visual Studio to do parallel builds,
1084
1088
as it will then launch the separate project builds in parallel,
@@ -1325,7 +1329,8 @@ env.MSVSProject(
1325
1329
into the solution file.
1326
1330
Note that these filenames need to be specified as strings,
1327
1331
NOT as &SCons; File Nodes.
1328
- This is because the solution file will be interpreted by MSBuild
1332
+ This is because the solution file will be interpreted by
1333
+ <application>MSBuild</application>
1329
1334
and by Visual Studio, which know nothing about &SCons; Node types.
1330
1335
</para>
1331
1336
</listitem>
@@ -1537,7 +1542,7 @@ the top directory of the project.
1537
1542
<term><function>PCH</function>()</term>
1538
1543
<term><replaceable>env</replaceable>.<methodname>PCH</methodname>()</term>
1539
1544
<listitem><para>
1540
- Builds a Microsoft Visual C++ precompiled header.
1545
+ Builds a &MSVC; precompiled header.
1541
1546
Calling this builder
1542
1547
returns a list of two target nodes: the PCH as the first element,
1543
1548
and the object file as the second element.
@@ -1553,13 +1558,12 @@ env['PCH'] = env.PCH('StdAfx.cpp')[0]
1553
1558
1554
1559
<note>
1555
1560
<para>
1556
- This builder is specific to the PCH implementation
1557
- in Microsoft Visual C++.
1561
+ This builder is specific to the PCH implementation in &MSVC;.
1558
1562
Other compiler chains also implement precompiled header support,
1559
1563
but &b-PCH; does not work with them at this time.
1560
1564
As a result, the builder is only generated into the
1561
1565
construction environment when
1562
- Microsoft Visual C++ is being used as the compiler.
1566
+ &MSVC; is being used as the compiler.
1563
1567
</para>
1564
1568
<para>
1565
1569
The builder only works correctly in a C++ project.
@@ -2074,9 +2078,9 @@ env.Program(target='foo', source=['foo.o', 'bar.c', 'baz.f'])
2074
2078
<term><function>RES</function>()</term>
2075
2079
<term><replaceable>env</replaceable>.<methodname>RES</methodname>()</term>
2076
2080
<listitem><para>
2077
- Builds a Microsoft Visual C++ resource file.
2081
+ Builds a &MSVC; resource file.
2078
2082
This builder method is only provided
2079
- when Microsoft Visual C++ or MinGW is being used as the compiler. The
2083
+ when &MSVC; or MinGW is being used as the compiler. The
2080
2084
<filename>.res</filename>
2081
2085
(or
2082
2086
<filename>.o</filename>
0 commit comments