@cpp.js/package-openssl 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +177 -0
- package/README.md +50 -0
- package/assets/cacert.pem +3480 -0
- package/cppjs-package-openssl.podspec +14 -0
- package/cppjs.build.js +28 -0
- package/cppjs.config.js +14 -0
- package/package.json +26 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
3
|
+
|
|
4
|
+
Pod::Spec.new do |s|
|
|
5
|
+
s.module_name = "openssl"
|
|
6
|
+
s.name = "cppjs-package-openssl"
|
|
7
|
+
s.version = package["nativeVersion"]
|
|
8
|
+
s.summary = "TLS/SSL and crypto library"
|
|
9
|
+
s.homepage = "https://www.openssl.org/"
|
|
10
|
+
s.author = "OpenSSL Authors"
|
|
11
|
+
s.source = { :http => "https://cpp.js.org" }
|
|
12
|
+
s.vendored_frameworks = 'ssl.xcframework', 'crypto.xcframework'
|
|
13
|
+
s.resources = ['dist/prebuilt/iOS-iphoneos/ssl/certs']
|
|
14
|
+
end
|
package/cppjs.build.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const platformBuild = {
|
|
2
|
+
'Emscripten-x86_64': ['--cross-compile-prefix=', 'cc', 'no-apps', 'no-docs', 'no-tests', 'no-shared', 'threads'],
|
|
3
|
+
'Android-arm64-v8a': ['--cross-compile-prefix=', 'cc', 'no-apps', 'no-docs', 'no-tests', 'no-shared', 'threads'],
|
|
4
|
+
'Android-x86_64': ['--cross-compile-prefix=', 'cc', 'no-apps', 'no-docs', 'no-tests', 'no-shared', 'threads'],
|
|
5
|
+
'iOS-iphoneos': ['--cross-compile-prefix=', 'cc', 'no-apps', 'no-docs', 'no-tests', 'no-shared', 'threads'],
|
|
6
|
+
'iOS-iphonesimulator': ['--cross-compile-prefix=', 'cc', 'no-apps', 'no-docs', 'no-tests', 'no-shared', 'threads'],
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
getURL: (version) => `https://github.com/openssl/openssl/releases/download/openssl-${version}/openssl-${version}.tar.gz`,
|
|
11
|
+
buildType: 'configure',
|
|
12
|
+
getBuildParams: (platform) => [
|
|
13
|
+
...(platformBuild[platform] || []),
|
|
14
|
+
],
|
|
15
|
+
env: [
|
|
16
|
+
'CFLAGS="-fPIC"',
|
|
17
|
+
'CXXFLAGS="-fPIC"',
|
|
18
|
+
],
|
|
19
|
+
copyToDist: {
|
|
20
|
+
'assets/cacert.pem': [
|
|
21
|
+
'Android-arm64-v8a/ssl/certs/cacert.pem',
|
|
22
|
+
'Android-x86_64/ssl/certs/cacert.pem',
|
|
23
|
+
'Emscripten-x86_64/ssl/certs/cacert.pem',
|
|
24
|
+
'iOS-iphoneos/ssl/certs/cacert.pem',
|
|
25
|
+
'iOS-iphonesimulator/ssl/certs/cacert.pem',
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
};
|
package/cppjs.config.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import opensslWasm from '@cpp.js/package-openssl-wasm/cppjs.config.js';
|
|
2
|
+
import opensslAndroid from '@cpp.js/package-openssl-android/cppjs.config.js';
|
|
3
|
+
import opensslIos from '@cpp.js/package-openssl-ios/cppjs.config.js';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
dependencies: [
|
|
7
|
+
opensslWasm,
|
|
8
|
+
opensslAndroid,
|
|
9
|
+
opensslIos,
|
|
10
|
+
],
|
|
11
|
+
paths: {
|
|
12
|
+
config: import.meta.url
|
|
13
|
+
}
|
|
14
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cpp.js/package-openssl",
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
|
+
"nativeVersion": "3.6.0",
|
|
5
|
+
"description": "This package provides a OpenSSL library compiled with Cpp.js, enabling seamless usage of OpenSSL functionalities in JavaScript, WebAssembly and React Native projects. It supports cryptography and secure communication for web and mobile applications.",
|
|
6
|
+
"homepage": "https://github.com/bugra9/cpp.js/tree/main/packages/cppjs-package-openssl#readme",
|
|
7
|
+
"repository": "https://github.com/bugra9/cpp.js.git",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"openssl",
|
|
12
|
+
"ssl",
|
|
13
|
+
"libssl",
|
|
14
|
+
"crypto",
|
|
15
|
+
"libcrypto",
|
|
16
|
+
"cpp.js-package",
|
|
17
|
+
"webassembly",
|
|
18
|
+
"react-native"
|
|
19
|
+
],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@cpp.js/package-openssl-wasm": "^2.0.0-beta.1",
|
|
22
|
+
"@cpp.js/package-openssl-ios": "^2.0.0-beta.1",
|
|
23
|
+
"@cpp.js/package-openssl-android": "^2.0.0-beta.1",
|
|
24
|
+
"cpp.js": "^2.0.0-beta.1"
|
|
25
|
+
}
|
|
26
|
+
}
|