request_request/common/BUILD.gn
fqwert 1e481d2a2e 独立编译整改
Signed-off-by: fqwert <yanglv2@huawei.com>
Change-Id: I4012ecd01207689541c02100fcd631084b338b64
2024-06-14 14:50:05 +08:00

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"
}