1# Copyright (C) 2021-2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/security/huks/build/config.gni") 15import("//build/ohos.gni") 16 17if (os_level == "standard") { 18 ohos_static_library("libhuks_service_standard_static") { 19 subsystem_name = "security" 20 part_name = "huks" 21 22 public_deps = [ 23 "//base/security/huks/services/huks_standard/huks_service/main/core:libhuks_service_core_standard_static", 24 "//base/security/huks/services/huks_standard/huks_service/main/os_dependency:libhuks_service_os_dependency_standard_static", 25 ] 26 27 complete_static_lib = true 28 29 sanitize = { 30 integer_overflow = true 31 cfi = true 32 debug = false 33 cfi_cross_dso = true 34 } 35 36 configs = [ 37 "//base/security/huks/frameworks/config/build:l2_standard_common_config", 38 ] 39 external_deps = [ "hilog:libhilog" ] 40 } 41} else { 42 ohos_static_library("libhuks_service_small_static") { 43 public_deps = [ 44 "//base/security/huks/services/huks_standard/huks_service/main/core:libhuks_service_core_small_static", 45 46 # "//base/security/huks/services/huks_standard/huks_service/main/os_dependency:libhuks_service_os_dependency_small_static", 47 "//base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl:libhuks_service_idl_small_static", 48 ] 49 configs = [ 50 "//base/security/huks/frameworks/config/build:l1_small_common_config", 51 ] 52 53 complete_static_lib = true 54 55 cflags = [] 56 57 external_deps = [ "hilog_featured_lite:hilog_shared" ] 58 } 59} 60