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