1 Star 0 Fork 12

s_c_c/distributed-build

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0020-feat-add-openssl-gn-file-and-soft-link.patch 2.20 KB
一键复制 编辑 原始数据 按行查看 历史
zxstty 提交于 2023-12-06 15:52 +08:00 . change by zjq
From 536f71e3670ad6c821b980f6336c614dcf693d3e Mon Sep 17 00:00:00 2001
From: zxstty <zhaojiaqi18@huawei.com>
Date: Wed, 8 Nov 2023 18:36:59 +0800
Subject: [PATCH] add openssl
---
.../compiler_gn/third_party/openssl/BUILD.gn | 39 +++++++++++++++++++
.../third_party/openssl/include/openssl | 1 +
2 files changed, 40 insertions(+)
create mode 100644 openeuler/compiler_gn/third_party/openssl/BUILD.gn
create mode 120000 openeuler/compiler_gn/third_party/openssl/include/openssl
diff --git a/openeuler/compiler_gn/third_party/openssl/BUILD.gn b/openeuler/compiler_gn/third_party/openssl/BUILD.gn
new file mode 100644
index 0000000..7b953eb
--- /dev/null
+++ b/openeuler/compiler_gn/third_party/openssl/BUILD.gn
@@ -0,0 +1,39 @@
+# Copyright (c) 2020-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")
+
+# Only use this to set/unset some cflags, use "platform" variable in gn template to add
+# source code for Windows.
+
+config("libcrypto_config") {
+ include_dirs = [ "/usr/include/openssl" ]
+ libs = [ "crypto" ]
+}
+
+group("libcrypto_static") {
+ public_configs = [ ":libcrypto_config" ]
+}
+
+group("libcrypto_shared") {
+ public_configs = [ ":libcrypto_config" ]
+}
+
+config("libssl_config") {
+ include_dirs = [ "/usr/include/openssl" ]
+ libs = [ "ssl" ]
+}
+
+group("libssl_shared") {
+ public_configs = [ ":libssl_config" ]
+}
diff --git a/openeuler/compiler_gn/third_party/openssl/include/openssl b/openeuler/compiler_gn/third_party/openssl/include/openssl
new file mode 120000
index 0000000..6c29d44
--- /dev/null
+++ b/openeuler/compiler_gn/third_party/openssl/include/openssl
@@ -0,0 +1 @@
+/usr/include/openssl
\ No newline at end of file
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s-c-c/distributed-build.git
git@gitee.com:s-c-c/distributed-build.git
s-c-c
distributed-build
distributed-build
master

搜索帮助