From e955388aee03d7917f57e561ca40999813f5423d Mon Sep 17 00:00:00 2001 From: handyohos Date: Fri, 25 Feb 2022 17:35:16 +0800 Subject: [PATCH] bugfix: fix compiling error for qemu-arm-linux. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1)最小系统中不编译tools工具。 Signed-off-by: handyohos Change-Id: Ia90cbefb39aa60b20d6bc07b70f8c3bc5da3967a --- BUILD.gn | 2 +- tools/BUILD.gn | 21 +++++++++++++++++++++ tools/accesstoken/BUILD.gn | 4 ---- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 tools/BUILD.gn diff --git a/BUILD.gn b/BUILD.gn index e7662fad4..e95e76b20 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -22,7 +22,7 @@ group("accesstoken_build_module") { "//base/security/access_token/interfaces/kits:napi_packages", "//base/security/access_token/services/accesstokenmanager:accesstoken_manager_service", "//base/security/access_token/services/accesstokenmanager/main/sa_profile:accesstoken_sa_profile_standard", - "//base/security/access_token/tools/accesstoken:tools_atm", + "//base/security/access_token/tools:tools_atm", ] } } diff --git a/tools/BUILD.gn b/tools/BUILD.gn new file mode 100644 index 000000000..86994d402 --- /dev/null +++ b/tools/BUILD.gn @@ -0,0 +1,21 @@ +# 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. + +import("//build/ohos.gni") + +group("tools_atm") { + deps = [] + if (support_jsapi) { + deps += [ "./accesstoken:atm" ] + } +} diff --git a/tools/accesstoken/BUILD.gn b/tools/accesstoken/BUILD.gn index ed8b0ee1e..ab8eb964b 100644 --- a/tools/accesstoken/BUILD.gn +++ b/tools/accesstoken/BUILD.gn @@ -56,7 +56,3 @@ ohos_executable("atm") { subsystem_name = "security" part_name = "access_token" } - -group("tools_atm") { - deps = [ ":atm" ] -} -- Gitee