• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    sources = [
40      "//foundation/multimedia/media_foundation/engine/scene/player/internal/state.cpp",
41      "//foundation/multimedia/media_foundation/engine/scene/player/internal/state_machine.cpp",
42    ]
43    public_configs = [
44      ":histreamer_player_config",
45      "//foundation/multimedia/media_foundation:histreamer_presets",
46    ]
47    public_deps = [
48      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
49      "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base",
50      "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_engine_filters",
51      "//foundation/multimedia/media_foundation/engine/scene:scene_common",
52    ]
53    sources += [
54      "//foundation/multimedia/media_foundation/engine/scene/player/lite/hiplayer.cpp",
55      "//foundation/multimedia/media_foundation/engine/scene/player/lite/hiplayer_impl.cpp",
56    ]
57    public_deps += [ "//foundation/multimedia/media_utils_lite:media_common" ]
58  }
59} else {
60  ohos_source_set("histreamer_player") {
61    subsystem_name = "multimedia"
62    part_name = "media_foundation"
63    sources = [
64      "//foundation/multimedia/media_foundation/engine/scene/player/internal/state.cpp",
65      "//foundation/multimedia/media_foundation/engine/scene/player/internal/state_machine.cpp",
66    ]
67    public_configs = [
68      ":histreamer_player_config",
69      "//foundation/multimedia/media_foundation:histreamer_presets",
70    ]
71    public_deps = [
72      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
73      "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_base",
74      "//foundation/multimedia/media_foundation/engine/pipeline:histreamer_engine_filters",
75      "//foundation/multimedia/media_foundation/engine/scene:scene_common",
76    ]
77    sources += [
78      "//foundation/multimedia/media_foundation/engine/scene/player/standard/hiplayer_callback_looper.cpp",
79      "//foundation/multimedia/media_foundation/engine/scene/player/standard/hiplayer_impl.cpp",
80      "//foundation/multimedia/media_foundation/engine/scene/player/standard/media_utils.cpp",
81    ]
82    public_external_deps = [ "c_utils:utils" ]
83    external_deps = [
84      "graphic_surface:surface",
85      "hilog:libhilog",
86      "hitrace:hitrace_meter",
87    ]
88  }
89}
90