Enhence to base rules for build executable file.

N/A

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