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("launcher") { 17 sources = [ 18 "launcher/src/main/cpp/app_info.cpp", 19 "launcher/src/main/cpp/app_manage.cpp", 20 "launcher/src/main/cpp/long_press_view.cpp", 21 "launcher/src/main/cpp/main_ability.cpp", 22 "launcher/src/main/cpp/main_ability_slice.cpp", 23 "launcher/src/main/cpp/swipe_view.cpp", 24 "launcher/src/main/cpp/time_weather_view.cpp", 25 "launcher/src/main/cpp/view_group_page.cpp", 26 ] 27 28 deps = [ 29 "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite", 30 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 31 "//foundation/arkui/ui_lite:ui_lite", 32 "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store", 33 "//foundation/graphic/graphic_utils_lite:utils_lite", 34 "//foundation/graphic/surface_lite", 35 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 36 ] 37 38 include_dirs = [ 39 "launcher/src/main/cpp", 40 "${aafwk_lite_path}/interfaces/kits/ability_lite", 41 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 42 "${aafwk_lite_path}/interfaces/kits/want_lite", 43 ] 44 45 defines = [ 46 "ENABLE_WINDOW=1", 47 "ABILITY_WINDOW_SUPPORT", 48 "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 49 ] 50} 51 52hap_pack("launcher_hap") { 53 deps = [ ":launcher" ] 54 mode = "hap" 55 json_path = "launcher/src/main/config.json" 56 ability_so_path = "$root_out_dir/liblauncher.so" 57 force = "true" 58 cert_profile = "cert/com.huawei.launcher_AppProvision_release.p7b" 59 resources_path = "launcher/src/main/resources" 60 hap_name = "launcher" 61 privatekey = "HOS Application Provision Release" 62} 63