feat: Compile jsapi module only if support_jsapi is true.

仅在support_jsapi为true时才编译jsapi模块

Signed-off-by: handyohos <zhangxiaotian@huawei.com>
Change-Id: Ia1d08de27b7f337716ab9088c38733fa12f970a4

#I4O4N6
This commit is contained in:
handyohos
2021-12-26 21:48:15 +08:00
parent 7613f4039c
commit f2a93452bb
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
# Copyright (C) 2021 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.
import("//build/ohos.gni")
group("jsapi_kits_target") {
if (support_jsapi) {
deps = [ "js/napi:bytrace" ]
}
}
+1 -1
View File
@@ -6,7 +6,7 @@
"//developtools/bytrace_standard/interfaces/innerkits/native:bytrace_core",
"//developtools/bytrace_standard/bin:bytrace_target",
"//developtools/bytrace_standard/bin:bytrace.cfg",
"//developtools/bytrace_standard/interfaces/kits/js/napi:bytrace"
"//developtools/bytrace_standard/interfaces/kits:jsapi_kits_target"
],
"inner_kits": [
{