• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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/runtime_core/static_core/ark_config.gni")
15if (ark_standalone_build) {
16  import("$build_root/ark.gni")
17} else {
18  import("//build/ohos.gni")
19}
20
21config("libarkfileExt_config") {
22  include_dirs = [
23    "$ark_root",
24    "$ark_root/libpandafile/external",
25  ]
26}
27
28ohos_shared_library("libarkfileExt") {
29  sources = [ "file_ext.cpp" ]
30
31  configs = [
32    "$ark_root:ark_config",
33    "$ark_root/libpandabase:arkbase_public_config",
34    "$ark_root/libpandafile:arkfile_public_config",
35    ":libarkfileExt_config",
36  ]
37
38  deps = [
39    "$ark_root/libpandabase:libarktsbase",
40    "$ark_root/libpandafile:libarktsfile",
41  ]
42
43  external_deps = [ sdk_libc_secshared_dep ]
44
45  output_extension = "so"
46  part_name = ark_part_name
47  subsystem_name = "$ark_subsystem_name"
48}
49
50config("libarksupport_config") {
51  include_dirs = [
52    "$ark_root",
53    "$ark_root/libpandafile/external",
54  ]
55}
56
57ohos_shared_library("libarksupport") {
58  sources = [ "panda_file_support.cpp" ]
59
60  configs = [
61    "$ark_root:ark_config",
62    "$ark_root/libpandabase:arkbase_public_config",
63    "$ark_root/libpandafile:arkfile_public_config",
64    ":libarksupport_config",
65  ]
66
67  deps = [
68    "$ark_root/libpandabase:libarktsbase",
69    "$ark_root/libpandafile:libarktsfile",
70  ]
71
72  external_deps = [ sdk_libc_secshared_dep ]
73
74  output_extension = "so"
75  part_name = ark_part_name
76  subsystem_name = "$ark_subsystem_name"
77}
78