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("//foundation/ai/ai_engine/services/ai_plugin_config.gni")
14
15action("gen_etc_ini") {
16  outputs = [ "${root_out_dir}/etc/ai_engine_plugin.ini" ]
17  script = "get_config_ini.py"
18  args = []
19  args = [ rebase_path(get_path_info("//", "abspath")) ]
20  args += [ rebase_path("$root_out_dir") ]
21  args += [ "${board_name}" ]
22  args += [ "$activate_plugin_list" ]
23}
24
25source_set("plugin_manager") {
26  sources = [
27    "source/aie_plugin_info.cpp",
28    "source/plugin.cpp",
29    "source/plugin_label.cpp",
30    "source/plugin_manager.cpp",
31  ]
32
33  cflags = [ "-fPIC" ]
34  cflags_cc = cflags
35
36  include_dirs = [
37    "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog",
38    "//foundation/ai/ai_engine/interfaces/",
39    "//foundation/ai/ai_engine/services/common/",
40    "//foundation/ai/ai_engine/services/server/",
41    "//third_party/bounds_checking_function/include",
42  ]
43}
44