|
1 | 1 | ---
|
2 |
| -title: "BSCMAKE Options" |
| 2 | +title: "BSCMAKE options" |
3 | 3 | description: "Reference to the Microsoft BSCMAKE utility command-line options."
|
4 |
| -ms.date: "02/09/2020" |
| 4 | +ms.date: 03/21/2022 |
5 | 5 | f1_keywords: ["VC.Project.VCBscMakeTool.OutputFile", "VC.Project.VCBscMakeTool.SuppressStartupBanner", "VC.Project.VCBscMakeTool.PreserveSBR"]
|
6 | 6 | helpviewer_keywords: ["/v BSCMAKE option", "Iu BSCMAKE option", "browse information files (.bsc), content", "/Er BSCMAKE option", "NOLOGO BSCMAKE option", "/s BSCMAKE option", "/Ei BSCMAKE option", "/o BSCMAKE option", "/NOLOGO BSCMAKE option", "/Iu BSCMAKE option", "s BSCMAKE option (/s)", "/Em BSCMAKE option", "Em BSCMAKE option", "Es BSCMAKE option", "files [C++], BSCMAKE", "Er BSCMAKE option", "BSCMAKE, options for controlling files", "controlling BSCMAKE options", "El BSCMAKE option", "/El BSCMAKE option", "/Es BSCMAKE option", "Ei BSCMAKE option"]
|
7 | 7 | ms.assetid: fa2f1e06-c684-41cf-80dd-6a554835ebd2
|
8 | 8 | ---
|
9 |
| -# BSCMAKE Options |
| 9 | +# BSCMAKE options |
10 | 10 |
|
11 | 11 | > [!WARNING]
|
12 |
| -> Although BSCMAKE is still installed with Visual Studio, it is no longer used by the IDE. Since Visual Studio 2008, browse and symbol information is stored automatically in a SQL Server *`.sdf`* file in the solution folder. |
| 12 | +> Although BSCMAKE is still installed with Visual Studio, it's no longer used by the IDE. Since Visual Studio 2008, browse and symbol information is stored automatically in a SQL Server *`.sdf`* file in the solution folder. |
13 | 13 |
|
14 |
| -This section describes the options available for controlling BSCMAKE. Several options control the content of the browse information file by excluding or including certain information. The exclusion options can allow BSCMAKE to run faster and may result in a smaller *`.bsc`* file. Option names are case-sensitive (except for **/HELP** and **/NOLOGO**). |
| 14 | +This section describes the options available for controlling BSCMAKE. Several options control the content of the browse information file by excluding or including certain information. The exclusion options can allow BSCMAKE to run faster and may result in a smaller *`.bsc`* file. Option names are case-sensitive (except for **`/HELP`** and **`/NOLOGO`**). |
15 | 15 |
|
16 |
| -Only **/NOLOGO** and **/o** are available from within the Visual Studio development environment. See [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md) for information on access a project's property pages. |
| 16 | +Only **`/NOLOGO`** and **`/o`** are available from within the Visual Studio development environment. For more information, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md). |
17 | 17 |
|
18 |
| -**/Ei (**_filename_...**)**\ |
19 |
| -Excludes the contents of the specified include files from the browse information file. To specify multiple files, separate the names with a space and enclose the list in parentheses. Parentheses aren't necessary if you specify only one *filename*. Use **/Ei** along with the **/Es** option to exclude files not excluded by **/Es**. |
| 18 | +## Options |
20 | 19 |
|
21 |
| -**/El**\ |
| 20 | +**`/Ei (`** *`filename`* ... **`)`**\ |
| 21 | +Excludes the contents of one or more specified *`filename`* include files from the browse information file. To specify multiple files, separate the names with a space and enclose the list in parentheses. Parentheses aren't necessary if you specify only one *`filename`*. Use **`/Ei`** along with the **`/Es`** option to exclude files not excluded by **`/Es`**. |
| 22 | + |
| 23 | +**`/El`**\ |
22 | 24 | Excludes local symbols. The default is to include local symbols. For more information about local symbols, see [Creating an .sbr File](creating-an-dot-sbr-file.md).
|
23 | 25 |
|
24 |
| -**/Em**\ |
25 |
| -Excludes symbols in the body of macros. Use **/Em** to include only the names of macros in the browse information file. The default is to include both the macro names and the result of the macro expansions. |
| 26 | +**`/Em`**\ |
| 27 | +Excludes symbols in the body of macros. Use **`/Em`** to include only the names of macros in the browse information file. The default is to include both the macro names and the result of the macro expansions. |
26 | 28 |
|
27 |
| -**/Er (**_symbol_...**)**\ |
28 |
| -Excludes the specified symbols from the browse information file. To specify multiple symbol names, separate the names with a space and enclose the list in parentheses. Parentheses are unnecessary if you specify only one *symbol*. |
| 29 | +**`/Er (`** *`symbol`* ... **`)`**\ |
| 30 | +Excludes one or more of the specified *`symbol`* symbols from the browse information file. To specify multiple symbol names, separate the names with a space and enclose the list in parentheses. Parentheses are unnecessary if you specify only one *`symbol`*. |
29 | 31 |
|
30 |
| -**/Es**\ |
31 |
| -Excludes every include file specified with an absolute path, or found in an absolute path specified in the INCLUDE environment variable. (Usually, these files are the system include files, which contain much information you may not need in your browse information file.) This option doesn't exclude files specified without a path, or with relative paths, or files found in a relative path in INCLUDE. You can use the **/Ei** option along with **/Es** to exclude files that **/Es** doesn't exclude. If you want to exclude only some of the files, use **/Ei** instead of **/Es**, and list the files you want to exclude. |
| 32 | +**`/Es`**\ |
| 33 | +Excludes every include file specified with an absolute path, or found in an absolute path specified in the INCLUDE environment variable. (Usually, these files are the system include files, which contain much information you may not need in your browse information file.) This option doesn't exclude files specified without a path, or with relative paths, or files found in a relative path in INCLUDE. You can use the **`/Ei`** option along with **`/Es`** to exclude files that **`/Es`** doesn't exclude. If you want to exclude only some of the files, use **`/Ei`** instead of **`/Es`**, and list the files you want to exclude. |
32 | 34 |
|
33 |
| -**/errorreport:**[**none** \| **prompt** \| **queue** \| **send**]\ |
34 |
| -This option is deprecated. Starting in Windows Vista, error reporting is controlled by [Windows Error Reporting (WER)](/windows/win32/wer/windows-error-reporting) settings. |
| 35 | +**`/errorreport:`**\[ **`none`** \| **`prompt`** \| **`queue`** \| **`send`** ]\ |
| 36 | +This option is deprecated. In Windows Vista and later, error reporting is controlled by [Windows Error Reporting (WER)](/windows/win32/wer/windows-error-reporting) settings. |
35 | 37 |
|
36 |
| -**/HELP**\ |
| 38 | +**`/HELP`**\ |
37 | 39 | Displays a summary of the BSCMAKE command-line syntax.
|
38 | 40 |
|
39 |
| -**/Iu**\ |
| 41 | +**`/Iu`**\ |
40 | 42 | Includes unreferenced symbols. By default, BSCMAKE doesn't record any symbols that are defined but not referenced. If an *`.sbr`* file has been packed, this option has no effect for that input file because the compiler has already removed the unreferenced symbols.
|
41 | 43 |
|
42 |
| -**/n**\ |
43 |
| -Forces a nonincremental build. Use **/n** to force a full build of the browse information file whether a *`.bsc`* file exists or not, and to prevent *`.sbr`* files from being truncated. For more information, see [How BSCMAKE builds a `.bsc` file](how-bscmake-builds-a-dot-bsc-file.md). |
| 44 | +**`/n`**\ |
| 45 | +Forces a non-incremental build. Use **`/n`** to force a full build of the browse information file whether a *`.bsc`* file exists or not, and to prevent *`.sbr`* files from being truncated. For more information, see [How BSCMAKE builds a `.bsc` file](how-bscmake-builds-a-dot-bsc-file.md). |
44 | 46 |
|
45 |
| -**/NOLOGO**\ |
| 47 | +**`/NOLOGO`**\ |
46 | 48 | Suppresses the BSCMAKE copyright message.
|
47 | 49 |
|
48 |
| -**/o** *filename*\ |
49 |
| -Specifies a name for the browse information file. By default, BSCMAKE gives the browse information file the base name of the first *`.sbr`* file and a *`.bsc`* extension. |
| 50 | +**`/o`** *`filename`*\ |
| 51 | +The *`filename`* option parameter specifies a name for the browse information file. By default, BSCMAKE gives the browse information file the base name of the first *`.sbr`* file and a *`.bsc`* extension. |
50 | 52 |
|
51 |
| -**/S (**_filename_...**)**\ |
52 |
| -Tells BSCMAKE to process the specified include file the first time it's encountered and to exclude it otherwise. Use this option to save processing time when a file (such as a header, or *`.h`*, file for a *`.c`* or *`.cpp`* source file) is included in several source files but is unchanged by preprocessing directives each time. Use this option if a file is changed in ways unimportant for the browse information file you're creating. To specify multiple files, separate the names with a space, and enclose the list in parentheses. Parentheses aren't necessary if you specify only one *filename*. If you want to exclude the file every time it's included, use the **/Ei** or **/Es** option. |
| 53 | +**`/S (`** *`filename`* ... **`)`**\ |
| 54 | +Tells BSCMAKE to process each specified *`filename`* include file the first time it's encountered and to exclude it otherwise. Use this option to save processing time when a file (such as a header, or *`.h`*, file for a *`.c`* or *`.cpp`* source file) is included in several source files but is unchanged by preprocessing directives each time. Use this option if a file is changed in ways unimportant for the browse information file you're creating. To specify multiple files, separate the names with a space, and enclose the list in parentheses. Parentheses aren't necessary if you specify only one *`filename`*. If you want to exclude the file every time it's included, use the **`/Ei`** or **`/Es`** option. |
53 | 55 |
|
54 |
| -**/v**\ |
| 56 | +**`/v`**\ |
55 | 57 | Provides verbose output, which includes the name of each *`.sbr`* file being processed and information about the complete BSCMAKE run.
|
56 | 58 |
|
57 |
| -**/?**\ |
| 59 | +**`/?`**\ |
58 | 60 | Displays a brief summary of BSCMAKE command-line syntax.
|
59 | 61 |
|
60 |
| -The following command line tells BSCMAKE to do a full build of MAIN.bsc from three *`.sbr`* files. It also tells BSCMAKE to exclude duplicate instances of TOOLBOX.h: |
| 62 | +## Example |
| 63 | + |
| 64 | +The following command line tells BSCMAKE to do a full build of *`main.bsc`* from three *`.sbr`* files. It also tells BSCMAKE to exclude duplicate instances of *`toolbox.h`*: |
61 | 65 |
|
62 | 66 | ```cmd
|
63 | 67 | BSCMAKE /n /S toolbox.h /o main.bsc file1.sbr file2.sbr file3.sbr
|
64 | 68 | ```
|
65 | 69 |
|
66 | 70 | ## See also
|
67 | 71 |
|
68 |
| -[BSCMAKE Reference](bscmake-reference.md) |
| 72 | +[BSCMAKE reference](bscmake-reference.md) |
0 commit comments