2023-05-20 07:03:10 +03:00
|
|
|
distributable:
|
2023-06-11 22:20:45 +03:00
|
|
|
url: git+https://github.com/aws/aws-sdk-cpp
|
2023-05-20 07:03:10 +03:00
|
|
|
ref: ${{version}}
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: aws/aws-sdk-cpp/tags
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
curl.se: '*'
|
|
|
|
zlib.net: 1
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '*'
|
2023-10-25 02:45:26 +03:00
|
|
|
git-scm.org: ^2
|
|
|
|
linux:
|
|
|
|
kernel.org/linux-headers: ^5
|
2023-05-20 07:03:10 +03:00
|
|
|
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
|
2023-08-24 00:59:16 +03:00
|
|
|
- cmake --build build -j {{hw.concurrency}}
|
2023-05-20 07:03:10 +03:00
|
|
|
- cmake --install build
|
|
|
|
|
|
|
|
- |
|
2023-10-02 03:41:57 +03:00
|
|
|
cd {{prefix}}/include
|
|
|
|
mv aws/* .
|
|
|
|
rmdir aws
|
|
|
|
ln -s . aws
|
2023-05-20 07:03:10 +03:00
|
|
|
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
|