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