From cc811ac84f626d456a5f6f30afd50a8b01e0fdb2 Mon Sep 17 00:00:00 2001 From: xujunyang Date: Mon, 23 Jun 2025 22:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=8B=9F=E5=99=A8?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=99=A8=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xujunyang --- services/BUILD.gn | 4 ++-- test/unittest/service_test/BUILD.gn | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/BUILD.gn b/services/BUILD.gn index c1da5b07..1b324a76 100755 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -128,7 +128,7 @@ ohos_shared_library("time_system_ability") { ] } - if (time_service_set_auto_reboot) { + if (!is_emulator && time_service_set_auto_reboot) { defines += [ "SET_AUTO_REBOOT_ENABLE" ] } @@ -230,7 +230,7 @@ ohos_static_library("time_system_ability_static") { defines += [ "DEVICE_STANDBY_ENABLE" ] } - if (time_service_set_auto_reboot) { + if (!is_emulator && time_service_set_auto_reboot) { defines += [ "SET_AUTO_REBOOT_ENABLE" ] } diff --git a/test/unittest/service_test/BUILD.gn b/test/unittest/service_test/BUILD.gn index e731906d..6c44a69f 100644 --- a/test/unittest/service_test/BUILD.gn +++ b/test/unittest/service_test/BUILD.gn @@ -56,7 +56,7 @@ ohos_unittest("TimeServiceTimeTest") { debug = false } defines = [] - if (time_service_set_auto_reboot) { + if (!is_emulator && time_service_set_auto_reboot) { defines += [ "SET_AUTO_REBOOT_ENABLE" ] } external_deps = [ @@ -108,7 +108,7 @@ ohos_unittest("TimeServiceTimerTest") { debug = false } defines = [] - if (time_service_set_auto_reboot) { + if (!is_emulator && time_service_set_auto_reboot) { defines += [ "SET_AUTO_REBOOT_ENABLE" ] } external_deps = [ -- Gitee