mirror of
https://github.com/ivabus/pantry
synced 2024-11-15 04:55:08 +03:00
a4f8e37825
* fix(aws-sdk-cpp) closes #3751 closes #3794 closes #3816 wip wip * leftover :(
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
distributable:
|
|
url: git+https://github.com/aws/aws-sdk-cpp
|
|
ref: ${{version}}
|
|
|
|
versions:
|
|
github: aws/aws-sdk-cpp/tags
|
|
|
|
dependencies:
|
|
curl.se: '*'
|
|
zlib.net: 1
|
|
|
|
build:
|
|
dependencies:
|
|
cmake.org: '*'
|
|
git-scm.org: ^2
|
|
linux:
|
|
kernel.org/linux-headers: ^5
|
|
script:
|
|
# required or cmake fails with an unhelpful error
|
|
# this is why we need to build from a git checkout
|
|
- git submodule update --init --recursive
|
|
|
|
- cmake -S . -B build $ARGS
|
|
- cmake --build build -j {{hw.concurrency}}
|
|
- cmake --install build
|
|
|
|
- |
|
|
cd {{prefix}}/include
|
|
mv aws/* .
|
|
rmdir aws
|
|
ln -s . aws
|
|
env:
|
|
LDFLAGS: -Wl,-rpath,{{prefix}}
|
|
ARGS:
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
|
- -DENABLE_TESTING=OFF
|
|
|
|
test:
|
|
fixture: |
|
|
#include <aws/core/Version.h>
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
std::cout << Aws::Version::GetVersionString() << std::endl;
|
|
return 0;
|
|
}
|
|
script: |
|
|
mv $FIXTURE test.cpp
|
|
c++ -std=c++11 test.cpp -laws-cpp-sdk-core -o test
|
|
./test
|