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/ai_engine/services/common", 25 "//foundation/ai/ai_engine/services/server", 26 "//foundation/ai/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 = [ "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel" ] 37} 38 39source_set("asyncDemoPluginCode") { 40 sources = [ "source/sample_plugin_2.cpp" ] 41 42 cflags = [ "-fPIC" ] 43 cflags_cc = cflags 44 45 include_dirs = [ 46 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 47 "//foundation/ai/ai_engine/services/common", 48 "//foundation/ai/ai_engine/services/server", 49 "//foundation/ai/ai_engine/test", 50 "//third_party/bounds_checking_function/include", 51 ] 52} 53 54lite_component("sample_plugin_2_async") { 55 target_type = "shared_library" 56 cflags = [ "-fPIC" ] 57 cflags_cc = cflags 58 features = [ ":asyncDemoPluginCode" ] 59 deps = [ "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel" ] 60} 61