• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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")
16import("//foundation/multimedia/av_session/config.gni")
17
18es2abc_gen_abc("gen_avvolumepanel_abc") {
19  if ("${target_platform}" == "watch") {
20    src_js = rebase_path("avvolumepanel_watch.js")
21    dst_file = rebase_path(target_out_dir + "/avvolumepanel.abc")
22    in_puts = [ "avvolumepanel_watch.js" ]
23    out_puts = [ target_out_dir + "/avvolumepanel.abc" ]
24    extra_args = [ "--module" ]
25  } else {
26    src_js = rebase_path("avvolumepanel.js")
27    dst_file = rebase_path(target_out_dir + "/avvolumepanel.abc")
28    in_puts = [ "avvolumepanel.js" ]
29    out_puts = [ target_out_dir + "/avvolumepanel.abc" ]
30    extra_args = [ "--module" ]
31  }
32}
33
34gen_js_obj("avvolumepanel_abc") {
35  input = get_label_info(":gen_avvolumepanel_abc", "target_out_dir") +
36          "/avvolumepanel.abc"
37  output = target_out_dir + "/avvolumepanel_abc.o"
38  dep = ":gen_avvolumepanel_abc"
39}
40
41ohos_shared_library("avvolumepanel") {
42  sources = [ "avvolumepanel.cpp" ]
43
44  deps = [ ":avvolumepanel_abc" ]
45
46  sanitize = {
47    cfi = true
48    cfi_cross_dso = true
49    debug = false
50  }
51
52  external_deps = [ "napi:ace_napi" ]
53
54  relative_install_dir = "module/multimedia"
55  subsystem_name = "multimedia"
56  part_name = "av_session"
57}
58