2022-10-26 01:59:01 +00:00
|
|
|
package:
|
2022-12-14 08:05:17 +00:00
|
|
|
name: hashlib
|
2022-10-26 01:59:01 +00:00
|
|
|
version: 1.0.0 # Nonsense
|
|
|
|
top-level:
|
|
|
|
- _hashlib
|
|
|
|
build:
|
2022-11-13 03:31:14 +00:00
|
|
|
type: cpython_module
|
2022-10-26 01:59:01 +00:00
|
|
|
script: |
|
|
|
|
mkdir dist
|
|
|
|
export DISTDIR=$(pwd)/dist
|
|
|
|
cd $CPYTHONBUILD
|
|
|
|
|
|
|
|
emcc $STDLIB_MODULE_CFLAGS -c Modules/_hashopenssl.c -o Modules/_hashlib.o \
|
|
|
|
$(pkg-config --cflags --dont-define-prefix libcrypto) -DOPENSSL_THREADS
|
|
|
|
|
|
|
|
emcc Modules/_hashlib.o -o $DISTDIR/_hashlib.so $SIDE_MODULE_LDFLAGS \
|
|
|
|
$(pkg-config --libs --dont-define-prefix libcrypto) -DOPENSSL_THREADS
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
run:
|
|
|
|
- openssl
|
|
|
|
host:
|
|
|
|
- openssl
|