-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Leszek Grzanka edited this page Apr 14, 2023
·
6 revisions
- shallow copy of
master
branch from https://github.com/libamtrack/library - configuration https://github.com/libamtrack/web/blob/master/.gitmodules
- dependabot updating the link daily: https://github.com/libamtrack/web/blob/master/.github/dependabot.yml#L10
In order to bump the link manually follow these steps:
Check what is the current version and compare it with https://github.com/libamtrack/library
cd library
git log
If you simply type git pull
in the main directory only the main repo will be updated.
To update the submodule, go to the root of your repository and run the following command:
git submodule update --remote
Push the changes to the remote repo:
cd ..
git add library
git commit -m "submodule bump"
git push
GSL static libraries should be already compiled (their compilation is time-consuming) and copied to library/distributions/JavaScript/
.
There is no need to recompile them every time.
Set up emsdk:
source $HOME/emsdk/emsdk_env.sh
emcc --version
Compile wasm files:
cd library/distributions/JavaScript && GSL_INCLUDE_DIRS=$HOME/usr/include GSL_LIBRARY=$HOME/usr/lib/libgsl.a GSL_CBLAS_LIBRARY=$HOME/usr/lib/libgslcblas.a ./compile_to_js.sh && cd -
Copy generated files into the proper place:
cp library/distributions/JavaScript/output/libat.wasm src/
cp library/distributions/JavaScript/output/libat.js src/
mkdir -p src/static/js
cp library/distributions/JavaScript/output/libat.wasm src/static/js/
cp library/distributions/JavaScript/output/libat.js src/static/js/
Compile NPM modules and start the server:
npm install
npm run start