build: support to export headers to out directory.

N/A

Signed-off-by: liminghao <liminghao@xiaomi.com>