Right-hander Anthony DeSclafani signed a $6 million, one-year contract with the Giants, giving the club a veteran option for the rotation.