1# Copyright (C) 2023-2023 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("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
15
16config("cast_engine_common_private_config") {
17  include_dirs = [ "include/private" ]
18}
19
20ohos_static_library("cast_engine_common_sources") {
21  sources = [
22    "src/cast_engine_common_helper.cpp",
23    "src/cast_engine_dfx.cpp",
24  ]
25
26  configs = [
27    ":cast_engine_common_private_config",
28    "${cast_engine_root}:cast_engine_default_config",
29  ]
30
31  include_dirs = [
32    "//third_party/json/single_include/nlohmann",
33  ]
34
35  public_configs = [
36    ":cast_engine_common_private_config",
37    "${cast_engine_interfaces}/inner_api:cast_interfaces_config",
38  ]
39
40  external_deps = [
41    "c_utils:utils",
42    "hilog:libhilog",
43    "hisysevent:libhisysevent",
44    "ipc:ipc_core",
45    "image_framework:image_native",
46  ]
47
48  subsystem_name = "castplus"
49  part_name = "cast_engine"
50}
51