Handle the bundle when compiling for a library or a framework