1# Copyright (c) 2023 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("//arkcompiler/ets_frontend/es2panda/es2abc_config.gni") 15import("//build/ohos.gni") 16 17es2abc_gen_abc("gen_pip_video_abc") { 18 src_js = rebase_path("PiPVideo.js") 19 dst_file = rebase_path(target_out_dir + "/pip_video.abc") 20 in_puts = [ "PiPVideo.js" ] 21 out_puts = [ target_out_dir + "/pip_video.abc" ] 22 extra_args = [ "--module" ] 23} 24 25ohos_prebuilt_etc("file_pip_video_abc") { 26 source = rebase_path(target_out_dir + "/pip_video.abc") 27 deps = [ ":gen_pip_video_abc" ] 28 part_name = "window_manager" 29 subsystem_name = "window" 30 relative_install_dir = "window/resources" 31} 32 33es2abc_gen_abc("gen_pip_call_abc") { 34 src_js = rebase_path("PiPCall.js") 35 dst_file = rebase_path(target_out_dir + "/pip_call.abc") 36 in_puts = [ "PiPCall.js" ] 37 out_puts = [ target_out_dir + "/pip_call.abc" ] 38 extra_args = [ "--module" ] 39} 40 41ohos_prebuilt_etc("file_pip_call_abc") { 42 source = rebase_path(target_out_dir + "/pip_call.abc") 43 deps = [ ":gen_pip_call_abc" ] 44 part_name = "window_manager" 45 subsystem_name = "window" 46 relative_install_dir = "window/resources" 47} 48 49es2abc_gen_abc("gen_pip_meeting_abc") { 50 src_js = rebase_path("PiPMeeting.js") 51 dst_file = rebase_path(target_out_dir + "/pip_meeting.abc") 52 in_puts = [ "PiPMeeting.js" ] 53 out_puts = [ target_out_dir + "/pip_meeting.abc" ] 54 extra_args = [ "--module" ] 55} 56 57ohos_prebuilt_etc("file_pip_meeting_abc") { 58 source = rebase_path(target_out_dir + "/pip_meeting.abc") 59 deps = [ ":gen_pip_meeting_abc" ] 60 part_name = "window_manager" 61 subsystem_name = "window" 62 relative_install_dir = "window/resources" 63} 64 65es2abc_gen_abc("gen_pip_live_abc") { 66 src_js = rebase_path("PiPLive.js") 67 dst_file = rebase_path(target_out_dir + "/pip_live.abc") 68 in_puts = [ "PiPLive.js" ] 69 out_puts = [ target_out_dir + "/pip_live.abc" ] 70 extra_args = [ "--module" ] 71} 72 73ohos_prebuilt_etc("file_pip_live_abc") { 74 source = rebase_path(target_out_dir + "/pip_live.abc") 75 deps = [ ":gen_pip_live_abc" ] 76 part_name = "window_manager" 77 subsystem_name = "window" 78 relative_install_dir = "window/resources" 79} 80 81group("window_resources_abc_pip") { 82 deps = [ 83 ":file_pip_call_abc", 84 ":file_pip_live_abc", 85 ":file_pip_meeting_abc", 86 ":file_pip_video_abc", 87 ] 88} 89