mirror of
https://github.com/openharmony/developtools_bytrace_standard.git
synced 2026-07-19 23:13:39 -04:00
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:
Executable
+20
@@ -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
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user