Initial commit from sysy-main

This commit is contained in:
Lixuanwang
2025-02-27 23:14:53 +08:00
commit cc523fd30b
1125 changed files with 257793 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#!/bin/bash
# Clean left overs from previous builds if there are any
rm -rf antlr4-runtime build lib
rm -f antlr4-cpp-runtime-macos.zip
# Binaries
cmake . -D CMAKE_OSX_ARCHITECTURES="arm64; x86_64" -DCMAKE_BUILD_TYPE=Release &> /dev/null
make -j 8
rm -rf lib
mkdir lib
cp runtime/libantlr4-runtime.dylib lib
cp runtime/libantlr4-runtime.a lib
# Headers
rm -f -R antlr4-runtime
pushd runtime/src
find . -name '*.h' | cpio -pdm ../../antlr4-runtime
popd
# Zip up and clean up
zip -r antlr4-cpp-runtime-macos.zip antlr4-runtime lib
rm -f -R antlr4-runtime build lib
# Deploy
#cp antlr4-cpp-runtime-macos.zip ~/antlr/sites/website-antlr4/download