support cpp file compile

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>