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/ohos.gni")
12import("//build/ohos_var.gni")
13
14config("exported_header_files") {
15  include_dirs = [ "include" ]
16}
17
18ohos_shared_library("libteec") {
19  part_name = "tee_client"
20  subsystem_name = "tee"
21  output_extension = "so"
22
23  sources = [ "src/tee_client.cpp" ]
24
25  include_dirs = [
26    "src/",
27    "include",
28    "../../inner_api/libteec_vendor",
29    "../../../frameworks/include",
30    "../../../frameworks/include/standard/teec_system/",
31    "../../../frameworks/include/standard/",
32    "../../../frameworks/libteec_vendor/",
33    "../../../services/authentication",
34  ]
35
36  external_deps = [
37    "bounds_checking_function:libsec_shared",
38    "c_utils:utils",
39    "hilog:libhilog",
40    "ipc:ipc_core",
41    "safwk:system_ability_fwk",
42    "samgr:samgr_proxy",
43  ]
44
45  ldflags = [
46    "-Wl,-z,max-page-size=4096",
47    "-Wl,-z,separate-code",
48  ]
49  public_configs = [ ":exported_header_files" ]
50}
51