1# Copyright (C) 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("//build/ohos.gni") 15 16config("download_service_config") { 17 visibility = [ ":*" ] 18 include_dirs = [ "include" ] 19 20 cflags_cc = [ "-fexceptions" ] 21} 22 23ohos_shared_library("download_server") { 24 sources = [ 25 "//base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/download_config.cpp", 26 "//base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/download_info.cpp", 27 "src/download_notify_proxy.cpp", 28 "src/download_service_ability.cpp", 29 "src/download_service_manager.cpp", 30 "src/download_service_stub.cpp", 31 "src/download_service_task.cpp", 32 "src/download_thread.cpp", 33 "src/net_conn_callback_observer.cpp", 34 ] 35 36 public_configs = [ 37 "//utils/native/base:utils_config", 38 ":download_service_config", 39 ] 40 include_dirs = [ 41 "//utils/native/base/include", 42 "//utils/system/safwk/native/include", 43 "//base/miscservices/request/download/interfaces/innerkits/include", 44 "//base/miscservices/request/download/utils/include", 45 "//third_party/json/include", 46 "//base/miscservices/request/download/interfaces/kits/js/napi/download_single/include", 47 "//third_party/curl/include", 48 "//foundation/aafwk/standard/interfaces/innerkits/uri/include", 49 ] 50 deps = [ 51 "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api", 52 "//foundation/aafwk/standard/interfaces/innerkits/uri:zuri", 53 "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler", 54 "//foundation/communication/netmanager_base/interfaces/innerkits/netconnclient:net_conn_manager_if", 55 "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk", 56 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 57 "//third_party/curl:curl", 58 "//utils/native/base:utils", 59 ] 60 61 defines = [ "NO_SSL_CERTIFICATION=1" ] 62 63 external_deps = [ 64 "ability_base:zuri", 65 "access_token:libaccesstoken_sdk", 66 "bundle_framework:appexecfwk_core", 67 "hiviewdfx_hilog_native:libhilog", 68 "ipc:ipc_core", 69 "multimedia_image_standard:image_native", 70 "os_account_standard:os_account_innerkits", 71 "ril_adapter:hril_innerkits", 72 ] 73 subsystem_name = "miscservices" 74 part_name = "request" 75} 76