mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
* make sure that we can build without boost iostreams or seralization adds some "private" variables on the python side to check for these compilation flags * get out minimal cmake version correct * get minimallib js building installs an up-to-date cmake also updates the version of boost being used for the minimallib adds extra argument to allow the repo to be specified
21 lines
773 B
Bash
21 lines
773 B
Bash
set -e
|
|
|
|
# Clean and create distribution folder
|
|
MINIMALLIB_OUTPUT_PATH="Code/MinimalLib/dist"
|
|
rm -rf $MINIMALLIB_OUTPUT_PATH
|
|
mkdir -p $MINIMALLIB_OUTPUT_PATH
|
|
|
|
# Build distribution files
|
|
RDKIT_BRANCH=${1:-master}
|
|
RDKIT_GIT_URL=${2:-"https://github.com/rdkit/rdkit.git"}
|
|
echo "Building distribution files for release $RDKIT_BRANCH from repo $RDKIT_GIT_URL"
|
|
DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile --build-arg RDKIT_BRANCH=$RDKIT_BRANCH --build-arg RDKIT_GIT_URL=$RDKIT_GIT_URL -o $MINIMALLIB_OUTPUT_PATH .
|
|
|
|
# Make files executable
|
|
chmod a+rwx $MINIMALLIB_OUTPUT_PATH/RDKit_minimal.js
|
|
chmod a+rwx $MINIMALLIB_OUTPUT_PATH/RDKit_minimal.wasm
|
|
|
|
# Log build completed
|
|
echo "Build completed"
|
|
echo "MinimalLib distribution files are at $MINIMALLIB_OUTPUT_PATH"
|