Implement clerver mechanism to set GYP_DEFINES

Change-Id: I0aa33a1dc83de2fbdfe3705c125aad7686a4f54d