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

Developer

resources

Building your application

The Brew MP Visual Studio Plugin includes the option of generating debug and release application DLL/DLL1 for the Brew MP Simulator, as well as application makefile and MOD/MOD1 files to run on device.

The Brew MP Visual Studio Plugin Makefile Generator uses the make.d system, which is the Brew MP makefile system.

Setting properties

The Visual Studio Plugin installs a menu that allows you to select which ARM compiler and processor to target during the build process.

To access this menu in Visual Studio:

  1. Select Tools > Options.
  2. In the Options dialog, expand the Brew MP node, and click General.

    You can designate your ARM Compiler and Processor from the drop-down menus.

Setting build properties

You can designate build options within Visual Studio by doing the following:

  1. Select Project > Brew MP Properties to open the Brew MP Properties dialog.
  2. Within the Brew MP Properties dialog, select the Build tab. Within the Build tab, select the General tab.

  3. In the build properties general window you can select the Brew MP Platform version and ARM build. The following are the ARM build options:
    • Default: use global settings in the options dialog to build the MOD/MOD1.
    • Project-specific ARM Compiler (overrides global setting): set specific build settings, overriding the global settings when building the MOD/MOD1.
    • Custom build commands: disable the makefile generator, and runs the specific build/clean commands when building the MOD/MOD1.
  4. The advanced tab provides additional build options.

    • The Disable Automatic Makefile Generation checkbox allows you to turn off the makefile generator so you can manage your own makefile. Note that if you select this option,
    • The Libraries text field allows you to specify other libraries to link into your module. The files specified here are propagated into the makefile generated during the build process.
    • The Library Directories text field allows you to specify library directories. This field is similar to header include paths, except it specifies where the above mentioned .lib files exist. The paths specified here are propagated into the makefile generated during the build process.
    • The Preprocessor Definitions text field allows you to specify preprocessor definitions.

    Both library directories and preprocessor definitions are configuration-specific, which means you can store different paths/values for each combination of configuration and compiler. You can switch Configuration and Compiler by selecting the corresponding drop-down.

Building the application for a Brew MP simulation target

Building the application for use with the Brew MP Simulator generates the application DLL and places it in the project directory.

  1. Select Brew MP Simulation, and the desired target from the toolbar drop-down menus.

  2. Select the build icon on the toolbar, or from the Visual Studio menu select Build > Build 'application name'.

    Check the Visual Studio output window for notification of a successful build.

Building the application for BREW 3.x/4.x Simulator

If you have a 3.x or 4.x platform installed such as the BREW 3.1.5 SP02 Platform, you will see the 3.1.5 Simulator in the Target Type drop-down menu. Building the application for the BREW Simulator generates the application DLL and places it in the project directory.

  1. Select BREW 3.1.5 SP01 Simulator from the toolbar drop-down menu.

  2. Select the BREW 3.1.5 SP01 platform from the Brew MP Properties Build tab.
  3. Select the build icon from the toolbar, or from the Visual Studio menu select Build > Build 'application name'.

    Check the Visual Studio output window for notification of a successful build.

Building the application for a Brew MP physical target

  1. Select Brew MP Physical Target from the toolbar drop-down menu.

  2. Select the desired device from the available devices listed in the target drop-down menu.
  3. Select the build icon from the toolbar, or from the Visual Studio menu select Build > Build 'application name'.

    Check the Visual Studio output window for notification of a successful build.

Building the application for BREW 3.x/4.x physical target

Selecting build for the BREW 3.x/4.x physical target calls the makefile generator if the makefile is out of date, then runs the makefile to generate the MOD. The output files will be placed within the project directory.

  1. Select BREW 3.x/4.x Physical Target from the toolbar drop-down menu.

  2. Select the BREW 3.1.5 SP01 platform from the Brew MP Properties Build tab.
  3. Select the build icon from the toolbar, or from the Visual Studio menu select Build > Build 'application name'.

    Check the Visual Studio output window for notification of a successful build.

To clean your project directory

  1. Select Build > Clean 'application name'.