BUILD.gn 1.4 KB
Newer Older
W
wangyulie 已提交
1 2 3 4 5 6 7 8 9 10 11 12
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
W
wangyulie 已提交
13 14

import("//build/ohos.gni")
W
wangyulie 已提交
15
import("//test/xts/tools/build/suite.gni")
W
wangyulie 已提交
16
ohos_js_hap_suite("resourceschedule_ffrt_js_test") {
W
wangyulie 已提交
17
  hap_profile = "./entry/src/main/config.json"
W
wangyulie 已提交
18
  deps = [
W
wangyulie 已提交
19 20 21
    ":ace_third_ets_assets",
    ":ace_third_ets_resources",
    ":ace_third_ets_test_assets",
W
wangyulie 已提交
22 23
  ]
  ets2abc = true
W
wangyulie 已提交
24 25 26
  certificate_profile = "./signature/openharmony_sx.p7b"
  hap_name = "ActsFfrtNativeTest"
  subsystem_name = "resourceschedule"
W
wangyulie 已提交
27
  part_name = "ffrt"
W
wangyulie 已提交
28
  shared_libraries = [ "./entry/src/main/cpp:ffrtndk" ]
W
wangyulie 已提交
29
}
W
wangyulie 已提交
30 31 32

ohos_js_assets("ace_third_ets_assets") {
  source_dir = "./entry/src/main/ets/MainAbility"
W
wangyulie 已提交
33
}
W
wangyulie 已提交
34 35
ohos_js_assets("ace_third_ets_test_assets") {
  source_dir = "./entry/src/main/ets/TestAbility"
W
wangyulie 已提交
36
}
W
wangyulie 已提交
37 38 39
ohos_resources("ace_third_ets_resources") {
  sources = [ "./entry/src/main/resources" ]
  hap_profile = "./entry/src/main/config.json"
W
wangyulie 已提交
40
}