2021-06-01 16:43:15 +00:00
|
|
|
# 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.
|
|
|
|
|
2021-07-17 07:54:25 +00:00
|
|
|
if (defined(ohos_lite)) {
|
|
|
|
import("//build/lite/config/component/lite_component.gni")
|
2021-07-19 06:11:21 +00:00
|
|
|
lite_component("deviceauth_lite") {
|
2021-09-08 02:28:11 +00:00
|
|
|
features = [ "services:deviceauth" ]
|
|
|
|
if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") {
|
|
|
|
features += [
|
|
|
|
"services:deviceauth_service",
|
|
|
|
"services:deviceauth_sdk",
|
|
|
|
]
|
|
|
|
}
|
2021-07-17 07:54:25 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
import("//build/ohos.gni")
|
|
|
|
import("deviceauth_env.gni")
|
2021-06-01 16:43:15 +00:00
|
|
|
|
2022-01-29 08:13:47 +00:00
|
|
|
group("deviceauth_sdk_build") {
|
2022-01-20 12:41:28 +00:00
|
|
|
if (os_level == "standard" || os_level == "small") {
|
2022-01-27 08:46:53 +00:00
|
|
|
deps = [ "services:deviceauth_sdk" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-29 08:13:47 +00:00
|
|
|
group("deviceauth_service_build") {
|
2022-01-27 08:46:53 +00:00
|
|
|
if (os_level == "standard" || os_level == "small") {
|
|
|
|
deps = [ "services:deviceauth_service" ]
|
2022-01-20 12:41:28 +00:00
|
|
|
}
|
2021-07-17 07:54:25 +00:00
|
|
|
}
|
2021-09-08 02:28:11 +00:00
|
|
|
|
2022-01-29 08:13:47 +00:00
|
|
|
group("deviceauth_build") {
|
2022-01-27 08:46:53 +00:00
|
|
|
deps = [ "services:deviceauth" ]
|
|
|
|
}
|
|
|
|
|
2021-07-17 07:54:25 +00:00
|
|
|
group("deviceauth_test_build") {
|
2022-01-20 12:41:28 +00:00
|
|
|
if (os_level == "standard") {
|
|
|
|
testonly = true
|
|
|
|
deps = [ "test/unittest/deviceauth:deviceauth_llt" ]
|
|
|
|
}
|
2021-07-17 07:54:25 +00:00
|
|
|
}
|
2021-06-01 16:43:15 +00:00
|
|
|
}
|