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") 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 ":libarkfileExt_config", 32 ] 33 34 deps = [ 35 "$ark_root/libpandabase:libarktsbase", 36 "$ark_root/libpandafile:libarktsfile", 37 ] 38 39 external_deps = [ sdk_libc_secshared_dep ] 40 41 output_extension = "so" 42 part_name = ark_part_name 43 subsystem_name = "$ark_subsystem_name" 44} 45 46config("libarksupport_config") { 47 include_dirs = [ 48 "$ark_root", 49 "$ark_root/libpandafile/external", 50 ] 51} 52 53ohos_shared_library("libarksupport") { 54 sources = [ "panda_file_support.cpp" ] 55 56 configs = [ 57 "$ark_root:ark_config", 58 "$ark_root/libpandabase:arkbase_public_config", 59 "$ark_root/libpandafile:arkfile_public_config", 60 ":libarksupport_config", 61 ] 62 63 deps = [ 64 "$ark_root/libpandabase:libarktsbase", 65 "$ark_root/libpandafile:libarktsfile", 66 ] 67 68 external_deps = [ sdk_libc_secshared_dep ] 69 70 output_extension = "so" 71 part_name = ark_part_name 72 subsystem_name = "$ark_subsystem_name" 73} 74