Gistrec

AWS Lambda C++ build script [WIP]

Nov 27th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. apt-get update
  2.  
  3. #/-----------------\
  4. #| Install AWS CLI |
  5. #\-----------------/
  6. apt install python-pip -y
  7. pip install awscli
  8.  
  9.  
  10. apt-get install libssl-dev cmake zlib1g-dev libcurl3-dev zip -y
  11. apt-get install git
  12.  
  13. git clone https://github.com/aws/aws-sdk-cpp.git --depth=1
  14. cd aws-sdk-cpp
  15. mkdir build
  16. cd build
  17. cmake .. -DBUILD_ONLY="s3" \
  18.   -DCMAKE_BUILD_TYPE=Release \
  19.   -DBUILD_SHARED_LIBS=OFF \
  20.   -DCUSTOM_MEMORY_MANAGEMENT=OFF \
  21.   -DCMAKE_INSTALL_PREFIX=~/install \
  22.   -DENABLE_UNITY_BUILD=ON
  23. make
  24. make install
  25.  
  26.  
  27.  
  28. git clone https://github.com/awslabs/aws-lambda-cpp.git
  29. cd aws-lambda-cpp
  30. mkdir build
  31. cd build
  32. cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/lambda-install
  33. make && make install
Add Comment
Please, Sign In to add comment