mirror of https://github.com/pyodide/pyodide.git
26 lines
580 B
YAML
26 lines
580 B
YAML
package:
|
|
name: hashlib
|
|
version: 1.0.0 # Nonsense
|
|
tag:
|
|
- always
|
|
top-level:
|
|
- _hashlib
|
|
build:
|
|
type: cpython_module
|
|
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
|