See this link to learn how to build scilab from source. https://wiki.scilab.org/Compilation%20of%20Scilab
You will need git for this. If you want to be involved in to source compilations I suggest you start Using a Linux OS. It will make most of the processes easy.