1# Copyright (C) 2021 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/ohos.gni") 15import("//build/ohos/sa_profile/sa_profile.gni") 16import("//foundation/multimedia/player_framework/config.gni") 17 18etc_file = { 19 if (player_framework_enable_start_stop_on_demand) { 20 process_cfg = "./on_demand/media_service.cfg" 21 sa_profile_json = "./on_demand/3002.json" 22 } else { 23 process_cfg = "./media_service.cfg" 24 sa_profile_json = "./3002.json" 25 } 26} 27 28ohos_prebuilt_etc("media_service.cfg") { 29 source = etc_file.process_cfg 30 relative_install_dir = "init" 31 part_name = "player_framework" 32 subsystem_name = "multimedia" 33} 34 35ohos_sa_profile("media_service_profile") { 36 sources = [ etc_file.sa_profile_json ] 37 part_name = "player_framework" 38} 39 40group("media_service_etc") { 41 deps = [ 42 ":media_service.cfg", 43 ":media_service_profile", 44 ] 45} 46 47ohos_prebuilt_etc("screen_capture_capsule_image") { 48 source = "image/capsule.svg" 49 subsystem_name = "multimedia" 50 relative_install_dir = "screencapture" 51 part_name = "player_framework" 52} 53 54ohos_prebuilt_etc("screen_capture_capsule_stop_image") { 55 source = "image/capsule_stop.svg" 56 subsystem_name = "multimedia" 57 relative_install_dir = "screencapture" 58 part_name = "player_framework" 59} 60 61ohos_prebuilt_etc("screen_capture_mic_image") { 62 source = "image/mic.svg" 63 subsystem_name = "multimedia" 64 relative_install_dir = "screencapture" 65 part_name = "player_framework" 66} 67 68ohos_prebuilt_etc("screen_capture_mic_off_image") { 69 source = "image/mic_off.svg" 70 subsystem_name = "multimedia" 71 relative_install_dir = "screencapture" 72 part_name = "player_framework" 73} 74 75ohos_prebuilt_etc("screen_capture_notification_image") { 76 source = "image/notification.png" 77 subsystem_name = "multimedia" 78 relative_install_dir = "screencapture" 79 part_name = "player_framework" 80} 81 82ohos_prebuilt_etc("screen_capture_stop_dark_image") { 83 source = "image/stop_dark.png" 84 subsystem_name = "multimedia" 85 relative_install_dir = "screencapture" 86 part_name = "player_framework" 87} 88 89ohos_prebuilt_etc("screen_capture_stop_image") { 90 source = "image/stop.png" 91 subsystem_name = "multimedia" 92 relative_install_dir = "screencapture" 93 part_name = "player_framework" 94} 95 96ohos_prebuilt_etc("screencapture_config") { 97 source = "screencapture/screencapture_config.para" 98 subsystem_name = "multimedia" 99 part_name = "player_framework" 100 module_install_dir = "etc/param" 101} 102 103ohos_prebuilt_etc("screencapture_config_dac") { 104 source = "screencapture/screencapture_config.para.dac" 105 subsystem_name = "multimedia" 106 part_name = "player_framework" 107 module_install_dir = "etc/param" 108} 109 110ohos_prebuilt_etc("screen_capture_capsule_stop_live2_image") { 111 source = "image/capsule_stop_live2.svg" 112 subsystem_name = "multimedia" 113 relative_install_dir = "screencapture" 114 part_name = "player_framework" 115} 116 117ohos_prebuilt_etc("screen_capture_light_image") { 118 source = "image/light.svg" 119 subsystem_name = "multimedia" 120 relative_install_dir = "screencapture" 121 part_name = "player_framework" 122}