# 7.1.Flavors 简介

Flavors 是实现一个 Port 多种变体的一种方式。该 Port 会被构建多次，每次带有不同的变体。

例如，一个 Port 可以有一个带有许多功能和较多依赖的普通版本，也可以有一个只包含基本功能和最少依赖的轻量级“lite”版本。

另一个例子是，一个 Port 可以有 GTK flavor 和 QT flavor，取决于它使用的是哪种工具包。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://porters-handbook.bsdcn.org/di-7-zhang-flavors/7.1.-flavors-jian-jie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
