Multiple environments vs multiple projects

For both of these topics and documentation already exist. For the first one you want srcFilter, for the second one you probably want lib_extra_dirs. Examples are e.g. here and here.