README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. http://code.google.com/p/double-conversion
  2. This project (double-conversion) provides binary-decimal and decimal-binary
  3. routines for IEEE doubles.
  4. The library consists of efficient conversion routines that have been extracted
  5. from the V8 JavaScript engine. The code has been refactored and improved so that
  6. it can be used more easily in other projects.
  7. There is extensive documentation in src/double-conversion.h. Other examples can
  8. be found in test/cctest/test-conversions.cc.
  9. Building
  10. ========
  11. This library can be built with scons [0] or cmake [1].
  12. The checked-in Makefile simply forwards to scons, and provides a
  13. shortcut to run all tests:
  14. make
  15. make test
  16. Scons
  17. -----
  18. The easiest way to install this library is to use `scons`. It builds
  19. the static and shared library, and is set up to install those at the
  20. correct locations:
  21. scons install
  22. Use the `DESTDIR` option to change the target directory:
  23. scons DESTDIR=alternative_directory install
  24. Cmake
  25. -----
  26. To use cmake run `cmake .` in the root directory. This overwrites the
  27. existing Makefile.
  28. Use `-DBUILD_SHARED_LIBS=ON` to enable the compilation of shared libraries.
  29. Note that this disables static libraries. There is currently no way to
  30. build both libraries at the same time with cmake.
  31. Use `-DBUILD_TESTING=ON` to build the test executable.
  32. cmake . -DBUILD_TESTING=ON
  33. make
  34. test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
  35. [0]: http://www.scons.org
  36. [1]: http://www.cmake.org