1 Star 0 Fork 440

xwliu/applications_hap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 11.70 KB
一键复制 编辑 原始数据 按行查看 历史
应潇挺 提交于 2024-06-26 14:35 . [TicketNo:]AR000JP17R
# Copyright (c) 2021 Huawei Device Co., Ltd.
# 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.
import("//build/ohos.gni")
ohos_prebuilt_etc("launcher_hap") {
source = "Launcher.hap"
module_install_dir = "app/com.ohos.launcher"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("launcher_settings_hap") {
source = "Launcher_Settings.hap"
module_install_dir = "app/com.ohos.launcher"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("settings_hap") {
source = "Settings.hap"
module_install_dir = "app/com.ohos.settings"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("note_hap") {
source = "Note.hap"
module_install_dir = "app/com.ohos.note"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("settingsData_hap") {
source = "SettingsData.hap"
module_install_dir = "app/com.ohos.settingsdata"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("navigationBar_hap") {
source = "SystemUI-NavigationBar.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("statusBar_hap") {
source = "SystemUI-StatusBar.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("screenLock_hap") {
source = "SystemUI-ScreenLock.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("notificationManagement_hap") {
source = "SystemUI-NotificationManagement.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("volumePanel_hap") {
source = "SystemUI-VolumePanel.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("dropdownPanel_hap") {
source = "SystemUI-DropdownPanel.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("systemui_hap") {
source = "SystemUI.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("systemDialog_hap") {
source = "SystemUI-SystemDialog.hap"
module_install_dir = "app/com.ohos.systemui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("screen_shot_hap") {
source = "ScreenShot.hap"
module_install_dir = "app/com.ohos.screenshot"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("clock_demo_hap") {
source = "Clock_Demo.hap"
module_install_dir = "app/ohos.samples.clock"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("calc_demo_hap") {
source = "Calc_Demo.hap"
module_install_dir = "app/com.example.distributedcalc"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("photos_hap") {
source = "Photos.hap"
module_install_dir = "app/com.ohos.photos"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("music_demo_hap") {
source = "Music_Demo.hap"
module_install_dir = "app/com.ohos.distributedmusicplayer"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("demo.wav") {
source = "resources/demo.wav"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("dynamic.wav") {
source = "resources/dynamic.wav"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("camera_hap") {
source = "Camera.hap"
module_install_dir = "app/com.ohos.camera"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("capture.ogg") {
source = "resources/capture.ogg"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("kika_input_hap") {
source = "kikaInput.hap"
module_install_dir = "app/com.example.kikakeyboard"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("media_library_hap") {
source = "Media_Library.hap"
module_install_dir = "app/com.ohos.medialibrary.MediaLibraryDataA"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("media_scanner_hap") {
source = "Media_Scanner.hap"
module_install_dir = "app/com.ohos.medialibrary.MediaScannerAbilityA"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("callUI_hap") {
source = "CallUI.hap"
module_install_dir = "app/com.ohos.callui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("mobileDataSettings_hap") {
source = "MobileDataSettings.hap"
module_install_dir = "app/com.ohos.callui"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("mms_hap") {
source = "Mms.hap"
module_install_dir = "app/com.ohos.mms"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("contacts_hap") {
source = "Contacts.hap"
module_install_dir = "app/com.ohos.contacts"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("settings_faceauth_hap") {
source = "Settings_FaceAuth.hap"
module_install_dir = "app/com.ohos.settings.faceauth"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("filepicker_hap") {
source = "FilePicker.hap"
module_install_dir = "app/com.ohos.filepicker"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("external.json") {
source = "resources/external.json"
relative_install_dir = "notification_template"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("downloadTemplate.abc") {
source = "resources/downloadTemplate.abc"
relative_install_dir = "notification_template/assets/js"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("downloadTemplate.js") {
source = "resources/downloadTemplate.js"
relative_install_dir = "notification_template/assets/js"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("certificate_manager_hap") {
source = "CertificateManager.hap"
module_install_dir = "app/com.ohos.certificatemanager"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("securityPrivacyCenter_hap") {
source = "SecurityPrivacyCenter.hap"
module_install_dir = "app/com.ohos.certificatemanager"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("updateapp_hap") {
source = "UpdateApp.hap"
module_install_dir = "app/com.ohos.updateapp"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("printspooler_hap") {
source = "PrintSpooler.hap"
module_install_dir = "app/com.ohos.spooler"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("calendarData_hap") {
source = "CalendarData.hap"
module_install_dir = "app/com.ohos.calendardata"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("ringtone_extension_hap") {
source = "Ringtone_Library_Ext.hap"
module_install_dir = "app/com.ohos.ringtonelibrary.RingtoneLibraryData"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
ohos_prebuilt_etc("audiopicker_hap") {
source = "AudioPicker.hap"
module_install_dir = "app/com.ohos.filepicker"
part_name = "prebuilt_hap"
subsystem_name = "applications"
}
group("hap") {
deps = [
":calendarData_hap",
":printspooler_hap",
":securityPrivacyCenter_hap",
":systemDialog_hap",
":updateapp_hap",
"//applications/standard/hap:calc_demo_hap",
"//applications/standard/hap:callUI_hap",
"//applications/standard/hap:camera_hap",
"//applications/standard/hap:capture.ogg",
"//applications/standard/hap:certificate_manager_hap",
"//applications/standard/hap:clock_demo_hap",
"//applications/standard/hap:contacts_hap",
"//applications/standard/hap:demo.wav",
"//applications/standard/hap:downloadTemplate.abc",
"//applications/standard/hap:downloadTemplate.js",
"//applications/standard/hap:dropdownPanel_hap",
"//applications/standard/hap:dynamic.wav",
"//applications/standard/hap:external.json",
"//applications/standard/hap:filepicker_hap",
"//applications/standard/hap:kika_input_hap",
"//applications/standard/hap:launcher_hap",
"//applications/standard/hap:launcher_settings_hap",
"//applications/standard/hap:mms_hap",
"//applications/standard/hap:mobileDataSettings_hap",
"//applications/standard/hap:music_demo_hap",
"//applications/standard/hap:navigationBar_hap",
"//applications/standard/hap:note_hap",
"//applications/standard/hap:notificationManagement_hap",
"//applications/standard/hap:photos_hap",
"//applications/standard/hap:screenLock_hap",
"//applications/standard/hap:screen_shot_hap",
"//applications/standard/hap:settingsData_hap",
"//applications/standard/hap:settings_faceauth_hap",
"//applications/standard/hap:settings_hap",
"//applications/standard/hap:statusBar_hap",
"//applications/standard/hap:systemui_hap",
"//applications/standard/hap:volumePanel_hap",
"//applications/standard/hap:audiopicker_hap",
]
if (defined(product_name) && product_name == "watchos") {
deps -= [
":calendarData_hap",
":printspooler_hap",
":securityPrivacyCenter_hap",
":systemDialog_hap",
":updateapp_hap",
"//applications/standard/hap:calc_demo_hap",
"//applications/standard/hap:callUI_hap",
"//applications/standard/hap:camera_hap",
"//applications/standard/hap:capture.ogg",
"//applications/standard/hap:certificate_manager_hap",
"//applications/standard/hap:contacts_hap",
"//applications/standard/hap:demo.wav",
"//applications/standard/hap:downloadTemplate.abc",
"//applications/standard/hap:downloadTemplate.js",
"//applications/standard/hap:dropdownPanel_hap",
"//applications/standard/hap:dynamic.wav",
"//applications/standard/hap:external.json",
"//applications/standard/hap:kika_input_hap",
"//applications/standard/hap:mms_hap",
"//applications/standard/hap:mobileDataSettings_hap",
"//applications/standard/hap:music_demo_hap",
"//applications/standard/hap:navigationBar_hap",
"//applications/standard/hap:notificationManagement_hap",
"//applications/standard/hap:photos_hap",
"//applications/standard/hap:screenLock_hap",
"//applications/standard/hap:screen_shot_hap",
"//applications/standard/hap:settingsData_hap",
"//applications/standard/hap:settings_faceauth_hap",
"//applications/standard/hap:settings_hap",
"//applications/standard/hap:statusBar_hap",
"//applications/standard/hap:systemui_hap",
"//applications/standard/hap:volumePanel_hap",
]
} else if (defined(product_name) && product_name == "rk3568") {
deps +=
[ "//applications/standard/admin_provisioning:adminprovisioning_hap" ]
} else if (defined(product_name) && product_name == "ohos-arm64") {
deps +=
[ "//applications/standard/admin_provisioning:adminprovisioning_hap" ]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xwliu/applications_hap.git
git@gitee.com:xwliu/applications_hap.git
xwliu
applications_hap
applications_hap
master

搜索帮助