2024-08-03 09:54:43 +00:00
|
|
|
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
2022-08-31 02:00:21 +00:00
|
|
|
# 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.
|
2022-08-30 01:17:44 +00:00
|
|
|
import("//build/ohos.gni")
|
2024-08-03 09:54:43 +00:00
|
|
|
import("signature/pm.gni")
|
2022-08-30 01:17:44 +00:00
|
|
|
|
2024-08-03 09:54:43 +00:00
|
|
|
ohos_app("permission_manager") {
|
2022-08-30 01:17:44 +00:00
|
|
|
deps = [
|
|
|
|
":permission_manager_js_assets",
|
|
|
|
":permission_manager_resources",
|
|
|
|
]
|
2024-08-03 09:54:43 +00:00
|
|
|
publicity_file = "publicity.xml"
|
|
|
|
certificate_profile = "signature/pm.p7b"
|
2022-08-30 11:09:38 +00:00
|
|
|
hap_name = "permission_manager"
|
2022-08-30 01:17:44 +00:00
|
|
|
part_name = "prebuilt_hap"
|
|
|
|
subsystem_name = "applications"
|
2024-08-19 03:36:33 +00:00
|
|
|
js_build_mode = "release"
|
2022-08-31 06:40:48 +00:00
|
|
|
module_install_dir = "app/com.ohos.permissionmanager"
|
2024-08-03 09:54:43 +00:00
|
|
|
sdk_home = "//prebuilts/ohos-sdk/linux"
|
|
|
|
sdk_type_name = [ "sdk.dir" ]
|
|
|
|
assemble_type = "assembleHap"
|
|
|
|
build_level = "module"
|
|
|
|
build_modules = [ "permissionmanager" ]
|
2023-05-16 03:37:35 +00:00
|
|
|
if (defined(sign_hap_py_path)) {
|
|
|
|
certificate_profile = "${certificate_profile_path}"
|
|
|
|
key_alias = "PermissionManager"
|
|
|
|
private_key_path = "PermissionManager"
|
|
|
|
compatible_version = "9"
|
|
|
|
}
|
2022-08-30 01:17:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_app_scope("permission_manager_app_profile") {
|
2024-08-03 09:54:43 +00:00
|
|
|
app_profile = "AppScope/app.json"
|
|
|
|
sources = [ "AppScope/resources" ]
|
2022-08-30 01:17:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_js_assets("permission_manager_js_assets") {
|
|
|
|
ets2abc = true
|
2024-08-03 09:54:43 +00:00
|
|
|
source_dir = "permissionmanager/src/main/ets"
|
2022-08-30 01:17:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_resources("permission_manager_resources") {
|
2024-08-03 09:54:43 +00:00
|
|
|
sources = [ "permissionmanager/src/main/resources" ]
|
2022-08-30 01:17:44 +00:00
|
|
|
deps = [ ":permission_manager_app_profile" ]
|
2024-08-03 09:54:43 +00:00
|
|
|
hap_profile = "permissionmanager/src/main/module.json"
|
2022-08-30 01:17:44 +00:00
|
|
|
}
|