Build Settings
Build Settings allows customization of the build process inside the MPLAB® X project.
Setting the Pre or Post Building settings
3
Select a macro in the Pre or Post build area.
You can type the macros yourself or clickInsert Macro to copy the macro name into the current position in theEdit box.
| macro Name | macro Function |
|---|---|
| Device | device for the current-selected project configuration |
| IsDebug | “true” for a Debug Run; “false” otherwise |
| ProjectDir | location of the project files on the PC |
| ConfName | name of the currently-selected project configuration |
| ImagePath | path to the build image |
| ImageDir | directory containing the build image |
| ImageName | name of the build image |
4
Select OK at the bottom right of the window when you are done.
- The commands you selected are inserted intonbproject/Makefile-$CONF.mk file.
- If you need to refer to project related items (e.g., image name), use the supplied macros.
- Commands are run in the make process with the current directory being set to the MPLAB X IDE project directory.
- The project directory is defined as the directory that contains thenbproject folder.



