Skip to content

core.base.global

Used to get the configuration information of xmake global, that is, the value of the parameter option passed in xmake g|global --xxx=val.

global.get

  • Get the specified configuration value

Similar to config.get, the only difference is that this is obtained from the global configuration.

global.load

  • Load configuration

Similar to global.get, the only difference is that this is loaded from the global configuration.

global.directory

  • Get the global configuration information directory

The default is the ~/.config directory.

global.dump

  • Print out all global configuration information

The output is as follows:

lua
{
    clean = true,
    ccache = "ccache",
    xcode_dir = "/Applications/Xcode.app"
}