From e2e2e4160e6379ce0d5de0d818385cfd4a8e4ca7 Mon Sep 17 00:00:00 2001 From: Marc Seitz <4049052+mfts@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:51:04 -0700 Subject: [PATCH] +glog (#459) * +glog * +double-conversion (#436) * +double-conversion * fix test --- projects/google.com/glog/package.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 projects/google.com/glog/package.yml diff --git a/projects/google.com/glog/package.yml b/projects/google.com/glog/package.yml new file mode 100644 index 00000000..c1ffe919 --- /dev/null +++ b/projects/google.com/glog/package.yml @@ -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 + #include + #include + 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 \ No newline at end of file