mirror of
https://github.com/openharmony/third_party_fsverity-utils.git
synced 2026-07-01 10:05:35 -04:00
b561cf7df0
Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
72 lines
1.8 KiB
Plaintext
Executable File
72 lines
1.8 KiB
Plaintext
Executable File
# Copyright (c) 2023-2024 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")
|
|
|
|
config("common_config") {
|
|
cflags = [
|
|
"-Wall",
|
|
"-Wundef",
|
|
"-Wdeclaration-after-statement",
|
|
"-Wimplicit-fallthrough",
|
|
"-Wmissing-field-initializers",
|
|
"-Wmissing-prototypes",
|
|
"-Wstrict-prototypes",
|
|
"-Wunused-parameter",
|
|
"-Wvla",
|
|
"-Wno-deprecated-declarations",
|
|
]
|
|
}
|
|
|
|
config("libfsverity_public_config") {
|
|
include_dirs = [
|
|
"include",
|
|
"common",
|
|
]
|
|
}
|
|
|
|
ohos_shared_library("libfsverity_utils") {
|
|
sources = [
|
|
"lib/compute_digest.c",
|
|
"lib/enable.c",
|
|
"lib/hash_algs.c",
|
|
"lib/sign_digest.c",
|
|
"lib/utils.c",
|
|
]
|
|
external_deps = [ "openssl:libcrypto_shared" ]
|
|
configs = [ ":common_config" ]
|
|
public_configs = [ ":libfsverity_public_config" ]
|
|
install_enable = true
|
|
|
|
output_name = "libfsverity_utils"
|
|
part_name = "fsverity-utils"
|
|
subsystem_name = "thirdparty"
|
|
install_images = [ "system" ]
|
|
}
|
|
|
|
ohos_static_library("libfsverity_utils_static") {
|
|
sources = [
|
|
"lib/compute_digest.c",
|
|
"lib/enable.c",
|
|
"lib/hash_algs.c",
|
|
"lib/sign_digest.c",
|
|
"lib/utils.c",
|
|
]
|
|
include_dirs = [
|
|
"include",
|
|
"common",
|
|
]
|
|
configs = [ ":common_config" ]
|
|
external_deps = [ "openssl:libcrypto_static" ]
|
|
}
|