1 Star 0 Fork 441

周靖/applications_hap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 10.35 KB
一键复制 编辑 原始数据 按行查看 历史
章超123 提交于 2022-08-27 19:22 . fix gn format
# 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("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("shopping_demo_hap") {
source = "Shopping_Demo.hap"
module_install_dir = "app/ohos.sample.shopping"
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("permission_manager_hap") {
source = "PermissionManager.hap"
module_install_dir = "app/com.ohos.permissionmanager"
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"
}
group("hap") {
deps = [
"//applications/standard/hap:calc_demo_hap",
"//applications/standard/hap:callUI_hap",
"//applications/standard/hap:camera_hap",
"//applications/standard/hap:capture.ogg",
"//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:permission_manager_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:shopping_demo_hap",
"//applications/standard/hap:statusBar_hap",
"//applications/standard/hap:systemui_hap",
"//applications/standard/hap:volumePanel_hap",
]
if (defined(product_name) && product_name == "watchos") {
deps -= [
"//applications/standard/hap:calc_demo_hap",
"//applications/standard/hap:callUI_hap",
"//applications/standard/hap:camera_hap",
"//applications/standard/hap:capture.ogg",
"//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:permission_manager_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:shopping_demo_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/zj2333/applications_hap.git
git@gitee.com:zj2333/applications_hap.git
zj2333
applications_hap
applications_hap
master

搜索帮助