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/histreamer/config.gni") 15 16config("histreamer_recorder_config") { 17 if (multimedia_histreamer_enable_recorder) { 18 include_dirs = 19 [ "//foundation/multimedia/histreamer/engine/scene/recorder" ] 20 if (!hst_is_lite_sys) { 21 include_dirs += [ 22 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 23 "//foundation/multimedia/player_framework/interfaces/inner_api/native", 24 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 25 "//foundation/multimedia/player_framework/services/include", 26 "//foundation/multimedia/player_framework/services/services/engine_intf", 27 "//commonlibrary/c_utils/base/include", 28 ] 29 } 30 } 31} 32 33source_set("histreamer_recorder") { 34 if (multimedia_histreamer_enable_recorder) { 35 include_dirs = [ "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter" ] 36 sources = [ 37 "internal/state.cpp", 38 "internal/state_machine.cpp", 39 ] 40 public_configs = [ 41 ":histreamer_recorder_config", 42 "//foundation/communication/ipc/interfaces/innerkits/ipc_core:libipc_core_private_config", 43 "//foundation/multimedia/histreamer:histreamer_presets", 44 ] 45 deps = [ "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation" ] 46 if (!hst_is_lite_sys) { 47 sources += [ 48 "standard/hirecorder_impl.cpp", 49 "standard/recorder_utils.cpp", 50 ] 51 deps += [ 52 "//foundation/graphic/graphic_2d/frameworks/surface:surface", 53 "//foundation/multimedia/histreamer/engine/pipeline:histreamer_pipeline", 54 ] 55 } 56 } 57} 58