build.sh 627 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # Clean the boringssl build directory
  3. rm -rf boringssl/build/*
  4. mkdir -p boringssl/install/lib
  5. # Build boringssl
  6. cd boringssl
  7. mkdir -p build
  8. cd build
  9. cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE ..
  10. make
  11. make install DESTDIR=../install
  12. # Build the protobuf files
  13. cd ../../proto
  14. mkdir -p protobuf
  15. cd protobuf
  16. wget https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip
  17. unzip protoc-22.3-linux-x86_64.zip
  18. cd ..
  19. export PATH=$(pwd)/protobuf/bin:$PATH
  20. protoc -I . *.proto --cpp_out=.
  21. cd ..
  22. # Build lilac
  23. make