• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License"),
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15
16ohos_ndk_library("libteec") {
17  output_name = "teec"
18  output_extension = "so"
19  ndk_description_file = "./libteec.ndk.json"
20  min_compact_version = "20"
21  system_capability = "SystemCapability.Tee.TeeClient"
22  system_capability_headers = [
23    "TEEKit/tee_client/tee_client_api.h",
24    "TEEKit/tee_client/tee_client_constants.h",
25    "TEEKit/tee_client/tee_client_type.h",
26  ]
27}
28
29ohos_ndk_headers("libtee_header") {
30  dest_dir = "$ndk_headers_out_dir/TEEKit/tee"
31  sources = [
32    "./include/tee/dstb_api.h",
33    "./include/tee/pthread_attr.h",
34    "./include/tee/rpmb_driver_rw_api.h",
35    "./include/tee/rpmb_fcntl.h",
36    "./include/tee/tee_agent.h",
37    "./include/tee/tee_apm_api.h",
38    "./include/tee/tee_arith_api.h",
39    "./include/tee/tee_core_api.h",
40    "./include/tee/tee_crypto_api.h",
41    "./include/tee/tee_crypto_hal.h",
42    "./include/tee/tee_defines.h",
43    "./include/tee/tee_drv_client.h",
44    "./include/tee/tee_dynamic_srv.h",
45    "./include/tee/tee_ext_api.h",
46    "./include/tee/tee_get_recoverymode.h",
47    "./include/tee/tee_hw_ext_api.h",
48    "./include/tee/tee_hw_ext_api_legacy.h",
49    "./include/tee/tee_internal_se_api.h",
50    "./include/tee/tee_log.h",
51    "./include/tee/tee_mem_mgmt_api.h",
52    "./include/tee/tee_notify_set_priority.h",
53    "./include/tee/tee_object_api.h",
54    "./include/tee/tee_property_api.h",
55    "./include/tee/tee_rtc_time_api.h",
56    "./include/tee/tee_service_public.h",
57    "./include/tee/tee_sharemem.h",
58    "./include/tee/tee_sharemem_ops.h",
59    "./include/tee/tee_time_api.h",
60    "./include/tee/tee_trusted_storage_api.h",
61    "./include/tee/tee_tui_gp_api.h",
62  ]
63}
64
65ohos_ndk_headers("libteec_header") {
66  dest_dir = "$ndk_headers_out_dir/TEEKit/tee_client"
67  sources = [
68    "./include/tee_client/tee_client_api.h",
69    "./include/tee_client/tee_client_constants.h",
70    "./include/tee_client/tee_client_type.h",
71  ]
72}
73
74group("tee_ndk_header") {
75  deps = [
76    ":libtee_header",
77    ":libteec_header",
78  ]
79}
80