mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
+glog (#459)
* +glog * +double-conversion (#436) * +double-conversion * fix test
This commit is contained in:
parent
5e2d3f5309
commit
e2e2e4160e
1 changed files with 42 additions and 0 deletions
42
projects/google.com/glog/package.yml
Normal file
42
projects/google.com/glog/package.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
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:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
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:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
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
|
Loading…
Reference in a new issue