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/media_foundation/config.gni") 15 16config("histreamer_player_config") { 17 include_dirs = [ 18 "//foundation/multimedia/media_foundation/engine/include", 19 "//foundation/multimedia/media_foundation/engine/scene/player", 20 ] 21 if (hst_is_lite_sys) { 22 include_dirs += [ 23 "//foundation/multimedia/media_lite/interfaces/innerkits", 24 "//foundation/multimedia/media_lite/interfaces/kits/player_lite", 25 ] 26 } else { 27 include_dirs += [ 28 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 29 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 30 "//foundation/multimedia/player_framework/services/include", 31 "//foundation/multimedia/player_framework/services/services/engine_intf", 32 "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", 33 ] 34 } 35} 36 37if (hst_is_lite_sys) { 38 source_set("histreamer_player") { 39 include_dirs = [ "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter" ] 40 sources = [ 41 "//foundation/multimedia/media_foundation/engine/scene/player/internal/state.cpp", 42 "//foundation/multimedia/media_foundation/engine/scene/player/internal/state_machine.cpp", 43 ] 44 public_configs = [ 45 ":histreamer_player_config", 46 "//foundation/multimedia/media_foundation:histreamer_presets", 47 ] 48 public_deps = [ 49 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 50 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base", 51 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_engine_filters", 52 "//foundation/multimedia/media_foundation/engine/scene:scene_common", 53 ] 54 sources += [ 55 "//foundation/multimedia/media_foundation/engine/scene/player/lite/hiplayer.cpp", 56 "//foundation/multimedia/media_foundation/engine/scene/player/lite/hiplayer_impl.cpp", 57 ] 58 public_deps += [ "//foundation/multimedia/media_utils_lite:media_common" ] 59 } 60} else { 61 ohos_source_set("histreamer_player") { 62 subsystem_name = "multimedia" 63 part_name = "media_foundation" 64 include_dirs = [ "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter" ] 65 sources = [ 66 "//foundation/multimedia/media_foundation/engine/scene/player/internal/state.cpp", 67 "//foundation/multimedia/media_foundation/engine/scene/player/internal/state_machine.cpp", 68 ] 69 public_configs = [ 70 ":histreamer_player_config", 71 "//foundation/multimedia/media_foundation:histreamer_presets", 72 ] 73 public_deps = [ 74 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 75 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base", 76 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_engine_filters", 77 "//foundation/multimedia/media_foundation/engine/scene:scene_common", 78 ] 79 sources += [ 80 "//foundation/multimedia/media_foundation/engine/scene/player/standard/hiplayer_callback_looper.cpp", 81 "//foundation/multimedia/media_foundation/engine/scene/player/standard/hiplayer_impl.cpp", 82 "//foundation/multimedia/media_foundation/engine/scene/player/standard/media_utils.cpp", 83 ] 84 public_external_deps = [ "c_utils:utils" ] 85 external_deps = [ 86 "graphic_surface:surface", 87 "hilog:libhilog", 88 ] 89 } 90} 91