1# Copyright (c) 2024 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 = "12" 21 system_capability = "SystemCapability.Tee.TeeClient" 22 system_capability_headers = [ 23 "./include/tee_client_api.h", 24 "./include/tee_client_constants.h", 25 "./include/tee_client_type.h", 26 ] 27} 28 29ohos_ndk_headers("libtee_header") { 30 dest_dir = "$ndk_headers_out_dir/tee" 31 sources = [ 32 "./include/oemkey.h", 33 "./include/rpmb_driver_rw_api.h", 34 "./include/rpmb_fcntl.h", 35 "./include/tee_arith_api.h", 36 "./include/tee_core_api.h", 37 "./include/tee_crypto_api.h", 38 "./include/tee_crypto_hal.h", 39 "./include/tee_defines.h", 40 "./include/tee_drv_client.h", 41 "./include/tee_dynamic_srv.h", 42 "./include/tee_ext_api.h", 43 "./include/tee_hw_ext_api.h", 44 "./include/tee_hw_ext_api_legacy.h", 45 "./include/tee_internal_se_api.h", 46 "./include/tee_log.h", 47 "./include/tee_mem_mgmt_api.h", 48 "./include/tee_mem_monitoring_api.h", 49 "./include/tee_object_api.h", 50 "./include/tee_property_api.h", 51 "./include/tee_rtc_time_api.h", 52 "./include/tee_service_public.h", 53 "./include/tee_sharemem_ops.h", 54 "./include/tee_time_api.h", 55 "./include/tee_trusted_storage_api.h", 56 "./include/tee_tui_gp_api.h", 57 ] 58} 59 60ohos_ndk_headers("libteec_header") { 61 dest_dir = "$ndk_headers_out_dir/tee_client" 62 sources = [ 63 "./include/tee_client_api.h", 64 "./include/tee_client_constants.h", 65 "./include/tee_client_type.h", 66 ] 67} 68 69group("tee_ndk_header") { 70 deps = [ 71 ":libtee_header", 72 ":libteec_header", 73 ] 74} 75