mirror of
https://gitee.com/openharmony/request_request
synced 2024-11-27 09:01:05 +00:00
1e481d2a2e
Signed-off-by: fqwert <yanglv2@huawei.com> Change-Id: I4012ecd01207689541c02100fcd631084b338b64
44 lines
1.2 KiB
Plaintext
44 lines
1.2 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") {
|
|
include_dirs = [ "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" ]
|
|
|
|
external_deps = [
|
|
"curl:curl_shared",
|
|
"hilog:libhilog",
|
|
"openssl:libcrypto_shared",
|
|
"openssl:libssl_shared",
|
|
]
|
|
|
|
subsystem_name = "request"
|
|
part_name = "request"
|
|
}
|