1600cc4afSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2600cc4afSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3600cc4afSopenharmony_ci# you may not use this file except in compliance with the License. 4600cc4afSopenharmony_ci# You may obtain a copy of the License at 5600cc4afSopenharmony_ci# 6600cc4afSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7600cc4afSopenharmony_ci# 8600cc4afSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9600cc4afSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10600cc4afSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11600cc4afSopenharmony_ci# See the License for the specific language governing permissions and 12600cc4afSopenharmony_ci# limitations under the License. 13600cc4afSopenharmony_ci 14600cc4afSopenharmony_ciimport("//build/ohos.gni") 15600cc4afSopenharmony_ciimport("../../../../appexecfwk.gni") 16600cc4afSopenharmony_ci 17600cc4afSopenharmony_ciohos_hap("benchmarktesthap") { 18600cc4afSopenharmony_ci hap_profile = "./src/main/config.json" 19600cc4afSopenharmony_ci hap_name = "test" 20600cc4afSopenharmony_ci subsystem_name = "bundlemanager" 21600cc4afSopenharmony_ci final_hap_path = "$root_out_dir/tests/benchmark/bundle_framework/benchmark/bundle_framework/resource/benchmarkTestBundle/${hap_name}.hap" 22600cc4afSopenharmony_ci testonly = true 23600cc4afSopenharmony_ci deps = [ 24600cc4afSopenharmony_ci ":hjs_demo_js_assets", 25600cc4afSopenharmony_ci ":hjs_demo_resources", 26600cc4afSopenharmony_ci ] 27600cc4afSopenharmony_ci certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.example.l3jsdemo.p7b" 28600cc4afSopenharmony_ci} 29600cc4afSopenharmony_ciohos_js_assets("hjs_demo_js_assets") { 30600cc4afSopenharmony_ci source_dir = "./src/main/js/default" 31600cc4afSopenharmony_ci} 32600cc4afSopenharmony_ciohos_resources("hjs_demo_resources") { 33600cc4afSopenharmony_ci sources = [ "./src/main/js/resources" ] 34600cc4afSopenharmony_ci hap_profile = "./src/main/config.json" 35600cc4afSopenharmony_ci} 36