# Build Events

Figure 1. Build Events Options

The Build events tab contains a list of scheduled events for each configuration, launched by the pre-build and post-build scripts. These events can be added, deleted, or modified by clicking either the Edit pre-build... or Edit post-build... buttons. Upon clicking these buttons, you should manually add your commands in the following dialog. As of the current release, it is possible to use environment variables and values declared within them as a link with other available applications. In order to use that function press the Show Macros button.

Figure 2. Build Event Editor

Macros

Expands the edit box to display the list of macros/environment variables to insert in the command line edit box.

Macro Table

List the available macros/environment variables and its value. You can select only one macro at a time to insert into the command line edit box. MSBuild also provides a set of reserved properties that store information about the project file and the MSBuild binaries. These properties may also be listed in the edit box.

See Macros/environment variables below for a description which are specific to Atmel Studio.

Table 1. Atmel Studio Build Macro Table
Macro Description

$(AVRSTUDIO_EXE_PATH) The installation directory of Atmel Studio (defined with drive and path)$(SolutionDir)

The directory of the solution (defined with drive and path)

$(SolutionPath) The absolute path name of the solution (defined with drive, path, base name, and file extension)$(SolutionFileName)

The file name of the solution

$(SolutionName) The base name of the solution$(SolutionExt)

The file extension of the solution. It includes the '.' before the file extension.

$(Configuration) The name of the current project configuration, for example, 'Debug'$(Platform)

The name of the currently targeted platform, for example, 'AVR'

$(DevEnvDir) The installation directory of Atmel Studio (defined with drive and path)$(ProjectVersion)

The version of the project

$(ProjectGuid) A unique identifier of the project$(avrdevice)

The name of the currently selected device

$(avrdeviceseries) The series of the selected device. Used internally by the Atmel Studio.$(OutputType)

Defines if the current project is an Executable or a Static Library type

$(Language) Language of the current project; for example, C, CPP, or Assembler$(OutputFileName)

The file name of the primary output file for the build (defined as base file name)

$(OutputFileExtension) The file extension of the primary output file for the build. It includes the '.' before the file extension$(OutputDirectory)

The absolute path of the output file directory

$(AssemblyName) The assembly name of the primary output for the build$(Name)

The base name of the project

$(RootNamespace) The base name of the project$(ToolchainName)

The name of the toolchain

\$(ToolchainFlavour)

The name of the toolchain's compiler

Macro Description