1# Copyright (c) 2022 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. 13import("//build/ohos.gni") 14 15## build sm execute bin file 16config("fscrypt_utils_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ 20 "../include/libfscrypt", 21 "//base/startup/init/interfaces/innerkits/include", 22 "//base/startup/init/services/log", 23 "//base/startup/init/services/include", 24 "//base/startup/init/services/include/param", 25 ] 26 27 cflags = [ 28 "-g3", 29 "-Wall", 30 ] 31} 32 33ohos_static_library("libfscryptutils") { 34 output_name = "libfscryptutils" 35 sources = [ 36 "src/fscrypt_control.c", 37 "src/fscrypt_utils.c", 38 "src/key_control.c", 39 "src/sysparam_dynamic.c", 40 ] 41 42 configs = [ ":fscrypt_utils_config" ] 43 44 deps = [ 45 "//base/startup/init/services/log:init_log", 46 "//base/startup/init/services/utils:libinit_utils", 47 ] 48 49 external_deps = [ 50 "c_utils:utils", 51 "init:libbegetutil", 52 ] 53 54 subsystem_name = "filemanagement" 55 part_name = "storage_service" 56} 57 58ohos_static_library("libfscryptutils_static") { 59 output_name = "libfscryptutils_static" 60 sources = [ 61 "src/fscrypt_control.c", 62 "src/fscrypt_utils.c", 63 "src/key_control.c", 64 "src/sysparam_static.c", 65 ] 66 67 configs = [ ":fscrypt_utils_config" ] 68 69 subsystem_name = "filemanagement" 70 part_name = "storage_service" 71 public_deps = [ "//third_party/bounds_checking_function:libsec_static" ] 72} 73