From 1a2ad62b97a672778e580af6404f985ca97e55ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=8F=9E=E9=A3=8E?= Date: Mon, 7 Mar 2022 11:55:30 +0000 Subject: [PATCH 1/2] Description:Modifying the macro definition . Sig:aafwk Feature or Bugfix:Bugfix Binary Source:No #I4VWG0; Signed-off-by: wuluofeng --- frameworks/ability_lite/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frameworks/ability_lite/BUILD.gn b/frameworks/ability_lite/BUILD.gn index 7ed6368..7c14a43 100755 --- a/frameworks/ability_lite/BUILD.gn +++ b/frameworks/ability_lite/BUILD.gn @@ -114,6 +114,10 @@ lite_library("ability") { defines += [ "OPENHARMONY_FONT_PATH" ] } + if (board_name == "bearpi_hm_micro") { + defines += [ "OPENHARMONY_FONT_PATH" ] + } + if (enable_ohos_appexecfwk_feature_ability == true) { defines += [ "ABILITY_WINDOW_SUPPORT" ] } -- Gitee From 92ac730c5bc82d97aa74921a4facb3a071ceaab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=8F=9E=E9=A3=8E?= Date: Mon, 7 Mar 2022 12:00:17 +0000 Subject: [PATCH 2/2] Description:Modifying the macro definition . Sig:aafwk Feature or Bugfix:Bugfix Binary Source:No #I4VWG0; Signed-off-by: wuluofeng --- frameworks/ability_lite/BUILD.gn | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frameworks/ability_lite/BUILD.gn b/frameworks/ability_lite/BUILD.gn index 7c14a43..7e093ad 100755 --- a/frameworks/ability_lite/BUILD.gn +++ b/frameworks/ability_lite/BUILD.gn @@ -110,13 +110,7 @@ lite_library("ability") { "./", ] - if (board_name == "hispark_taurus") { - defines += [ "OPENHARMONY_FONT_PATH" ] - } - - if (board_name == "bearpi_hm_micro") { - defines += [ "OPENHARMONY_FONT_PATH" ] - } + defines += [ "OPENHARMONY_FONT_PATH" ] if (enable_ohos_appexecfwk_feature_ability == true) { defines += [ "ABILITY_WINDOW_SUPPORT" ] -- Gitee