122736c2fSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 222736c2fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 322736c2fSopenharmony_ci# you may not use this file except in compliance with the License. 422736c2fSopenharmony_ci# You may obtain a copy of the License at 522736c2fSopenharmony_ci# 622736c2fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 722736c2fSopenharmony_ci# 822736c2fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 922736c2fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1022736c2fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1122736c2fSopenharmony_ci# See the License for the specific language governing permissions and 1222736c2fSopenharmony_ci# limitations under the License. 1322736c2fSopenharmony_ci 1422736c2fSopenharmony_ciimport("//build/ohos.gni") 1522736c2fSopenharmony_ci 1622736c2fSopenharmony_ciohos_hap("newTestIme") { 1722736c2fSopenharmony_ci hap_profile = "entry/src/main/module.json" 1822736c2fSopenharmony_ci hap_name = "newTestIme" 1922736c2fSopenharmony_ci subsystem_name = "inputmethod" 2022736c2fSopenharmony_ci part_name = "imf" 2122736c2fSopenharmony_ci final_hap_path = 2222736c2fSopenharmony_ci "$root_out_dir/tests/unittest/imf/resource/newTestIme/${hap_name}.hap" 2322736c2fSopenharmony_ci testonly = true 2422736c2fSopenharmony_ci deps = [ 2522736c2fSopenharmony_ci ":newTestIme_ets_assets", 2622736c2fSopenharmony_ci ":newTestIme_ets_resources", 2722736c2fSopenharmony_ci ] 2822736c2fSopenharmony_ci certificate_profile = "signature/openharmony_sx.p7b" 2922736c2fSopenharmony_ci} 3022736c2fSopenharmony_ci 3122736c2fSopenharmony_ciohos_js_assets("newTestIme_ets_assets") { 3222736c2fSopenharmony_ci source_dir = "entry/src/main/ets" 3322736c2fSopenharmony_ci hap_profile = "entry/src/main/module.json" 3422736c2fSopenharmony_ci} 3522736c2fSopenharmony_ci 3622736c2fSopenharmony_ciohos_app_scope("newTestIme_app_profile") { 3722736c2fSopenharmony_ci app_profile = "AppScope/app.json" 3822736c2fSopenharmony_ci sources = [ "AppScope/resources" ] 3922736c2fSopenharmony_ci} 4022736c2fSopenharmony_ci 4122736c2fSopenharmony_ciohos_resources("newTestIme_ets_resources") { 4222736c2fSopenharmony_ci sources = [ "entry/src/main/resources" ] 4322736c2fSopenharmony_ci deps = [ ":newTestIme_app_profile" ] 4422736c2fSopenharmony_ci hap_profile = "entry/src/main/module.json" 4522736c2fSopenharmony_ci} 46