mirror of
https://gitee.com/openharmony/request_request
synced 2024-11-30 10:32:30 +00:00
03ed7a67f1
Signed-off-by: anyueling <anyueling@huawei.com>
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
import("//build/ohos.gni")
|
|
|
|
config("common_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"include",
|
|
"//third_party/curl/include",
|
|
"//third_party/openssl/include",
|
|
]
|
|
|
|
ldflags = [ "-Wl,--exclude-libs=ALL" ]
|
|
cflags_cc = [ "-fexceptions" ]
|
|
cflags = [ "-DOPENSSL_ARM64_PLATFORM" ]
|
|
cflags += [
|
|
"-fdata-sections",
|
|
"-ffunction-sections",
|
|
"-fvisibility=hidden",
|
|
]
|
|
}
|
|
|
|
ohos_static_library("request_common_static") {
|
|
sources = [ "src/module_init.cpp" ]
|
|
|
|
public_configs = [ ":common_config" ]
|
|
|
|
configs = [ "//build/config/gcc:symbol_visibility_hidden" ]
|
|
|
|
deps = [
|
|
"//third_party/curl:curl_shared",
|
|
"//third_party/openssl:libcrypto_shared",
|
|
"//third_party/openssl:libssl_shared",
|
|
]
|
|
|
|
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
|
|
|
|
subsystem_name = "request"
|
|
part_name = "request"
|
|
}
|