Cabinet first. Then you will know the exact of the drawers required depending on what slides you use. It's alway good to already have the slides when making the drawers. Then you know required clearance. Better yet, have the slides before you make the cabinet and incorporate the required clearances in the design of the cabinet if possible. I'm not a cabinet maker but have made enough to know how it works best for me.