Build Monitor

Introduction

Numerous managed build systems for C/C++ exist, such as Makefile, CMake, SCon, and Visual Studio.

CppDepend requires complete information on compilation and linking commands to carry out its analysis. The Build Monitor captures these commands from your build process, enabling it to generate a build file specification.

How to Use the BuildMonitor Tool?

The BuildMonitor tool intercepts your build commands and generates a .build file specification that CppDepend can analyze.

Intercept Commands from the Command Line

To generate a build file specification of your build process, you have to execute the following command:

Terminal
BuildMonitor64.exe -o yourbuild.build build-command

If you build your project like this:

Command line with 1 argument

You have just to replace it with the following:

Command line with 2 arguments

Notice that for Windows OS 32 bit, you have to use BuildMonitor.exe

Intercept Commands from the IDE

For Windows you can also use -v switch to intercept build commands from visual editors, for example if you run this command:

Terminal
BuildMonitor64.exe -o yourbuild.build -v devenv

Every build started from the launched Visual Studio will be intercepted.

Try CppDepend Today

Start your 14-day free trial with full access to all documentation features. No credit card required.