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/histreamer/config.gni") 15if (hst_is_lite_sys) { 16 import("//build/lite/config/component/lite_component.gni") 17 18 group("plugin_http_lite_source") { 19 if (ohos_kernel_type == "liteos_m") { 20 deps = [ ":histreamer_plugin_lite_HttpSource" ] 21 } else { 22 deps = [] 23 } 24 } 25 26 config("plugin_http_lite_source_config") { 27 include_dirs = [ 28 "http_lite_source", 29 "//foundation/multimedia/histreamer/engine/utils", 30 "//foundation/multimedia/histreamer/engine/foundation/", 31 ] 32 } 33 34 lite_library("histreamer_plugin_lite_HttpSource") { 35 if (ohos_kernel_type == "liteos_m") { 36 target_type = "static_library" 37 } else { 38 target_type = "shared_library" 39 } 40 sources = [ "http_lite_source_plugin.cpp" ] 41 public_configs = [ 42 ":plugin_http_lite_source_config", 43 "//foundation/multimedia/histreamer:histreamer_presets", 44 ] 45 public_deps = [ 46 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 47 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 48 "//third_party/curl:libcurl_static", 49 ] 50 } 51} 52