mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
39 lines
786 B
YAML
39 lines
786 B
YAML
|
|
||
|
distributable:
|
||
|
url: https://github.com/google/glog/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: google/glog/tags
|
||
|
strip: /^v/
|
||
|
|
||
|
dependencies:
|
||
|
gflags.github.io: '*'
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
cmake.org: '*'
|
||
|
script: |
|
||
|
cmake -S . -B build -G "Unix Makefiles" $ARGS
|
||
|
cmake --build build
|
||
|
cmake --build build --target install
|
||
|
env:
|
||
|
ARGS:
|
||
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||
|
- -DBUILD_SHARED_LIBS=ON
|
||
|
|
||
|
test:
|
||
|
dependencies:
|
||
|
fixture: |
|
||
|
#include <glog/logging.h>
|
||
|
#include <iostream>
|
||
|
#include <memory>
|
||
|
int main(int argc, char* argv[])
|
||
|
{
|
||
|
google::InitGoogleLogging(argv[0]);
|
||
|
LOG(INFO) << "test";
|
||
|
}
|
||
|
script: |
|
||
|
mv $FIXTURE test.cpp
|
||
|
g++ test.cpp -lglog -lgflags -o test
|
||
|
./test
|