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("setting") { 17 sources = [ 18 "setting/src/main/cpp/app_ability_slice.cpp", 19 "setting/src/main/cpp/app_info_ability_slice.cpp", 20 "setting/src/main/cpp/main_ability_slice.cpp", 21 "setting/src/main/cpp/setting_about_ability_slice.cpp", 22 "setting/src/main/cpp/setting_display_ability_slice.cpp", 23 "setting/src/main/cpp/setting_main_ability.cpp", 24 "setting/src/main/cpp/setting_utils.cpp", 25 "setting/src/main/cpp/setting_wifi_ability_slice.cpp", 26 "setting/src/main/cpp/setting_wifi_input_password_ability_slice.cpp", 27 "setting/src/main/cpp/wpa_work.c", 28 ] 29 30 deps = [ 31 "${aafwk_lite_path}/frameworks/ability_lite:aafwk_abilitykit_lite", 32 "${appexecfwk_lite_path}/frameworks/bundle_lite:bundle", 33 "//base/powermgr/powermgr_lite/frameworks:powermgr", 34 "//base/startup/init/interfaces/innerkits:libbegetutil", 35 "//foundation/arkui/ui_lite:ui_lite", 36 "//foundation/distributeddatamgr/kv_store/interfaces/inner_api/kv_store:kv_store", 37 "//foundation/graphic/graphic_utils_lite:utils_lite", 38 "//foundation/graphic/surface_lite", 39 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 40 "//third_party/wpa_supplicant/wpa_supplicant-2.9:wpa_supplicant", 41 ] 42 43 include_dirs = [ 44 "setting/src/main/cpp", 45 "${aafwk_lite_path}/interfaces/kits/ability_lite", 46 "${appexecfwk_lite_path}/interfaces/kits/bundle_lite", 47 "${aafwk_lite_path}/interfaces/kits/want_lite", 48 "//base/startup/init/interfaces/innerkits/include/syspara", 49 "//base/security/permission_lite/interfaces/kits", 50 "//third_party/wpa_supplicant/wpa_supplicant-2.9/src/common", 51 ] 52 53 ldflags = [ 54 "-lwpa", 55 "-lwpa_client", 56 "-lbegetutil", 57 "-lpms_client", 58 ] 59 60 defines = [ 61 "ENABLE_WINDOW=1", 62 "ABILITY_WINDOW_SUPPORT", 63 "OHOS_APPEXECFWK_BMS_BUNDLEMANAGER", 64 ] 65} 66 67hap_pack("setting_hap") { 68 deps = [ ":setting" ] 69 mode = "hap" 70 json_path = "setting/src/main/config.json" 71 ability_so_path = "$root_out_dir/libsetting.so" 72 force = "true" 73 cert_profile = "cert/com.huawei.setting_AppProvision_release.p7b" 74 resources_path = "setting/src/main/resources" 75 hap_name = "setting" 76 privatekey = "HOS Application Provision Release" 77} 78