提交 8edc0bdb 编写于 作者: L longwei

add dependency for packing tool

Signed-off-by: Nlongwei <longwei27@huawei.com>
Change-Id: Ia1c08f260251304d527309f28f6a55e06ae0a101
上级 e44e7cd1
...@@ -16,7 +16,8 @@ import("//build/lite/config/subsystem/aafwk/path.gni") ...@@ -16,7 +16,8 @@ import("//build/lite/config/subsystem/aafwk/path.gni")
declare_args() { declare_args() {
ohos_sign_haps_by_server = false ohos_sign_haps_by_server = false
hapsigner = "//developtools/hapsigner/dist/hap-sign-tool.jar" hapsigner = "//developtools/hapsigner/dist/hap-sign-tool.jar"
packtool = "//developtools/packing_tool/jar/app_packing_tool.jar" packtool =
"${root_out_dir}/obj/developtools/packing_tool/jar/app_packing_tool.jar"
jks_file = "//developtools/hapsigner/dist/OpenHarmony.p12" jks_file = "//developtools/hapsigner/dist/OpenHarmony.p12"
cert_file = "//developtools/hapsigner/dist/OpenHarmonyApplication.pem" cert_file = "//developtools/hapsigner/dist/OpenHarmonyApplication.pem"
default_hap_signature_algorithm = "SHA256withECDSA" default_hap_signature_algorithm = "SHA256withECDSA"
...@@ -43,6 +44,12 @@ template("hap_pack") { ...@@ -43,6 +44,12 @@ template("hap_pack") {
deps = [] deps = []
deps += invoker.deps deps += invoker.deps
} }
_pack_tool_deps = [ "//developtools/packing_tool:packing_tool" ]
if (defined(deps)) {
deps += _pack_tool_deps
} else {
deps = _pack_tool_deps
}
script = "//build/lite/hap_pack.py" script = "//build/lite/hap_pack.py"
args = [ args = [
"--packing-tool-path", "--packing-tool-path",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册