mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-23 13:09:48 +00:00
98eafbf0cd
Signed-off-by: linxiangzhi <linxiangzhi@huawei.com> Change-Id: I9b454a3091419688b2237a7024d63085340f0f24
90 lines
2.2 KiB
Plaintext
90 lines
2.2 KiB
Plaintext
# 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.
|
|
|
|
import("//build/ohos.gni")
|
|
import("//foundation/appexecfwk/standard/appexecfwk.gni")
|
|
|
|
config("zip_config") {
|
|
include_dirs = [
|
|
"include",
|
|
"//third_party/libuv/include",
|
|
"//third_party/node/src",
|
|
"//third_party/zlib",
|
|
]
|
|
|
|
defines = [
|
|
"APP_LOG_TAG = \"BundleMgrService\"",
|
|
"LOG_DOMAIN = 0xD001120",
|
|
]
|
|
}
|
|
|
|
ohos_shared_library("zlib") {
|
|
public_configs = [ ":zip_config" ]
|
|
|
|
sources = [
|
|
"kits/napi/napi_zlib.cpp",
|
|
"kits/napi/napi_zlib_common.cpp",
|
|
"kits/napi/native_module.cpp",
|
|
"src/file_path.cpp",
|
|
"src/zip.cpp",
|
|
"src/zip_internal.cpp",
|
|
"src/zip_reader.cpp",
|
|
"src/zip_utils.cpp",
|
|
"src/zip_writer.cpp",
|
|
]
|
|
|
|
cflags = []
|
|
if (target_cpu == "arm") {
|
|
cflags += [ "-DBINDER_IPC_32BIT" ]
|
|
}
|
|
|
|
deps = [
|
|
"${common_path}:libappexecfwk_common",
|
|
"//third_party/libuv:uv_static",
|
|
"//third_party/zlib:libz",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"ability_runtime:task_dispatcher",
|
|
"bundle_framework:appexecfwk_base",
|
|
"bundle_framework:appexecfwk_core",
|
|
"eventhandler:libeventhandler",
|
|
"hiviewdfx_hilog_native:libhilog",
|
|
"ipc:ipc_core",
|
|
"napi:ace_napi",
|
|
"utils_base:utils",
|
|
]
|
|
|
|
install_enable = true
|
|
subsystem_name = "appexecfwk"
|
|
part_name = "bundle_framework"
|
|
relative_install_dir = "module"
|
|
}
|
|
|
|
ohos_shared_library("z") {
|
|
configs = [ "//third_party/zlib:zlib_config" ]
|
|
public_configs = [ "//third_party/zlib:zlib_public_config" ]
|
|
deps = [ "//third_party/zlib:libz" ]
|
|
output_extension = "so"
|
|
subsystem_name = "appexecfwk"
|
|
part_name = "bundle_framework"
|
|
}
|
|
|
|
group("tools_zip") {
|
|
deps = [
|
|
":z",
|
|
":zlib",
|
|
]
|
|
}
|