From a3f9192c86fad00cd9674171d811e359a3f52eea Mon Sep 17 00:00:00 2001 From: hekun Date: Fri, 3 Feb 2023 09:30:00 +0800 Subject: [PATCH] fix the gn Signed-off-by: hekun --- arkui/BUILD.gn | 2 +- arkui/ace_ets_component_ui/BUILD.gn | 50 +++++++++++++++-------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/arkui/BUILD.gn b/arkui/BUILD.gn index 0d1f326be..a86488820 100644 --- a/arkui/BUILD.gn +++ b/arkui/BUILD.gn @@ -15,13 +15,13 @@ group("arkui") { testonly = true deps = [ "ace_ets_component:ActsAceEtsComponentTest", - "ace_ets_component_ui:ActsAceEtsComponentUITest", "ace_ets_component_apilack:ActsAceEtsApiLackTest", "ace_ets_component_attrlack:ActsAceEtsAttrLackTest", "ace_ets_component_five:ActsAceEtsComponentFiveTest", "ace_ets_component_four:ActsAceEtsComponentFourTest", "ace_ets_component_three:ActsAceEtsComponentThreeTest", "ace_ets_component_two:ActsAceEtsComponentTwoTest", + "ace_ets_component_ui:ActsAceEtsComponentUITest", "ace_ets_dev:ActsAceDevTest", "ace_ets_standard:ActsAceEtsStTest", "ace_ets_test:ActsAceEtsTest", diff --git a/arkui/ace_ets_component_ui/BUILD.gn b/arkui/ace_ets_component_ui/BUILD.gn index a86488820..26344b9c3 100644 --- a/arkui/ace_ets_component_ui/BUILD.gn +++ b/arkui/ace_ets_component_ui/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Huawei Device Co., Ltd. +# 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 @@ -11,29 +11,31 @@ # See the License for the specific language governing permissions and # limitations under the License. -group("arkui") { - testonly = true +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsAceEtsComponentUITest") { + hap_profile = "entry/src/main/module.json" + js_build_mode = "debug" deps = [ - "ace_ets_component:ActsAceEtsComponentTest", - "ace_ets_component_apilack:ActsAceEtsApiLackTest", - "ace_ets_component_attrlack:ActsAceEtsAttrLackTest", - "ace_ets_component_five:ActsAceEtsComponentFiveTest", - "ace_ets_component_four:ActsAceEtsComponentFourTest", - "ace_ets_component_three:ActsAceEtsComponentThreeTest", - "ace_ets_component_two:ActsAceEtsComponentTwoTest", - "ace_ets_component_ui:ActsAceEtsComponentUITest", - "ace_ets_dev:ActsAceDevTest", - "ace_ets_standard:ActsAceEtsStTest", - "ace_ets_test:ActsAceEtsTest", - "ace_ets_third_test:ActsAceEtsThirdTest", - "ace_ets_web_dev:ActsAceWebDevTest", - "ace_ets_web_dev_three:ActsAceWebDevThreeTest", - "ace_ets_web_dev_two:ActsAceWebDevTwoTest", - "ace_ets_xcomponent:ActsAceXComponentEtsTest", - "ace_js_attribute_api:ActsAceJsApiTest", - "ace_napi_test:ActsAceNapiEtsTest", - "ace_standard:ActsAceStandardTest", - "ace_standard_video:ActsAceStandardVideoTest", - "libuv:libuvTest", + ":ace_ets_component_ui_js_assets", + ":ace_ets_component_ui_resources", ] + ets2abc = true + certificate_profile = "signature/openharmony_sx.p7b" + hap_name = "ActsAceEtsComponentUITest" +} + +ohos_app_scope("ace_ets_component_ui_app_profile") { + app_profile = "AppScope/app.json" + sources = [ "AppScope/resources" ] +} + +ohos_js_assets("ace_ets_component_ui_js_assets") { + source_dir = "entry/src/main/ets" +} + +ohos_resources("ace_ets_component_ui_resources") { + sources = [ "entry/src/main/resources" ] + deps = [ ":ace_ets_component_ui_app_profile" ] + hap_profile = "entry/src/main/module.json" } -- GitLab