1# Copyright (c) 2023 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/toolchain/toolchain.gni") 15 16ohos_source_set("libark_client_set") { 17 stack_protector_ret = true 18 defines = [] 19 deps = [] 20 21 # hiviewdfx libraries 22 external_deps = hiviewdfx_ext_deps 23 deps += hiviewdfx_deps 24 25 include_dirs = [ 26 "..", 27 "$toolchain_root/websocket", 28 ] 29 30 sources = [ 31 "../utils/utils.cpp", 32 "domain/debugger_client.cpp", 33 "domain/heapprofiler_client.cpp", 34 "domain/profiler_client.cpp", 35 "domain/runtime_client.cpp", 36 "domain/test_client.cpp", 37 "manager/breakpoint_manager.cpp", 38 "manager/domain_manager.cpp", 39 "manager/source_manager.cpp", 40 "manager/stack_manager.cpp", 41 "manager/variable_manager.cpp", 42 "manager/watch_manager.cpp", 43 "session/session.cpp", 44 "tcpServer/tcp_server.cpp", 45 "utils/cli_command.cpp", 46 ] 47 48 deps += [ 49 "$toolchain_root/websocket:websocket_client", 50 "..:libark_ecma_debugger", 51 ] 52 53 external_deps += [ 54 "bounds_checking_function:libsec_shared", 55 "cJSON:cjson_static", 56 "ets_runtime:libark_jsruntime", 57 "icu:shared_icuuc", 58 "libuv:uv", 59 ] 60 61 configs = [ "../..:ark_toolchain_common_config" ] 62 63 cflags_cc = [ "-Wno-vla-extension" ] 64 65 subsystem_name = "arkcompiler" 66 part_name = "toolchain" 67} 68 69ohos_shared_library("libark_client") { 70 stack_protector_ret = true 71 deps = [ ":libark_client_set" ] 72 73 install_enable = false 74 if (!is_mingw && !is_mac) { 75 output_extension = "so" 76 } 77 external_deps = [] 78 external_deps += [ 79 "bounds_checking_function:libsec_shared", 80 "cJSON:cjson_static", 81 ] 82 if (enable_hilog) { 83 external_deps += [ "hilog:libhilog" ] 84 } 85 86 subsystem_name = "test" 87} 88