From 92d5da0f59044a9f718ace554e547c3756b6c401 Mon Sep 17 00:00:00 2001 From: harry-john Date: Mon, 22 Nov 2021 17:59:03 +0800 Subject: [PATCH] add permission Signed-off-by: harry-john Change-Id: Ie6eb284b8812980dfa928a4fd7ee870419ffe5cd --- security/BUILD.gn | 4 +- security/permission/permissionkitcpp/BUILD.gn | 94 +++++++++---------- 2 files changed, 47 insertions(+), 51 deletions(-) diff --git a/security/BUILD.gn b/security/BUILD.gn index 8d347b581..9c2ddc1c7 100755 --- a/security/BUILD.gn +++ b/security/BUILD.gn @@ -18,11 +18,11 @@ group("security") { if (is_standard_system) { deps = [ # "authentication_standard/deviceauth_p2p:DeviceauthP2PFunctionCPPTest", + "dataprotect/huks_standard_adapter:huks_std_function_test", + "deviceauth/deviceauth_function:DeviceAuthFunctionTest", "permission/permissionkitcpp:PermissionKitFunctionCPPTest", "permission/permissionkitcpp:PermissionKitPerformanceCPPTest", "permission/permissionkitcpp:PermissionKitReliabilityCPPTest", - "dataprotect/huks_standard_adapter:huks_std_function_test", - "deviceauth/deviceauth_function:DeviceAuthFunctionTest", ] } else { deps = diff --git a/security/permission/permissionkitcpp/BUILD.gn b/security/permission/permissionkitcpp/BUILD.gn index 9c1ff6b7b..c8d28206a 100644 --- a/security/permission/permissionkitcpp/BUILD.gn +++ b/security/permission/permissionkitcpp/BUILD.gn @@ -14,68 +14,64 @@ import("//test/xts/tools/build/suite.gni") ################################################################################## -config("module_private_config"){ - visibility = [ ":*" ] - include_dirs = [ - "//utils/native/base/include", - "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk/main/cpp/include/permission" - ] +config("module_private_config") { + visibility = [ ":*" ] + include_dirs = [ + "//utils/native/base/include", + "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk/main/cpp/include/permission", + ] } ################################################################################## -ohos_moduletest_suite("PermissionKitFunctionCPPTest"){ - subsystem_name = "hits" - part_name = "permission_standard" - module_out_path = subsystem_name + "/" + part_name +ohos_moduletest_suite("PermissionKitFunctionCPPTest") { + subsystem_name = "hits" + part_name = "permission_standard" + module_out_path = subsystem_name + "/" + part_name - configs = [ ":module_private_config" ] + configs = [ ":module_private_config" ] - cflags_cc = ["-DHILOG_ENABLE"] + cflags_cc = [ "-DHILOG_ENABLE" ] - sources = [ - "src/PermissionKitFunctionCPPTest.cpp" - ] - deps = [ - "//utils/native/base:utils", - "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", - "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", - ] + sources = [ "src/PermissionKitFunctionCPPTest.cpp" ] + deps = [ + "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", + "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", + "//utils/native/base:utils", + ] } + ################################################################################## -ohos_moduletest_suite("PermissionKitPerformanceCPPTest"){ - subsystem_name = "hits" - part_name = "permission_standard" - module_out_path = subsystem_name + "/" + part_name +ohos_moduletest_suite("PermissionKitPerformanceCPPTest") { + subsystem_name = "hits" + part_name = "permission_standard" + module_out_path = subsystem_name + "/" + part_name - configs = [ ":module_private_config" ] + configs = [ ":module_private_config" ] - cflags_cc = ["-DHILOG_ENABLE"] + cflags_cc = [ "-DHILOG_ENABLE" ] - sources = [ - "src/PermissionKitPerformanceCPPTest.cpp" - ] - deps = [ - "//utils/native/base:utils", - "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", - "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", - ] + sources = [ "src/PermissionKitPerformanceCPPTest.cpp" ] + deps = [ + "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", + "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", + "//utils/native/base:utils", + ] } + ################################################################################## -ohos_moduletest_suite("PermissionKitReliabilityCPPTest"){ - subsystem_name = "hits" - part_name = "permission_standard" - module_out_path = subsystem_name + "/" + part_name +ohos_moduletest_suite("PermissionKitReliabilityCPPTest") { + subsystem_name = "hits" + part_name = "permission_standard" + module_out_path = subsystem_name + "/" + part_name - configs = [ ":module_private_config" ] + configs = [ ":module_private_config" ] - cflags_cc = ["-DHILOG_ENABLE"] + cflags_cc = [ "-DHILOG_ENABLE" ] - sources = [ - "src/PermissionKitReliabilityCPPTest.cpp" - ] - deps = [ - "//utils/native/base:utils", - "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", - "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", - ] -} \ No newline at end of file + sources = [ "src/PermissionKitReliabilityCPPTest.cpp" ] + deps = [ + "//base/security/permission/frameworks/permission_standard/permissioninfrastructure:permission_standard_infrastructure_cxx", + "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk:libpermissionsdk_standard", + "//utils/native/base:utils", + ] +} -- GitLab