mx2cc.md 993 B

@manpage The mx2cc compiler

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

/bin/mx2cc_windows.exe
/bin/mx2cc_macos
/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.