Adding a custom board to mblock


Does any have have an idea on how to add a custom board under the board menu in mblock such as Arduino, mbot ranger etc. Also how to add the required header files and definition when you change your board from say mbot to your custom bot. For eg. when you select mbot as your board various definition of motor pin are added before the void setup likewise it varies depending upon the board you select. Thanks in advance for the help you can provide.