diff --git a/BUILD.gn b/BUILD.gn index e7662fad40fb94029c5feab41613aa9e205c7887..e95e76b20edbc2a48c59cf74edddacdb3a5e76f3 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 0000000000000000000000000000000000000000..86994d402b5e8199ff9d19a7dae39644d5648e00 --- /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 ed8b0ee1e95b8f659070b24b26f679cc2a75df1a..ab8eb964bbd1d21f8758cfd390fe05ff919c5030 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" ] -}