1# Copyright (c) 2021 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("//ark/runtime/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:libarkbase", 37 "$ark_root/libpandafile:libarkfile", 38 ] 39 if (!is_standard_system) { 40 relative_install_dir = "ark" 41 } 42 output_extension = "so" 43 subsystem_name = "ark" 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 sdk_libc_secshared_config, 61 ":libarksupport_config", 62 ] 63 64 deps = [ 65 "$ark_root/libpandabase:libarkbase", 66 "$ark_root/libpandafile:libarkfile", 67 ] 68 if (!is_standard_system) { 69 relative_install_dir = "ark" 70 } 71 output_extension = "so" 72 subsystem_name = "ark" 73} 74