# Copyright (c) 2020-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/lite/config/component/lite_component.gni") shared_library("hdf_posix_osal") { hdf_framework_path = "./../../../../framework" hdf_core_path = "./../../../../../hdf_core" output_name = "hdf_osal" deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", "//third_party/bounds_checking_function:libsec_shared", ] sources = [ "$hdf_framework_path/support/posix/src/osal_mem.c", "$hdf_framework_path/support/posix/src/osal_mutex.c", "$hdf_framework_path/support/posix/src/osal_sem.c", "$hdf_framework_path/support/posix/src/osal_spinlock.c", "$hdf_framework_path/support/posix/src/osal_thread.c", "$hdf_framework_path/support/posix/src/osal_time.c", ] include_dirs = [ "$hdf_core_path/framework/include/osal", "$hdf_core_path/interfaces/inner_api/osal/shared", "$hdf_core_path/interfaces/inner_api/utils", "$hdf_core_path/adapter/uhdf/posix/include", ] defines = [ "__USER__" ] ldflags = [ "-lpthread" ] } lite_component("hdf_posix") { features = [ ":hdf_posix_osal" ] }