15e81a82fSopenharmony_ci# Copyright (c) 2024-2024 Huawei Device Co., Ltd.
25e81a82fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
35e81a82fSopenharmony_ci# you may not use this file except in compliance with the License.
45e81a82fSopenharmony_ci# You may obtain a copy of the License at
55e81a82fSopenharmony_ci#
65e81a82fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
75e81a82fSopenharmony_ci#
85e81a82fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
95e81a82fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
105e81a82fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115e81a82fSopenharmony_ci# See the License for the specific language governing permissions and
125e81a82fSopenharmony_ci# limitations under the License.
135e81a82fSopenharmony_ci
145e81a82fSopenharmony_ciimport("//foundation/CastEngine/castengine_cast_framework/cast_engine.gni")
155e81a82fSopenharmony_ci
165e81a82fSopenharmony_ciconfig("cast_session_utils_config") {
175e81a82fSopenharmony_ci  include_dirs = [
185e81a82fSopenharmony_ci    "include",
195e81a82fSopenharmony_ci    "//third_party/glib/glib",
205e81a82fSopenharmony_ci    "//third_party/glib",
215e81a82fSopenharmony_ci  ]
225e81a82fSopenharmony_ci}
235e81a82fSopenharmony_ci
245e81a82fSopenharmony_ciohos_static_library("cast_session_utils") {
255e81a82fSopenharmony_ci  sources = [
265e81a82fSopenharmony_ci    "src/encrypt_decrypt.cpp",
275e81a82fSopenharmony_ci    "src/handler.cpp",
285e81a82fSopenharmony_ci    "src/message.cpp",
295e81a82fSopenharmony_ci    "src/permission.cpp",
305e81a82fSopenharmony_ci    "src/state_machine.cpp",
315e81a82fSopenharmony_ci    "src/cast_timer.cpp",
325e81a82fSopenharmony_ci    "src/utils.cpp",
335e81a82fSopenharmony_ci  ]
345e81a82fSopenharmony_ci
355e81a82fSopenharmony_ci  configs = [
365e81a82fSopenharmony_ci    ":cast_session_utils_config",
375e81a82fSopenharmony_ci    "${cast_engine_root}:cast_engine_default_config",
385e81a82fSopenharmony_ci  ]
395e81a82fSopenharmony_ci
405e81a82fSopenharmony_ci  public_configs = [ ":cast_session_utils_config" ]
415e81a82fSopenharmony_ci
425e81a82fSopenharmony_ci  deps = [
435e81a82fSopenharmony_ci    "${cast_engine_common}:cast_engine_common_sources",
445e81a82fSopenharmony_ci    "//third_party/openssl:libcrypto_shared",
455e81a82fSopenharmony_ci    "//third_party/glib:glib_packages",
465e81a82fSopenharmony_ci  ]
475e81a82fSopenharmony_ci
485e81a82fSopenharmony_ci  external_deps = [
495e81a82fSopenharmony_ci    "access_token:libaccesstoken_sdk",
505e81a82fSopenharmony_ci    "c_utils:utils",
515e81a82fSopenharmony_ci    "hilog:libhilog",
525e81a82fSopenharmony_ci    "ipc:ipc_core",
535e81a82fSopenharmony_ci    "wifi:wifi_sdk",
545e81a82fSopenharmony_ci  ]
555e81a82fSopenharmony_ci
565e81a82fSopenharmony_ci  subsystem_name = "castplus"
575e81a82fSopenharmony_ci  part_name = "cast_engine"
585e81a82fSopenharmony_ci}
59