mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-23 15:49:52 +00:00
refactor: gn files opt
Change-Id: I3955b2af45dae11717e11a8d80dd2a901ebdc843 Signed-off-by: Zen知仁 <xuzhiren@huawei.com>
This commit is contained in:
parent
2628b51b4c
commit
0b581e4afe
@ -133,9 +133,9 @@
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
"//base/user_iam/user_auth/test/user_auth:userauth_native_test",
|
||||
"//base/user_iam/user_auth/test/co_auth:coauth_unittest_test",
|
||||
"//base/user_iam/user_auth/test/user_idm/unittest:UserIDM_UT_test"
|
||||
"//base/user_iam/user_auth/test/user_idm:user_idm_unittest",
|
||||
"//base/user_iam/user_auth/test/user_auth:user_auth_unittest",
|
||||
"//base/user_iam/user_auth/test/co_auth:co_auth_unittest"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,14 @@
|
||||
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("iam_log_config") {
|
||||
include_dirs = [
|
||||
"logs",
|
||||
"logs/co_auth/inc",
|
||||
"logs/user_auth/inc",
|
||||
]
|
||||
}
|
||||
|
||||
config("iam_thread_pool_config") {
|
||||
include_dirs = [ "thread_pool" ]
|
||||
}
|
||||
@ -25,11 +33,11 @@ ohos_source_set("iam_thread_pool") {
|
||||
|
||||
sources = [ "thread_pool/thread_groups.cpp" ]
|
||||
|
||||
deps = []
|
||||
external_deps = [
|
||||
"hilog_native:libhilog",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
public_configs = [ ":iam_thread_pool_config" ]
|
||||
|
||||
part_name = "user_auth"
|
||||
|
@ -1,21 +0,0 @@
|
||||
# Copyright (c) 2022 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("//base/user_iam/user_auth/userauth.gni")
|
||||
|
||||
config("utils_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//utils/native/base/include",
|
||||
]
|
||||
}
|
@ -11,21 +11,19 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("coauth_private_config") {
|
||||
include_dirs = [ "//base/user_iam/user_auth/services/co_auth/inc" ]
|
||||
}
|
||||
|
||||
config("coauth_public_config") {
|
||||
config("coauth_framework_public_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/co_auth",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/common",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_shared_library("coauth_framework") {
|
||||
include_dirs = [ "inc" ]
|
||||
|
||||
sources = [
|
||||
"src/auth_attributes.cpp",
|
||||
"src/auth_executor.cpp",
|
||||
@ -46,23 +44,20 @@ ohos_shared_library("coauth_framework") {
|
||||
"src/set_prop_callback_stub.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"//base/user_iam/user_auth/common/logs/co_auth:utils_config",
|
||||
":coauth_private_config",
|
||||
]
|
||||
|
||||
public_configs = [
|
||||
":coauth_public_config",
|
||||
"//base/user_iam/user_auth/common/logs/co_auth:utils_config",
|
||||
]
|
||||
|
||||
deps = [ "//utils/native/base:utils" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"samgr_standard:samgr_proxy",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
part_name = "${coauth_native_part_name}"
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
|
||||
public_configs = [
|
||||
":coauth_framework_public_config",
|
||||
"//base/user_iam/user_auth/common:iam_log_config",
|
||||
]
|
||||
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
@ -11,24 +11,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("userauth_public_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/frameworks/user_auth/inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/common",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_auth",
|
||||
"//third_party/libuv/include",
|
||||
]
|
||||
include_dirs = [ "inc" ]
|
||||
}
|
||||
|
||||
ohos_shared_library("userauth") {
|
||||
cflags = [
|
||||
"-fPIC",
|
||||
"-g3",
|
||||
]
|
||||
include_dirs = [ "inc" ]
|
||||
|
||||
sources = [
|
||||
"src/auth_build.cpp",
|
||||
@ -38,35 +28,33 @@ ohos_shared_library("userauth") {
|
||||
"src/user_auth_impl.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/user_auth:userauth_framework",
|
||||
"//foundation/ace/napi:ace_napi",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common/logs/user_auth:utils_config" ]
|
||||
|
||||
public_configs = [ ":userauth_public_config" ]
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/user_auth:userauth_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"napi:ace_napi",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
relative_install_dir = "module"
|
||||
cflags = [
|
||||
"-fPIC",
|
||||
"-g3",
|
||||
]
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
public_configs = [ ":userauth_public_config" ]
|
||||
|
||||
relative_install_dir = "module"
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
||||
ohos_shared_library("userauth_napi") {
|
||||
cflags = [
|
||||
"-fPIC",
|
||||
"-g3",
|
||||
]
|
||||
|
||||
defines = [ "USER_AUTH_FOR_KITS" ]
|
||||
|
||||
include_dirs = [ "inc" ]
|
||||
|
||||
sources = [
|
||||
"src/auth_build.cpp",
|
||||
"src/authapi_callback.cpp",
|
||||
@ -75,19 +63,21 @@ ohos_shared_library("userauth_napi") {
|
||||
"src/user_auth_impl.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/user_auth:userauth_framework",
|
||||
"//foundation/ace/napi:ace_napi",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common/logs/user_auth:utils_config" ]
|
||||
|
||||
public_configs = [ ":userauth_public_config" ]
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/user_auth:userauth_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"napi:ace_napi",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
public_configs = [ ":userauth_public_config" ]
|
||||
|
||||
cflags = [
|
||||
"-fPIC",
|
||||
"-g3",
|
||||
]
|
||||
|
||||
relative_install_dir = "module/useriam"
|
||||
|
@ -10,8 +10,7 @@
|
||||
# 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("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/lite/config/component/lite_component.gni")
|
||||
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("useridm_public_config") {
|
||||
@ -26,6 +25,12 @@ config("useridm_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("useridm") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//third_party/libuv/include",
|
||||
"//base/user_iam/user_auth/frameworks/user_idm:ohosuseridm",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"src/auth_common.cpp",
|
||||
"src/authface_userIDM_helper.cpp",
|
||||
@ -33,31 +38,19 @@ ohos_shared_library("useridm") {
|
||||
"src/useridentity_manager.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//third_party/libuv/include",
|
||||
"//base/user_iam/user_auth/frameworks/user_idm:ohosuseridm",
|
||||
]
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/user_idm:useridm_framework" ]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/user_idm:useridm_framework",
|
||||
"//foundation/ace/napi:ace_napi",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
public_configs = [ ":useridm_public_config" ]
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"napi:ace_napi",
|
||||
"utils_base:utils",
|
||||
]
|
||||
if (is_standard_system) {
|
||||
external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
|
||||
} else {
|
||||
external_deps += [ "hilog:libhilog" ]
|
||||
}
|
||||
|
||||
public_deps = []
|
||||
public_configs = [ ":useridm_public_config" ]
|
||||
|
||||
relative_install_dir = "module"
|
||||
part_name = "${useridm_native_part_name}"
|
||||
|
||||
subsystem_name = "useriam"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
@ -11,46 +11,37 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//foundation/aafwk/standard/feature.gni")
|
||||
|
||||
config("userauth_private_config") {
|
||||
include_dirs = [ "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include" ]
|
||||
}
|
||||
|
||||
config("userauth_public_config") {
|
||||
config("userauth_framework_public_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/common",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_auth",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
"//base/user_iam/user_auth/common/logs/user_auth/inc",
|
||||
"//base/user_iam/user_idm/interfaces/innerkits/include",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/common",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_shared_library("userauth_framework") {
|
||||
include_dirs = [ "inc" ]
|
||||
|
||||
sources = [
|
||||
"${userauth_frameworks_path}/user_auth/src/user_auth.cpp",
|
||||
"${userauth_frameworks_path}/user_auth/src/user_auth_native.cpp",
|
||||
"${userauth_frameworks_path}/user_auth/src/userauth_async_stub.cpp",
|
||||
"${userauth_frameworks_path}/user_auth/src/userauth_proxy.cpp",
|
||||
"${userauth_frameworks_path}/user_idm/user_idm.cpp",
|
||||
"src/user_auth.cpp",
|
||||
"src/user_auth_native.cpp",
|
||||
"src/userauth_async_stub.cpp",
|
||||
"src/userauth_proxy.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"//base/user_iam/user_auth/common/logs/user_auth:utils_config",
|
||||
":userauth_private_config",
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/co_auth:coauth_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"samgr_standard:samgr_proxy",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
public_configs = [ ":userauth_public_config" ]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/co_auth:coauth_framework",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
if (ability_runtime_graphics) {
|
||||
if (defined(ability_runtime_graphics) && ability_runtime_graphics) {
|
||||
deps += [
|
||||
"//base/user_iam/face_auth/interfaces/innerkits/faceauth:faceauth_framework",
|
||||
"//foundation/graphic/standard:libsurface",
|
||||
@ -58,11 +49,12 @@ ohos_shared_library("userauth_framework") {
|
||||
defines = [ "SUPPORT_SURFACE" ]
|
||||
}
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"samgr_standard:samgr_proxy",
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
public_configs = [
|
||||
":userauth_framework_public_config",
|
||||
"//base/user_iam/user_auth/common:iam_log_config",
|
||||
]
|
||||
|
||||
part_name = "${userauth_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
@ -11,19 +11,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("useridm_private_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"${useridm_services_path}/inc",
|
||||
"//base/user_iam/user_auth/common/logs/user_idm",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
|
||||
]
|
||||
}
|
||||
|
||||
config("useridm_public_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
@ -32,6 +21,13 @@ config("useridm_public_config") {
|
||||
}
|
||||
|
||||
ohos_shared_library("useridm_framework") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/services/user_idm/inc",
|
||||
"//base/user_iam/user_auth/common/logs/user_idm",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"src/useridm_callback_stub.cpp",
|
||||
"src/useridm_client.cpp",
|
||||
@ -40,17 +36,14 @@ ohos_shared_library("useridm_framework") {
|
||||
"src/useridm_proxy.cpp",
|
||||
]
|
||||
|
||||
configs = [ ":useridm_private_config" ]
|
||||
|
||||
public_configs = [ ":useridm_public_config" ]
|
||||
|
||||
deps = [ "//utils/native/base:utils" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"samgr_standard:samgr_proxy",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
part_name = "${useridm_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
@ -14,10 +14,6 @@
|
||||
*/
|
||||
|
||||
#include "user_idm.h"
|
||||
#include <if_system_ability_manager.h>
|
||||
#include <iservice_registry.h>
|
||||
#include <system_ability_definition.h>
|
||||
#include "useridm_client.h"
|
||||
#include "userauth_hilog_wrapper.h"
|
||||
|
||||
namespace OHOS {
|
||||
|
@ -11,13 +11,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
|
||||
ohos_sa_profile("coauth_sa_profile") {
|
||||
sources = [ "931.xml" ]
|
||||
part_name = "${coauth_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
||||
ohos_prebuilt_etc("useriam.init") {
|
||||
if (use_musl) {
|
||||
source = "useriam.cfg"
|
||||
|
@ -11,11 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
|
||||
ohos_sa_profile("userauth_sa_profile") {
|
||||
sources = [ "921.xml" ]
|
||||
part_name = "${userauth_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
@ -11,11 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/sa_profile/sa_profile.gni")
|
||||
|
||||
ohos_sa_profile("useridm_sa_profile") {
|
||||
sources = [ "901.xml" ]
|
||||
part_name = "${useridm_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
@ -11,20 +11,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
|
||||
config("coauth_private_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/common/interface",
|
||||
]
|
||||
}
|
||||
|
||||
config("coauth_public_config") {
|
||||
include_dirs = [ "inc" ]
|
||||
}
|
||||
import("//build/ohos.gni")
|
||||
|
||||
ohos_shared_library("coauthservice") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"common/interface",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"src/auth_res_manager.cpp",
|
||||
"src/auth_res_pool.cpp",
|
||||
@ -36,17 +30,11 @@ ohos_shared_library("coauthservice") {
|
||||
"src/executor_messenger.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"//base/user_iam/user_auth/common/logs/co_auth:utils_config",
|
||||
":coauth_private_config",
|
||||
]
|
||||
|
||||
public_configs = [ ":coauth_public_config" ]
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/co_auth:coauth_framework",
|
||||
"//base/user_iam/user_auth/services/co_auth/common:useriam_common_lib",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -56,7 +44,9 @@ ohos_shared_library("coauthservice") {
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr_standard:samgr_proxy",
|
||||
"startup_l2:syspara",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
part_name = "${coauth_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
@ -17,9 +17,18 @@ import("//build/ohos.gni")
|
||||
import("//build/ohos_var.gni")
|
||||
|
||||
ohos_shared_library("useriam_common_lib") {
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
|
||||
include_dirs = [
|
||||
"lock/inc",
|
||||
"adaptor/inc",
|
||||
"coauth/inc",
|
||||
"database/inc",
|
||||
"common/inc",
|
||||
"interface",
|
||||
"idm/inc",
|
||||
"key_mgr/inc",
|
||||
"user_auth/inc",
|
||||
"//third_party/openssl/include",
|
||||
]
|
||||
sources = [
|
||||
"adaptor/src/adaptor_algorithm.c",
|
||||
"adaptor/src/adaptor_file.c",
|
||||
@ -52,23 +61,13 @@ ohos_shared_library("useriam_common_lib") {
|
||||
"user_auth/src/user_sign_centre.c",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"lock/inc",
|
||||
"adaptor/inc",
|
||||
"coauth/inc",
|
||||
"database/inc",
|
||||
"common/inc",
|
||||
"interface",
|
||||
"idm/inc",
|
||||
"key_mgr/inc",
|
||||
"user_auth/inc",
|
||||
"//third_party/openssl/include",
|
||||
deps = [ "//third_party/openssl:libcrypto_static" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//third_party/openssl:libcrypto_static",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
@ -11,10 +11,22 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
if (!defined(global_parts_info) ||
|
||||
defined(global_parts_info.account_os_account_standard)) {
|
||||
has_os_account_part = true
|
||||
} else {
|
||||
has_os_account_part = false
|
||||
}
|
||||
|
||||
ohos_shared_library("userauthservice") {
|
||||
cflags_cc = []
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/common/interface",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"src/userauth_adapter.cpp",
|
||||
"src/userauth_async_proxy.cpp",
|
||||
@ -25,14 +37,6 @@ ohos_shared_library("userauthservice") {
|
||||
"src/userauth_stub.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/common/logs/user_auth/inc",
|
||||
"//base/user_iam/user_auth/common/logs",
|
||||
"//base/user_iam/user_auth/frameworks/user_auth/inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/common/interface",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/common:iam_thread_pool",
|
||||
"//base/user_iam/user_auth/frameworks/co_auth:coauth_framework",
|
||||
@ -53,11 +57,14 @@ ohos_shared_library("userauthservice") {
|
||||
]
|
||||
|
||||
if (has_os_account_part) {
|
||||
cflags_cc += [ "-DHAS_OS_ACCOUNT_PART" ]
|
||||
cflags_cc = [ "-DHAS_OS_ACCOUNT_PART" ]
|
||||
external_deps += [ "os_account_standard:os_account_innerkits" ]
|
||||
}
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
|
||||
remove_configs = [ "//build/config/compiler:no_exceptions" ]
|
||||
|
||||
part_name = "${userauth_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
subsystem_name = "useriam"
|
||||
}
|
||||
|
@ -11,57 +11,50 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("useridm_private_config") {
|
||||
include_dirs = [
|
||||
"//base/user_iam/user_auth/common/logs/user_idm",
|
||||
"//base/user_iam/user_auth/services/user_idm/inc",
|
||||
"//base/user_iam/user_auth/frameworks/user_idm/inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
"//base/user_iam/user_auth/services/co_auth/common/interface",
|
||||
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
|
||||
"//base/security/access_token/interfaces/innerkits/accesstoken/include",
|
||||
]
|
||||
}
|
||||
|
||||
config("useridm_public_config") {
|
||||
include_dirs = [ "inc" ]
|
||||
}
|
||||
|
||||
ohos_shared_library("useridmservice") {
|
||||
sources = [
|
||||
"${useridm_services_path}/src/useridm_adapter.cpp",
|
||||
"${useridm_services_path}/src/useridm_callback_proxy.cpp",
|
||||
"${useridm_services_path}/src/useridm_coauth_handler.cpp",
|
||||
"${useridm_services_path}/src/useridm_controller.cpp",
|
||||
"${useridm_services_path}/src/useridm_getinfo_callback_proxy.cpp",
|
||||
"${useridm_services_path}/src/useridm_getsecinfo_callback_proxy.cpp",
|
||||
"${useridm_services_path}/src/useridm_module.cpp",
|
||||
"${useridm_services_path}/src/useridm_service.cpp",
|
||||
"${useridm_services_path}/src/useridm_setprop_handler.cpp",
|
||||
"${useridm_services_path}/src/useridm_stub.cpp",
|
||||
include_dirs = [
|
||||
"//base/user_iam/user_auth/common/logs/user_idm",
|
||||
"//base/user_iam/user_auth/services/user_idm/inc",
|
||||
"//base/user_iam/user_auth/frameworks/user_idm/inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
"//base/user_iam/user_auth/services/co_auth/common/interface",
|
||||
]
|
||||
|
||||
configs = [ ":useridm_private_config" ]
|
||||
sources = [
|
||||
"src/useridm_adapter.cpp",
|
||||
"src/useridm_callback_proxy.cpp",
|
||||
"src/useridm_coauth_handler.cpp",
|
||||
"src/useridm_controller.cpp",
|
||||
"src/useridm_getinfo_callback_proxy.cpp",
|
||||
"src/useridm_getsecinfo_callback_proxy.cpp",
|
||||
"src/useridm_module.cpp",
|
||||
"src/useridm_service.cpp",
|
||||
"src/useridm_setprop_handler.cpp",
|
||||
"src/useridm_stub.cpp",
|
||||
]
|
||||
|
||||
public_configs = [ ":useridm_public_config" ]
|
||||
|
||||
deps = [
|
||||
"//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk",
|
||||
"//base/user_iam/user_auth/frameworks/co_auth:coauth_framework",
|
||||
"//base/user_iam/user_auth/frameworks/user_idm:useridm_framework",
|
||||
"//base/user_iam/user_auth/services/co_auth/common:useriam_common_lib",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr_standard:samgr_proxy",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
part_name = "${useridm_native_part_name}"
|
||||
part_name = "user_auth"
|
||||
}
|
||||
|
@ -11,10 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
group("coauth_unittest_test") {
|
||||
group("co_auth_unittest") {
|
||||
testonly = true
|
||||
deps = [ "unittest:coauth_UT_test" ]
|
||||
deps = [ "unittest:co_auth_test" ]
|
||||
}
|
||||
|
@ -11,32 +11,27 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "user_auth/coauth_UT_test"
|
||||
|
||||
ohos_unittest("coauth_UT_test") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources =
|
||||
[ "//base/user_iam/user_auth/test/co_auth/unittest/src/coauth_test.cpp" ]
|
||||
|
||||
ohos_unittest("co_auth_test") {
|
||||
include_dirs = [
|
||||
"//base/user_iam/user_auth/test/co_auth/unittest/inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/co_auth",
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/services/co_auth/inc",
|
||||
"//base/user_iam/user_auth/frameworks/co_auth/inc",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/co_auth:coauth_framework",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
sources = [ "src/coauth_test.cpp" ]
|
||||
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/co_auth:coauth_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
|
||||
part_name = "user_auth"
|
||||
module_out_path = "${part_name}/${target_name}"
|
||||
}
|
||||
|
@ -11,10 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
group("userauth_native_test") {
|
||||
group("user_auth_unittest") {
|
||||
testonly = true
|
||||
deps = [ "unittest:unittest_test" ]
|
||||
deps = [ "unittest:user_auth_test" ]
|
||||
}
|
||||
|
@ -10,42 +10,32 @@
|
||||
# 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("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "${userauth_native_part_name}/UserAuth_test"
|
||||
|
||||
###############################################################################
|
||||
config("module_private_config") {
|
||||
visibility = [ ":*" ]
|
||||
|
||||
include_dirs = [ "inc" ]
|
||||
}
|
||||
|
||||
##############################unittest##########################################
|
||||
ohos_unittest("unittest_test") {
|
||||
module_out_path = module_output_path
|
||||
ohos_unittest("user_auth_test") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
]
|
||||
|
||||
sources = [
|
||||
"//base/user_iam/user_auth/frameworks/user_idm/user_idm.cpp",
|
||||
"src/user_idm_callback_test.cpp",
|
||||
"src/user_idm_ut_test.cpp",
|
||||
"src/userauth_test.cpp",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/common",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_auth",
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/useridm",
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/user_auth:userauth_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
configs = [ ":module_private_config" ]
|
||||
configs = [ "//base/user_iam/user_auth/common:iam_log_config" ]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/user_auth:userauth_framework",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
external_deps = [ "ipc:ipc_core" ]
|
||||
part_name = "user_auth"
|
||||
module_out_path = "${part_name}/${target_name}"
|
||||
}
|
||||
|
@ -11,11 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
config("utils_config") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//utils/native/include",
|
||||
]
|
||||
group("user_idm_unittest") {
|
||||
testonly = true
|
||||
deps = [ "unittest:user_idm_test" ]
|
||||
}
|
@ -11,20 +11,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//base/user_iam/user_auth/userauth.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
|
||||
module_output_path = "user_auth/UserIDM_UT_test"
|
||||
|
||||
ohos_unittest("UserIDM_UT_test") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources = [
|
||||
"src/useridm_callback_test.cpp",
|
||||
"src/useridm_ut_test.cpp",
|
||||
]
|
||||
|
||||
ohos_unittest("user_idm_test") {
|
||||
include_dirs = [
|
||||
"inc",
|
||||
"//base/user_iam/user_auth/common/logs/user_idm",
|
||||
@ -32,12 +22,19 @@ ohos_unittest("UserIDM_UT_test") {
|
||||
"//base/user_iam/user_auth/interfaces/inner_api/user_idm",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base/user_iam/user_auth/frameworks/user_idm:useridm_framework",
|
||||
"//utils/native/base:utils",
|
||||
sources = [
|
||||
"src/useridm_callback_test.cpp",
|
||||
"src/useridm_ut_test.cpp",
|
||||
]
|
||||
|
||||
deps = [ "//base/user_iam/user_auth/frameworks/user_idm:useridm_framework" ]
|
||||
|
||||
external_deps = [
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"utils_base:utils",
|
||||
]
|
||||
|
||||
part_name = "user_auth"
|
||||
module_out_path = "${part_name}/${target_name}"
|
||||
}
|
||||
|
39
userauth.gni
39
userauth.gni
@ -1,39 +0,0 @@
|
||||
# Copyright (c) 2022 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("//build/ohos.gni")
|
||||
|
||||
userauth_native_part_name = "user_auth"
|
||||
|
||||
userauth_root_path = "//base/user_iam/user_auth"
|
||||
|
||||
userauth_frameworks_path = "${userauth_root_path}/frameworks"
|
||||
|
||||
userauth_interfaces_path = "${userauth_root_path}/interfaces"
|
||||
|
||||
coauth_native_part_name = "user_auth"
|
||||
|
||||
coauth_root_path = "//base/user_iam/user_auth/"
|
||||
|
||||
coauth_service_path = "${coauth_root_path}/services/co_auth"
|
||||
|
||||
useridm_native_part_name = "user_auth"
|
||||
|
||||
useridm_services_path = "//base/user_iam/user_auth/services/user_idm/"
|
||||
|
||||
if (!defined(global_parts_info) ||
|
||||
defined(global_parts_info.account_os_account_standard)) {
|
||||
has_os_account_part = true
|
||||
} else {
|
||||
has_os_account_part = false
|
||||
}
|
Loading…
Reference in New Issue
Block a user