The MDK project configuration is managed through two .ini files, which handle various settings related to script generation, debugging, and output. These files enable flexibility by distinguishing between project-specific configurations and machine-specific overrides.

File Overview

  1. [projectname].mdk.ini
    This file contains project-specific settings and should be checked into source control to maintain consistent configurations across different environments.

  2. [projectname].mdk.local.ini
    This file is specific to the local machine and is not meant to be checked into version control. It allows developers to apply local customizations (e.g., output paths) without affecting the project-wide settings.

Configuration Settings

[mdk]

This section applies to both .ini files. All settings can be defined in either file, with the local file (.mdk.local.ini) taking precedence over the project file for overrides.

type=programmableblock|mod

trace=on|off

minify=none|trim|stripcomments|lite|full

ignores=[glob patterns]

donotclean=[glob patterns]

Local-Specific Settings

The following settings are typically defined in the .mdk.local.ini file to apply machine-specific configurations. These are not required to be shared across developers or environments, providing flexibility in setup.

output=auto|[specific path]

binarypath=auto|[specific path]


How the Files Work Together

Both .mdk.ini and .mdk.local.ini can contain the same settings, but typically, project-wide configurations go into the .mdk.ini file, while machine-specific settings that should not be shared go into .mdk.local.ini. Settings in the .mdk.local.ini file will always override those in the .mdk.ini if both are defined.


Footnotes:
1: %AppData% is a Windows macro that will resolve to a special folder on your computer. If you wish to find it, open a Windows Explorer and type it into the address bar and press enter.