• 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
14if (defined(ohos_lite)) {
15  import("//build/lite/config/component/lite_component.gni")
16  lite_component("deviceauth_lite") {
17    features = [ "services:deviceauth" ]
18    if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") {
19      features += [
20        "services:deviceauth_service",
21        "services:deviceauth_sdk",
22      ]
23    }
24  }
25} else {
26  import("//build/ohos.gni")
27  import("deviceauth_env.gni")
28
29  group("deviceauth_sdk_build") {
30    if (os_level == "standard" || os_level == "small") {
31      deps = [ "services:deviceauth_sdk" ]
32    }
33  }
34
35  group("deviceauth_service_build") {
36    if (os_level == "standard" || os_level == "small") {
37      deps = [ "services:deviceauth_service" ]
38    }
39  }
40
41  group("deviceauth_build") {
42    deps = [ "services:deviceauth" ]
43  }
44
45  group("deviceauth_test_build") {
46    if (os_level == "standard") {
47      testonly = true
48      deps = [ "test/unittest/deviceauth:deviceauth_llt" ]
49    }
50  }
51}
52