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("//build/lite/config/component/lite_component.gni") 15 16source_set("syncDemoPluginCode") { 17 sources = [ "source/sample_plugin_1.cpp" ] 18 19 cflags = [ "-fPIC" ] 20 cflags_cc = cflags 21 22 include_dirs = [ 23 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 24 "//foundation/ai/engine/services/common", 25 "//foundation/ai/engine/services/server", 26 "//foundation/ai/engine/test", 27 "//third_party/bounds_checking_function/include", 28 ] 29} 30 31lite_component("sample_plugin_1_sync") { 32 target_type = "shared_library" 33 cflags = [ "-fPIC" ] 34 cflags_cc = cflags 35 features = [ ":syncDemoPluginCode" ] 36 deps = [ 37 "//foundation/ai/engine/services/common/protocol/data_channel:data_channel", 38 ] 39} 40 41source_set("asyncDemoPluginCode") { 42 sources = [ "source/sample_plugin_2.cpp" ] 43 44 cflags = [ "-fPIC" ] 45 cflags_cc = cflags 46 47 include_dirs = [ 48 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 49 "//foundation/ai/engine/services/common", 50 "//foundation/ai/engine/services/server", 51 "//foundation/ai/engine/test", 52 "//third_party/bounds_checking_function/include", 53 ] 54} 55 56lite_component("sample_plugin_2_async") { 57 target_type = "shared_library" 58 cflags = [ "-fPIC" ] 59 cflags_cc = cflags 60 features = [ ":asyncDemoPluginCode" ] 61 deps = [ 62 "//foundation/ai/engine/services/common/protocol/data_channel:data_channel", 63 ] 64} 65