# Copyright (c) 2020 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("../config.gni") if (!enable_ohos_systemabilitymgr_samgr_lite_rpc_mini) { config("endpoint_public") { include_dirs = [ "../samgr/adapter", "//commonlibrary/utils_lite/include", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", "//third_party/bounds_checking_function/include", "//base/security/permission_lite/services/ipc_auth/include", ] } config("endpoint_internal") { include_dirs = [ "./source", "../samgr/registry", ] } source_set("endpoint_source") { sources = [ "source/client_factory.c", "source/default_client_rpc.c", "source/default_client_small_adapter.c", "source/endpoint_rpc.c", "source/samgr_small_ipc_adapter.c", "source/token_bucket.c", ] cflags = [ "-fPIC", "-Wall", ] cflags += [ "-Wno-int-conversion" ] if (ohos_kernel_type == "linux") { defines = [ "_GNU_SOURCE", "LITE_LINUX_BINDER_IPC", ] } configs += [ ":endpoint_internal" ] public_configs = [ ":endpoint_public" ] public_deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//third_party/bounds_checking_function:libsec_shared", ] } source_set("store_source") { sources = [ "source/sa_store.c" ] cflags = [ "-fPIC", "-Wall", ] configs += [ ":endpoint_internal" ] public_configs = [ ":endpoint_public" ] public_deps = [ "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", "//third_party/bounds_checking_function:libsec_shared", ] } } else { defines = [ "MINI_SAMGR_LITE_RPC" ] config("endpoint_public") { include_dirs = [ "../samgr/adapter", "//commonlibrary/utils_lite/include", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", "//third_party/bounds_checking_function/include", "//base/security/permission_lite/services/ipc_auth/include", ] } config("endpoint_internal") { include_dirs = [ "./source", "../samgr/registry", "//foundation/systemabilitymgr/samgr_lite/samgr_server/source", "//base/security/permission_lite/interfaces/innerkits", "//base/security/permission_lite/services/pms_base/include", ] } source_set("endpoint_source") { sources = [ "source/client_factory.c", "source/default_client_mini_adapter.c", "source/default_client_rpc.c", "source/endpoint_rpc.c", "source/samgr_mini_ipc_adapter.c", "source/token_bucket.c", ] if (ohos_kernel_type == "linux") { defines = [ "_GNU_SOURCE", "LITE_LINUX_BINDER_IPC", ] } configs += [ ":endpoint_internal" ] public_configs = [ ":endpoint_public" ] public_deps = [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_static", "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", ] } source_set("store_source") { sources = [ "source/sa_store.c" ] configs += [ ":endpoint_internal" ] public_configs = [ ":endpoint_public" ] public_deps = [ "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", ] } }