1# Copyright (c) 2020 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/lite/config/hap_pack.gni") 15 16shared_library("screensaver") { 17 sources = [ 18 "screensaver/src/main/cpp/screensaver_ability.cpp", 19 "screensaver/src/main/cpp/screensaver_ability_slice.cpp", 20 ] 21 22 deps = [ 23 "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite", 24 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 25 "//foundation/arkui/ui_lite:ui_lite", 26 "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store", 27 "//foundation/graphic/graphic_utils_lite:utils_lite", 28 "//foundation/graphic/surface_lite", 29 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 30 ] 31 32 include_dirs = [ 33 "screensaver/src/main/cpp", 34 "${aafwk_lite_path}/interfaces/kits/ability_lite", 35 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 36 "${aafwk_lite_path}/interfaces/kits/want_lite", 37 ] 38 39 defines = [ 40 "ENABLE_WINDOW=1", 41 "ABILITY_WINDOW_SUPPORT", 42 "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 43 ] 44} 45 46hap_pack("screensaver_hap") { 47 deps = [ ":screensaver" ] 48 mode = "hap" 49 json_path = "screensaver/src/main/config.json" 50 ability_so_path = "$root_out_dir/libscreensaver.so" 51 force = "true" 52 cert_profile = "cert/com.huawei.screensaver_AppProvision_release.p7b" 53 resources_path = "screensaver/src/main/resources" 54 hap_name = "screensaver" 55 privatekey = "HOS Application Provision Release" 56} 57