mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+aws-sdk-cpp (#1828)
* [wip] +aws-sdk-cpp * add git for now * use upcoming `git` distributable this works with the upcoming brewkit 0.31.0 * appears moustaches don't work here https://github.com/teaxyz/brewkit/issues/117 * add missing deps --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
be1ae6b3ac
commit
9378f80639
1 changed files with 53 additions and 0 deletions
53
projects/github.com/aws/aws-sdk-cpp/package.yml
Normal file
53
projects/github.com/aws/aws-sdk-cpp/package.yml
Normal file
|
@ -0,0 +1,53 @@
|
|||
distributable:
|
||||
git: 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:
|
||||
tea.xyz/gx/cc: c99
|
||||
cmake.org: '*'
|
||||
tea.xyz/gx/make: '*'
|
||||
git-scm.org: '*'
|
||||
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
|
||||
- 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:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
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
|
Loading…
Reference in a new issue