xref: /foundation/ai/ai_engine/test/sample/BUILD.gn (revision 0485dae0)
10485dae0Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
20485dae0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
30485dae0Sopenharmony_ci# you may not use this file except in compliance with the License.
40485dae0Sopenharmony_ci# You may obtain a copy of the License at
50485dae0Sopenharmony_ci#
60485dae0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
70485dae0Sopenharmony_ci#
80485dae0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
90485dae0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
100485dae0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110485dae0Sopenharmony_ci# See the License for the specific language governing permissions and
120485dae0Sopenharmony_ci# limitations under the License.
130485dae0Sopenharmony_ciimport("//build/lite/config/component/lite_component.gni")
140485dae0Sopenharmony_ci
150485dae0Sopenharmony_cisource_set("syncDemoPluginCode") {
160485dae0Sopenharmony_ci  sources = [ "source/sample_plugin_1.cpp" ]
170485dae0Sopenharmony_ci
180485dae0Sopenharmony_ci  cflags = [ "-fPIC" ]
190485dae0Sopenharmony_ci  cflags_cc = cflags
200485dae0Sopenharmony_ci
210485dae0Sopenharmony_ci  include_dirs = [
220485dae0Sopenharmony_ci    "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog",
230485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/services/common",
240485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/services/server",
250485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/test",
260485dae0Sopenharmony_ci    "//third_party/bounds_checking_function/include",
270485dae0Sopenharmony_ci  ]
280485dae0Sopenharmony_ci}
290485dae0Sopenharmony_ci
300485dae0Sopenharmony_cilite_component("sample_plugin_1") {
310485dae0Sopenharmony_ci  target_type = "shared_library"
320485dae0Sopenharmony_ci  cflags = [ "-fPIC" ]
330485dae0Sopenharmony_ci  cflags_cc = cflags
340485dae0Sopenharmony_ci  features = [ ":syncDemoPluginCode" ]
350485dae0Sopenharmony_ci  deps = [ "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel" ]
360485dae0Sopenharmony_ci}
370485dae0Sopenharmony_ci
380485dae0Sopenharmony_cisource_set("asyncDemoPluginCode") {
390485dae0Sopenharmony_ci  sources = [ "source/sample_plugin_2.cpp" ]
400485dae0Sopenharmony_ci
410485dae0Sopenharmony_ci  cflags = [ "-fPIC" ]
420485dae0Sopenharmony_ci  cflags_cc = cflags
430485dae0Sopenharmony_ci
440485dae0Sopenharmony_ci  include_dirs = [
450485dae0Sopenharmony_ci    "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog",
460485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/services/common",
470485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/services/server",
480485dae0Sopenharmony_ci    "//foundation/ai/ai_engine/test",
490485dae0Sopenharmony_ci    "//third_party/bounds_checking_function/include",
500485dae0Sopenharmony_ci  ]
510485dae0Sopenharmony_ci}
520485dae0Sopenharmony_ci
530485dae0Sopenharmony_cilite_component("sample_plugin_2") {
540485dae0Sopenharmony_ci  target_type = "shared_library"
550485dae0Sopenharmony_ci  cflags = [ "-fPIC" ]
560485dae0Sopenharmony_ci  cflags_cc = cflags
570485dae0Sopenharmony_ci  features = [ ":asyncDemoPluginCode" ]
580485dae0Sopenharmony_ci  deps = [ "//foundation/ai/ai_engine/services/common/protocol/data_channel:data_channel" ]
590485dae0Sopenharmony_ci}
60