From dcd488e0ca691c0cc34c2e17a45c37110f3f58bb Mon Sep 17 00:00:00 2001 From: SimonLi Date: Fri, 26 Nov 2021 19:42:29 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=B0=86BUILD.gn=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E6=9A=B4=E9=9C=B2API=EF=BC=8C=E8=AE=A9?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E4=BA=BA=E6=9D=A5=E5=AE=9E=E7=8E=B0=E5=85=B6?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前的方式,将路径写死,单板适配必须在该路径下实现适配。 在board与soc分离后,有可能board来实现适配,也有可能soc来适配wifi的接口, 这样写死路径就有问题了,而是应该主动暴露出接口,让适配的人来deps,获取 这个模块暴露出的API。 Signed-off-by: SimonLi --- BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 330d12b..d098606 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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" ] }