• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024-2024 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_session_utils_config") {
17  include_dirs = [
18    "include",
19    "//third_party/glib/glib",
20    "//third_party/glib",
21  ]
22}
23
24ohos_static_library("cast_session_utils") {
25  sources = [
26    "src/encrypt_decrypt.cpp",
27    "src/handler.cpp",
28    "src/message.cpp",
29    "src/permission.cpp",
30    "src/state_machine.cpp",
31    "src/cast_timer.cpp",
32    "src/utils.cpp",
33  ]
34
35  configs = [
36    ":cast_session_utils_config",
37    "${cast_engine_root}:cast_engine_default_config",
38  ]
39
40  public_configs = [ ":cast_session_utils_config" ]
41
42  deps = [
43    "${cast_engine_common}:cast_engine_common_sources",
44    "//third_party/openssl:libcrypto_shared",
45    "//third_party/glib:glib_packages",
46  ]
47
48  external_deps = [
49    "access_token:libaccesstoken_sdk",
50    "c_utils:utils",
51    "hilog:libhilog",
52    "ipc:ipc_core",
53    "wifi:wifi_sdk",
54  ]
55
56  subsystem_name = "castplus"
57  part_name = "cast_engine"
58}
59