1# Copyright (c) 2022-2022 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") 15import("//foundation/multimedia/player_framework/config.gni") 16 17ohos_source_set("std_engine_factory") { 18 subsystem_name = "multimedia" 19 part_name = "media_foundation" 20 if (hst_is_standard_sys) { 21 include_dirs = [ 22 "//foundation/multimedia/media_foundation/engine", 23 "//foundation/multimedia/player_framework/services/services/engine_intf", 24 "//base/startup/init/interfaces/innerkits/include/syspara", 25 ] 26 public_deps = [ "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation" ] 27 public_configs = 28 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 29 sources = [ "standard/hst_engine_factory.cpp" ] 30 deps = [ "player:histreamer_player" ] 31 external_deps = [ 32 "graphic_2d:color_manager", 33 "graphic_surface:surface", 34 "init:libbegetutil", 35 ] 36 if (media_foundation_enable_recorder) { 37 deps += [ "recorder:histreamer_recorder" ] 38 } 39 defines = [] 40 defines += player_framework_defines 41 } 42} 43 44ohos_source_set("scene_common") { 45 subsystem_name = "multimedia" 46 part_name = "media_foundation" 47 include_dirs = [ 48 "//foundation/multimedia/media_foundation/engine", 49 "//foundation/multimedia/media_foundation/engine/include", 50 ] 51 public_deps = [ 52 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 53 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base", 54 ] 55 sources = [ 56 "common/data_stream.cpp", 57 "common/data_stream_impl.cpp", 58 "common/media_stat_stub.cpp", 59 ] 60 public_configs = 61 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 62} 63