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")
12executable("teecd") {
13    output_dir = "$root_out_dir/vendor"
14
15    sources = [
16        "../../src/tee_agent.c",
17        "../../src/fs_work_agent.c",
18        "../../src/late_init_agent.c",
19        "../../src/misc_work_agent.c",
20        "../../src/tee_load_dynamic_drv.c",
21        "../../src/secfile_load_agent.c",
22    ]
23
24    deps = [
25        "//third_party/bounds_checking_function:libsec_shared",
26        "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
27    ]
28
29    include_dirs = [
30        "//utils/system/safwk/native/include",
31        "//developtools/liblog",
32        "//base/hiviewdfx/hilog/interfaces/native/innerkits/include",
33        "//base/tee/tee_client/interfaces/kits/c/include",
34        "../../include",
35        "../../include/lite",
36        "../../../../frameworks/include",
37        "../../../../frameworks/include/lite",
38        "../../../../frameworks/libteec_vendor",
39    ]
40}
41