# Copyright (c) 2023 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("libhvb") { # deps = [ ":libhvb_static" ] #} # For init only config("libhvb_exported_configs") { visibility = [ ":*" ] include_dirs = [ "include" ] if (target_cpu == "arm64") { defines = [ "__LP64__" ] } else { defines = [ "__LP32__" ] } } ohos_static_library("libhvb_static") { sources = [ "src/auth/hvb.c", "src/cert/hvb_cert.c", "src/cmdline/hvb_cmdline.c", "src/crypto/hvb_hash_sha256.c", "src/crypto/hvb_rsa.c", "src/crypto/hvb_rsa_verify.c", "src/deps/hvb_sysdeps.c", "src/footer/hvb_footer.c", "src/rvt/hvb_rvt.c", "src/utils/hvb_util.c", ] include_dirs = [ "incldue", "//third_party/bounds_checking_function/include", ] public_configs = [ ":libhvb_exported_configs" ] part_name = "hvb" subsystem_name = "startup" }