1# Copyright (c) 2021-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. 13# 14import("//foundation/multimedia/histreamer/config.gni") 15 16config("histreamer_player_config") { 17 include_dirs = [ "//foundation/multimedia/histreamer/engine/scene/player" ] 18 if (hst_is_lite_sys) { 19 include_dirs += [ 20 "//foundation/multimedia/media_lite/interfaces/innerkits", 21 "//foundation/multimedia/media_lite/interfaces/kits/player_lite", 22 ] 23 } else { 24 include_dirs += [ 25 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 26 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 27 "//foundation/multimedia/player_framework/services/include", 28 "//foundation/multimedia/player_framework/services/services/engine_intf", 29 "//commonlibrary/c_utils/base/include", 30 ] 31 } 32} 33 34source_set("histreamer_player") { 35 include_dirs = [ "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter" ] 36 sources = [ 37 "//foundation/multimedia/histreamer/engine/scene/player/internal/state.cpp", 38 "//foundation/multimedia/histreamer/engine/scene/player/internal/state_machine.cpp", 39 ] 40 public_configs = [ 41 ":histreamer_player_config", 42 "//foundation/multimedia/histreamer:histreamer_presets", 43 ] 44 public_deps = [ 45 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 46 "//foundation/multimedia/histreamer/engine/pipeline:histreamer_pipeline", 47 "//foundation/multimedia/histreamer/engine/scene:scene_common", 48 ] 49 if (hst_is_lite_sys) { 50 sources += [ 51 "//foundation/multimedia/histreamer/engine/scene/player/lite/hiplayer.cpp", 52 "//foundation/multimedia/histreamer/engine/scene/player/lite/hiplayer_impl.cpp", 53 ] 54 public_deps += [ "//foundation/multimedia/utils/lite:media_common" ] 55 } else { 56 sources += [ 57 "//foundation/multimedia/histreamer/engine/scene/player/standard/hiplayer_callback_looper.cpp", 58 "//foundation/multimedia/histreamer/engine/scene/player/standard/hiplayer_impl.cpp", 59 "//foundation/multimedia/histreamer/engine/scene/player/standard/media_utils.cpp", 60 ] 61 public_deps += [ 62 "//foundation/multimedia/player_framework/services/utils:media_format", 63 ] 64 deps = [ "//foundation/graphic/graphic_2d/frameworks/surface:surface" ] 65 } 66} 67