69 lines
2.2 KiB
Diff
69 lines
2.2 KiB
Diff
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
|
|
|