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