1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan PSL v2.
4# You may obtain a copy of Mulan PSL v2 at:
5#     http://license.coscl.org.cn/MulanPSL2
6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
8# PURPOSE.
9# See the Mulan PSL v2 for more details.
10
11import("//build/lite/config/component/lite_component.gni")
12shared_library("libteec_vendor") {
13    output_dir = "$root_out_dir/vendor/lib"
14
15    sources = [
16        "../../libteec_vendor/tee_client_api.c",
17        "../../libteec_vendor/tee_client_app_load.c",
18        "../../libteec_vendor/load_sec_file.c",
19        "../../../services/authentication/tee_auth_common.c",
20        "../../../services/authentication/tee_get_native_cert.c",
21    ]
22
23    include_dirs = [
24        "//third_party/bounds_checking_function/include",
25        "//utils/system/safwk/native/include",
26        "//developtools/liblog",
27        "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
28        "//base/tee/tee_client/interfaces/kits/c/include"
29        "//base/tee/tee_client/interfaces/inner_api/libteec_vendor",
30        "../../include",
31        "../../include/lite",
32        "../../libteec_vendor/",
33        "../../../services/cadaemon/src/authentication",
34    ]
35
36    deps = [
37        "//third_party/bounds_checking_function:libsec_shared",
38        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
39    ]
40    cflags = [ "-fPIC" ]
41}
42