How is token emission done by pancakeswap?

Hey guys, just wondering how token emissions are made possible on PancakeSwap. It is said 40 tokens are emitted pre block here. I tried to search for smart contracts, and did not find them. Is it done manually on a timely basis? If so, how does it get distributed among LP holders then? Many thanks.