build: 将BUILD.gn改为主动暴露API,让其他人来实现其接口

之前的方式,将路径写死,单板适配必须在该路径下实现适配。
在board与soc分离后,有可能board来实现适配,也有可能soc来适配wifi的接口,
这样写死路径就有问题了,而是应该主动暴露出接口,让适配的人来deps,获取
这个模块暴露出的API。

Signed-off-by: SimonLi <likailong@huawei.com>
This commit is contained in:
SimonLi
2021-11-26 19:42:29 +08:00
parent 8f86cae5e1
commit dcd488e0ca
+6 -2
View File
@@ -11,6 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
group("wifi") {
deps = [ "$ohos_board_adapter_dir/hals/communication/wifi_lite/wifiservice:wifiservice" ]
config("include") {
include_dirs = [ "interfaces/wifiservice" ]
}
group("wifi") {
public_configs = [ ":include" ]
}