• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13import("//test/xts/tools/build/suite.gni")
14
15ohos_js_hap_suite("ActsCrossplatformIntlTest") {
16  hap_profile = "src/main/module.json"
17  deps = [
18    ":windowStage_js_assets",
19    ":windowStage_resources",
20  ]
21  ets2abc = true
22  certificate_profile = "./signature/openharmony_sx.p7b"
23
24  # hap_name: HAP的名字,可选,默认为目标名
25  hap_name = "ActsCrossplatformIntlTest"
26  subsystem_name = "global"
27  part_name = "i18n"
28}
29ohos_app_scope("windowStage_app_profile") {
30  # app_profile: HAP的AppScope中的app.json,只在Stage模型下使用
31  app_profile = "AppScope/app.json"
32
33  # sources: 资源文件路径
34  sources = [ "AppScope/resources" ]
35}
36ohos_js_assets("windowStage_js_assets") {
37  # source_dir: js或ets代码路径,兼容FA模型的单ability配置到ability目录
38  source_dir = "src/main/ets"
39}
40ohos_resources("windowStage_resources") {
41  # sources: 资源文件路径
42  sources = [ "src/main/resources" ]
43
44  # deps: 当前目标的依赖
45  deps = [ ":windowStage_app_profile" ]
46
47  # hap_profile: HAP的config.json,Stage模型对应module.json
48  hap_profile = "src/main/module.json"
49}
50