• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2024 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("//build/ohos.gni")
15import("//developtools/packing_tool/packingtool.gni")
16
17packing_tool("packing_tool") {
18  sources = [
19    "//developtools/packing_tool/adapter/ohos",
20    "//developtools/packing_tool/checkTool.sh",
21    "//developtools/packing_tool/haptobin.sh",
22    "//developtools/packing_tool/packingTool.sh",
23    "//developtools/packing_tool/unpackingTool.sh",
24  ]
25  outputs = [
26    "${target_out_dir}/jar/haptobin_tool.jar",
27    "${target_out_dir}/jar/app_unpacking_tool.jar",
28    "${target_out_dir}/jar/app_packing_tool.jar",
29    "${target_out_dir}/jar",
30    "${target_out_dir}/jar/app_check_tool.jar",
31  ]
32}
33
34ohos_prebuilt_etc("haptobin_tool") {
35  list = get_target_outputs(":packing_tool")
36  source = list[0]
37  deps = [ ":packing_tool" ]
38  install_enable = false
39}
40
41ohos_prebuilt_etc("app_unpacking_tool") {
42  list = get_target_outputs(":packing_tool")
43  source = list[1]
44  deps = [ ":packing_tool" ]
45  install_enable = false
46}
47
48ohos_prebuilt_etc("app_packing_tool") {
49  list = get_target_outputs(":packing_tool")
50  source = list[2]
51  deps = [ ":packing_tool" ]
52  install_enable = false
53}
54
55ohos_prebuilt_etc("app_check_tool") {
56  list = get_target_outputs(":packing_tool")
57  source = list[4]
58  deps = [ ":packing_tool" ]
59  install_enable = false
60}
61
62ohos_prebuilt_etc("fastjson-1.2.83") {
63  source = "//prebuilts/packing_tool/fastjson-1.2.83.jar"
64  install_enable = false
65}
66