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. 13import("//build/lite/config/component/lite_component.gni") 14 15lite_component("ai_server") { 16 target_type = "executable" 17 features = [ 18 "communication_adapter:ai_communication_adapter", 19 "plugin_manager", 20 "server_executor", 21 ] 22 cflags = [ "-fPIC" ] 23 ldflags = [ 24 "-Wl,-Map=server.map", 25 "-lstdc++", 26 "-Wl,--whole-archive", 27 "libs/libai_communication_adapter.a", 28 "-Wl,--no-whole-archive", 29 "-ldl", 30 "-pthread", 31 ] 32 deps = [ 33 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 34 "//foundation/ai/ai_engine/services/common/platform/dl_operation:dlOperation", 35 "//foundation/ai/ai_engine/services/common/platform/event:event", 36 "//foundation/ai/ai_engine/services/common/platform/lock:lock", 37 "//foundation/ai/ai_engine/services/common/platform/os_wrapper/ipc:aie_ipc", 38 "//foundation/ai/ai_engine/services/common/platform/semaphore:semaphore", 39 "//foundation/ai/ai_engine/services/common/platform/threadpool:threadpool", 40 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 41 ] 42} 43 44lite_component("server") { 45 features = [ 46 ":ai_server", 47 "plugin:plugin", 48 "plugin_manager:gen_etc_ini", 49 ] 50} 51