1# Copyright (c) 2023 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/ohos.gni") 15import("//build/toolchain/toolchain.gni") 16import("//test/xts/tools/build/suite.gni") 17 18ohos_js_hap_suite("image_receiver_ndk_js_hap") { 19 hap_profile = "./entry/src/main/config.json" 20 deps = [ 21 ":ace_third_ets_assets", 22 ":ace_third_ets_resources", 23 ":ace_third_ets_test_assets", 24 ] 25 ets2abc = true 26 certificate_profile = "./signature/openharmony_sx.p7b" 27 hap_name = "ActsImageReceiverNdkJsTest" 28 subsystem_name = "multimedia" 29 part_name = "image_framework" 30 shared_libraries = [ 31 "./entry/src/main/cpp:ImageReceiverNDKTest", 32 "./entry/src/main/cpp:ImageReceiverTest", 33 "./entry/src/main/cpp:ImageReceiverNativeTest", 34 ":libcppso", 35 ] 36} 37 38ohos_prebuilt_shared_library("libcppso") { 39 if (target_cpu == "arm") { 40 source = "${clang_base_path}/../llvm/lib/arm-linux-ohos/libc++.so" 41 } else if (target_cpu == "x86_64") { 42 source = "${clang_base_path}/../llvm/lib/x86_64-unknown-linux-gnu/libc++.so" 43 } else { 44 source = "${clang_base_path}/../llvm/lib/aarch64-linux-ohos/libc++.so" 45 } 46 assert(defined(source)) 47 subsystem_name = "multimedia" 48 install_enable = false 49} 50 51ohos_js_assets("ace_third_ets_assets") { 52 source_dir = "./entry/src/main/ets/MainAbility" 53} 54ohos_js_assets("ace_third_ets_test_assets") { 55 source_dir = "./entry/src/main/ets/TestAbility" 56} 57ohos_resources("ace_third_ets_resources") { 58 sources = [ "./entry/src/main/resources" ] 59 hap_profile = "./entry/src/main/config.json" 60} 61