Yingzao Fashi
The city wall itself was built with rammed earth, a technique also detailed in "Yingzao Fashi", vol. III, "Standards for Moat, Stronghold and Masonry Work":