--- outline: deep --- # 自定义构建规则 我们可以使用 `rule()` 定义自定义构建规则,来处理特定的文件类型或构建逻辑。 ## 基础示例 ### 编译运行 ```bash $ xmake ```