1# Copyright (c) 2021 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/haptobin.sh", 21 "//developtools/packing_tool/packingTool.sh", 22 "//developtools/packing_tool/unpackingTool.sh", 23 ] 24 outputs = [ 25 "${target_out_dir}/jar/haptobin_tool.jar", 26 "${target_out_dir}/jar/app_unpacking_tool.jar", 27 "${target_out_dir}/jar/app_packing_tool.jar", 28 "${target_out_dir}/jar", 29 ] 30} 31 32ohos_prebuilt_etc("haptobin_tool") { 33 list = get_target_outputs(":packing_tool") 34 source = list[0] 35 deps = [ ":packing_tool" ] 36 install_enable = false 37} 38 39ohos_prebuilt_etc("app_unpacking_tool") { 40 list = get_target_outputs(":packing_tool") 41 source = list[1] 42 deps = [ ":packing_tool" ] 43 install_enable = false 44} 45 46ohos_prebuilt_etc("app_packing_tool") { 47 list = get_target_outputs(":packing_tool") 48 source = list[2] 49 deps = [ ":packing_tool" ] 50 install_enable = false 51} 52 53ohos_prebuilt_etc("fastjson-1.2.83") { 54 source = "jar/fastjson-1.2.83.jar" 55 install_enable = false 56} 57