Using emcmake in build-tdlib.sh
This commit is contained in:
parent
48a219041a
commit
e2053c3239
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
emconfigure true 2> /dev/null || { echo 'emconfigure not found. Install emsdk and add emconfigure and emmake to PATH environment variable. See instruction at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html. Do not forget to add `emconfigure` and `emmake` to the PATH environment variable via `emsdk/emsdk_env.sh` script.'; exit 1; }
|
emcmake true 2> /dev/null || { echo 'emcmake not found. Install emsdk and add emcmake and emmake to PATH environment variable. See instruction at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html. Do not forget to add `emcmake` and `emmake` to the PATH environment variable via `emsdk/emsdk_env.sh` script.'; exit 1; }
|
||||||
|
|
||||||
rm -rf build/generate
|
rm -rf build/generate
|
||||||
rm -rf build/asmjs
|
rm -rf build/asmjs
|
||||||
@ -28,11 +28,11 @@ cmake $TD_ROOT || exit 1
|
|||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
cd build/wasm
|
cd build/wasm
|
||||||
eval emconfigure cmake -DCMAKE_BUILD_TYPE=MinSizeRel $OPENSSL_OPTIONS $TD_ROOT || exit 1
|
eval emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel $OPENSSL_OPTIONS $TD_ROOT || exit 1
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
cd build/asmjs
|
cd build/asmjs
|
||||||
eval emconfigure cmake -DCMAKE_BUILD_TYPE=MinSizeRel $OPENSSL_OPTIONS -DASMJS=1 $TD_ROOT || exit 1
|
eval emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel $OPENSSL_OPTIONS -DASMJS=1 $TD_ROOT || exit 1
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
echo "Generating TDLib autogenerated source files..."
|
echo "Generating TDLib autogenerated source files..."
|
||||||
|
Loading…
Reference in New Issue
Block a user