bugfix: fix compiling error for qemu-arm-linux-min system.

1)通过support_jsapi隔离napi模块,便于在最小系统中编译。

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: Iad08c1792e68606b6224aea549d8519ca5abd1f8
This commit is contained in:
handyohos 2022-02-17 14:48:27 +08:00
parent a128b1e7e2
commit 09e45be293
2 changed files with 21 additions and 2 deletions

View File

@ -35,7 +35,7 @@
"build": {
"sub_component": [
"//developtools/profiler/device:hiprofiler_targets",
"//developtools/profiler/hidebug/interfaces/js/kits/napi:hidebug"
"//developtools/profiler/hidebug/interfaces/js/kits:profiler_jsapi_module"
],
"inner_kits": [
{
@ -54,4 +54,4 @@
]
}
}
}
}

View File

@ -0,0 +1,19 @@
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
group("profiler_jsapi_module") {
deps = []
if (support_jsapi) {
deps += [ "./napi:hidebug" ]
}
}