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 "hilog:libhilog", 35 "init:libbegetutil", 36 ] 37 if (media_foundation_enable_recorder) { 38 deps += [ "recorder:histreamer_recorder" ] 39 } 40 defines = [] 41 defines += player_framework_defines 42 } 43} 44 45ohos_source_set("scene_common") { 46 subsystem_name = "multimedia" 47 part_name = "media_foundation" 48 include_dirs = [ 49 "//foundation/multimedia/media_foundation/engine", 50 "//foundation/multimedia/media_foundation/engine/include", 51 ] 52 public_deps = [ 53 "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation", 54 "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base", 55 ] 56 sources = [ 57 "common/data_stream.cpp", 58 "common/data_stream_impl.cpp", 59 "common/media_stat_stub.cpp", 60 ] 61 public_configs = 62 [ "//foundation/multimedia/media_foundation:histreamer_presets" ] 63 if (hst_is_standard_sys) { 64 external_deps = [ "hilog:libhilog" ] 65 } 66} 67