Skip to content
white238 edited this page Mar 5, 2013 · 5 revisions

There are two types of defines in MixDown: [Smart](Smart Defines) and regular. Smart defines behave differently depending on the build system you are using in a given target. Regular defines simply allow you to reuse values in multiple places.

Defines can be set in both inside Override Groups and in project files. Setting defines is as simple as:

name=value

To use the define in a build command or another define, you surround the define name like:

$(name)

All name lookups are lowercase.

Defines can also be used to access environment variables as long as the name does not conflict with a define you have already assigned in your Override Groups or [project file](project files).

Target information can also be accessed by defines by the following notation:

$(< target name >.< field name >)

For example, if you want to access target Foo's prefix:

$(Foo.prefix)