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