stop building emulator unless desired
encapsulate emulator with a variable to stop building it unless desired

Change-Id: Ie5df454f9be18f5eca80d325210c430304b1b9a6