build: add AST support

Change-Id: Id5f88dba528c7b48b1d3f059f9ec65b9e2a88ef5