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