• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2022 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
14deviceauth_path = "//base/security/device_auth"
15common_lib_path = "${deviceauth_path}/common_lib"
16deps_adapter_path = "${deviceauth_path}/deps_adapter"
17key_management_adapter_path =
18    "${deviceauth_path}/deps_adapter/key_management_adapter"
19os_adapter_path = "${deviceauth_path}/deps_adapter/os_adapter"
20
21innerkits_path = "${deviceauth_path}/interfaces/innerkits"
22frameworks_path = "${deviceauth_path}/frameworks"
23services_path = "${deviceauth_path}/services"
24
25declare_args() {
26  deviceauth_feature_config = "//base/security/device_auth/default_config"
27  enable_soft_bus_channel = true
28}
29
30if (defined(ohos_lite)) {
31  if (ohos_kernel_type == "liteos_m") {
32    import("${deviceauth_feature_config}/mini/config.gni")
33    enable_soft_bus_channel = false
34  } else {
35    import("${deviceauth_feature_config}/small/config.gni")
36  }
37} else {
38  import("${deviceauth_feature_config}/standard/config.gni")
39}
40