Leadership: who builds the cohort?

Is there specific text that specifies who (GM or player) actually builds the cohort?

… being an NPC implies that the GM does, but is that explicitly spelled out anywhere?