Global aspects of the formation of γ Cephei b