Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Integration with the IDE

Brew MP provides IDE plugins to integrate Brew MP Tools with Visual Studio and Eclipse. This integration allows the CIF and CAR files to be compiled into MIF and BAR files as part of the IDE build process.

Required version of Visual Studio

Visual Studio 2008 or greater is required for Brew MP. If your existing project files were created with a previous version of Visual Studio, Visual Studio upgrades the files when you open them.

Changing the platform version

The active platform version set in the SDK Manager sets the default platform version for the project when the project is first created. The active platform version determines the value of the BREWMP_PLATFORM environment variable for the project.

If you have multiple versions of the platform installed, you can change the platform version to compile a project with a different version of the Brew MP platform without needing to change environment variables. The platform version you select in the Brew MP Settings Build menu remains active and is used to compile the project until a different version is selected.

To change the platform version:

  1. Select the Brew MP Properties icon.
  2. In the Build tab of the Brew MP Properties dialog, select the new Platform Version.

  3. Click OK.

    When you compile the project, the new version of the Brew MP Platform will be used.

Integrating CIF and CAR files into the IDE

Before building your project in Visual Studio or Eclipse, add the application's CIF file and its CAR file(s) into your project.

When you build the project, the IDE generates the makefile, launches the CIFC compiler to compile the CIF and CAR files, then compiles the source code.

Building an applet for the Simulator in Visual Studio

When building the application for the Simulator (.dll) in Visual Studio, the include paths passed to the CIFC compiler for compiling CIF and CAR files are inherited from the include paths used in the Visual Studio project when the CIF and CAR files were added to the project.

If you modify the include paths for the project after adding the CIF and CAR files, the changes are not propagated to the include paths for the CIF and CAR files. In this case, update the CIF and CAR include paths in one of the following ways:

  • Delete the CIF and CAR files from the project, then add them again, which updates the include paths
  • Manually update the properties of the CAR and CIF files to specify the new include paths

To update the include paths of the project in Visual Studio:

  1. Right-click the project in the Solution Explorer and select Properties.
  2. In the Properties dialog, select Configuration Properties > C/C++ > General.

    Include files are listed in Additional Include Directories on the right side of the Property Pages dialog, as shown in the following figure:

To update the include paths of the CIF/CAR file in Visual Studio:

  1. Right-click the CIF/CAR file in Solution Explorer and select Properties.
  2. In the Property Pages dialog, select Configuration Properties > Custom Build Step, as shown in the following figure.

    Add an include path by appending "-I " to the Command Line field.