1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15import("//build/ohos.gni") 16#group("libhvb") { 17# deps = [ ":libhvb_static" ] 18#} 19# For init only 20config("libhvb_exported_configs") { 21 visibility = [ ":*" ] 22 include_dirs = 23 [ "//base/startup/hvb/libhvb/include" ] 24} 25 26ohos_static_library("libhvb_static") { 27 sources = [ 28 "src/auth/hvb.c", 29 "src/cert/hvb_cert.c", 30 "src/crypto/hvb_hash_sha256.c", 31 "src/crypto/hvb_rsa_verify.c", 32 "src/crypto/hvb_rsa.c", 33 "src/deps/hvb_sysdeps.c", 34 "src/footer/hvb_footer.c", 35 "src/rvt/hvb_rvt.c", 36 "src/utils/hvb_util.c", 37 "src/cmdline/hvb_cmdline.c", 38 ] 39 include_dirs = [ 40 "//base/startup/hvb/libhvb/incldue", 41 "//third_party/bounds_checking_function/include", 42 ] 43 public_configs = [ ":libhvb_exported_configs" ] 44 part_name = "hvb" 45} 46 47