1# 2# Copyright (c) 2020 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# 15 16import("//build/lite/config/component/lite_component.gni") 17 18source_set("libteec_src") { 19 sources = [ 20 "src/tee_client_api.c", 21 "src/tee_client_app_load.c", 22 ] 23 24 if (ohos_kernel_type == "liteos_a") { 25 defines = [ "TEE_LITEOS_A" ] 26 } 27 28 include_dirs = [ 29 "include", 30 "//device/hisilicon/itrustee/itrustee_ree_lite/services/teecd/include", 31 "//device/hisilicon/itrustee/itrustee_ree_lite/interfaces/innerkits/libteec", 32 "//third_party/bounds_checking_function/include", 33 ] 34 cflags = [ "-fPIC" ] 35} 36 37lite_component("libteec_vendor") { 38 target_type = "shared_library" 39 output_dir = "$root_out_dir/vendor/lib" 40 41 features = [ ":libteec_src" ] 42 43 deps = [ 44 "//device/hisilicon/itrustee/itrustee_ree_lite/services/teecd:teecd_public_src", 45 "//third_party/bounds_checking_function:libsec_shared", 46 ] 47 cflags = [ "-fPIC" ] 48} 49