communication_dsoftbus/dsoftbus.gni
2021-07-23 14:15:53 +08:00

45 lines
1.8 KiB
Plaintext
Executable File

# Copyright (c) 2021 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.
dsoftbus_root_path = "//foundation/communication/dsoftbus"
dsoftbus_sdk_path = "//foundation/communication/dsoftbus/sdk"
dsoftbus_core_path = "//foundation/communication/dsoftbus/core"
declare_args()
{
softbus_adapter_common = "//foundation/communication/dsoftbus/adapter/common"
softbus_adapter_config = "//foundation/communication/dsoftbus/adapter/default_config"
}
if (defined(ohos_lite)) {
libsec_include_path = "//third_party/bounds_checking_function/include"
if (ohos_kernel_type == "liteos_m") {
import("$softbus_adapter_config/feature_config/mini/config.gni")
hilog_lite_include_path =
"//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite"
hilog_lite_deps_path =
"//base/hiviewdfx/hilog_lite/frameworks/mini:hilog_lite"
libsec_deps_path = "//third_party/bounds_checking_function:libsec_static"
} else {
import("$softbus_adapter_config/feature_config/small/config.gni")
hilog_lite_include_path =
"//base/hiviewdfx/hilog_lite/interfaces/native/innerkits"
hilog_lite_deps_path =
"//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared"
libsec_deps_path = "//third_party/bounds_checking_function:libsec_shared"
}
} else {
import("$softbus_adapter_config/feature_config/standard/config.gni")
}