Build Settings
Last modified by Microchip on 2024/06/24 06:33
Build Settings allows customization of the build process inside the MPLAB® X project.
Setting the Pre-Building or Post-Building Settings
Open the Project Properties Window
When the Project Properties window opens, locate the 'Categories' section on the left side of the window.
Select the Building node under the configuration you wish to modify the build.
Select a macro in the Pre or Post build area.
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 |
Select OK at the bottom right of the window when you are done.
- The commands you selected are inserted into nbproject/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 the nbproject folder.