2023-03-06 01:31:09 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://github.com/google/double-conversion/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-03-06 01:31:09 +03:00
|
|
|
|
|
|
|
versions:
|
|
|
|
github: google/double-conversion/tags
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: ^3
|
|
|
|
script: |
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX="{{prefix}}" -DBUILD_SHARED_LIBS=ON .
|
|
|
|
make --jobs {{ hw.concurrency }}
|
|
|
|
make install
|
|
|
|
|
|
|
|
test:
|
|
|
|
fixture: |
|
|
|
|
#include <double-conversion/bignum.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
|
|
char buf[20] = {0};
|
|
|
|
double_conversion::Bignum bn;
|
|
|
|
bn.AssignUInt64(0x1234567890abcdef);
|
|
|
|
bn.ToHexString(buf, sizeof buf);
|
|
|
|
printf("%s", buf);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
script: |
|
|
|
|
mv $FIXTURE fixture.cc
|
|
|
|
cc fixture.cc -ldouble-conversion -o a.out
|
|
|
|
./a.out
|