Construction of buildings uses a combination of 3-D printing and nanotechnology.
It's never thoroughly explained how Truck units in-game actually put structures up; all the player sees are little blue laser-like beams coming from the truck turret that "inflate" the structure like a bouncy castle. Coming across this web page seems to give a decent, if brief speculation on how it works.