1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/config/ohos/config.gni") 15import("//build/ohos.gni") 16import("//test/xts/tools/build/suite.gni") 17 18ohos_js_hap_suite("ActsAceXComponentEtsTest") { 19 subsystem_name = "arkui" 20 part_name = "ace_engine" 21 hap_profile = "./entry/src/main/config.json" 22 deps = [ 23 ":ace_ets_xcomponent_assets", 24 ":ace_ets_xcomponent_resources", 25 ":ace_ets_xcomponent_test_assets", 26 ] 27 ets2abc = true 28 certificate_profile = "./signature/openharmony_sx.p7b" 29 hap_name = "ActsAceXComponentEtsTest" 30 shared_libraries = [ 31 "./entry/src/main/cpp:nativerender", 32 ":libcppsharedso", 33 ] 34} 35 36ohos_prebuilt_shared_library("libcppsharedso") { 37 source = rebase_path(libcxx_ndk_shared_file) 38 subsystem_name = "arkui" 39 part_name = "ace_engine" 40} 41 42ohos_js_assets("ace_ets_xcomponent_assets") { 43 source_dir = "./entry/src/main/ets/MainAbility" 44} 45ohos_js_assets("ace_ets_xcomponent_resources") { 46 source_dir = "./entry/src/main/ets/TestAbility" 47} 48ohos_resources("ace_ets_xcomponent_test_assets") { 49 sources = [ "./entry/src/main/resources" ] 50 hap_profile = "./entry/src/main/config.json" 51} 52