1# Copyright (c) 2024-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. 13import("//build/ohos.gni") 14 15ohos_app("user_cert_manager") { 16 deps = [ 17 ":cert_manager_js_assets", 18 ":cert_manager_resources", 19 ] 20 publicity_file = "publicity.xml" 21 certificate_profile = "signature/privacyCenter.p7b" 22 hap_name = "CertificateManager" 23 part_name = "user_certificate_manager" 24 subsystem_name = "applications" 25 js_build_mode = "release" 26 module_install_dir = "app/com.ohos.certificatemanager" 27 sdk_home = "//prebuilts/ohos-sdk/linux" 28 sdk_type_name = [ "sdk.dir" ] 29 assemble_type = "assembleHap" 30 build_level = "module" 31 build_modules = [ "CertManager" ] 32} 33 34ohos_app_scope("user_cert_manager_app_profile") { 35 app_profile = "AppScope/app.json" 36 sources = [ "AppScope/resources" ] 37} 38 39ohos_js_assets("cert_manager_js_assets") { 40 ets2abc = true 41 source_dir = "certmanager/src/main/ets" 42} 43 44ohos_resources("cert_manager_resources") { 45 sources = [ "certmanager/src/main/resources" ] 46 deps = [ ":user_cert_manager_app_profile" ] 47 hap_profile = "certmanager/src/main/module.json" 48} 49