mx2cc.md 1.0 KB

The mx2cc compiler

Mx2cc is the command line compiler for monkey2. The actual executable is named differently depending on the OS:

  • Windows: /bin/mx2cc_windows.exe
  • MacOS: /bin/mx2cc_macos
  • Linux: /bin/mx2cc_linux

The command line options for mx2cc are:

`mx2cc` _command_ _options_ _input_

Valid commands are:

  • makeapp - make an app. input should be a monkey2 file path.
  • makemods - make a set of modules. input should be a space separated list of module names, or nothing to make all modules.
  • makedocs - make the documentation for a set of modules. input should be a space separated list of module names, or nothing to make all modules.

Valid options are:

  • clean - rebuilds everything from scratch.
  • verbose - provides more information while building.
  • target=target - set target to desktop (the default) or emscripten.
  • config=config - set config to debug (the default) or release.
  • apptype=apptype set apptype to gui (the default) or console.