"checkit_tiff" is an incredibly fast conformance checker for baseline TIFFs (with various extensions), see http://andreas-romeyke.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.9 KiB

  1. # You need an installed cmake
  2. ########################################################
  3. # compiling under linux
  4. ########################################################
  5. mkdir build
  6. cd build
  7. cmake ../src/ -DCMAKE_C_FLAGS="-W -Wall -Wextra -ansi -pedantic -O2 -Wno-unused-function"
  8. make
  9. ########################################################
  10. # alternatively for windows crosscompiling using mingw
  11. ########################################################
  12. #mkdir build
  13. #cd build
  14. #cmake -DCMAKE_TOOLCHAIN_FILE=../src/toolchain-mingw32.cmake -DPCRE_LIBRARY=~/Downloads/pcre-8.37/.libs/libpcre.a -DPCRE_INCLUDE_DIR=~/Downloads/pcre-8.37/ ../src/
  15. #make
  16. #
  17. ########################################################
  18. # examples/options to set specific C-compiler or Flags
  19. ########################################################
  20. # cmake ../src/ -DCMAKE_C_COMPILER=$(which gcc)
  21. # cmake ../src/ -DCMAKE_C_FLAGS="-O0 -p -g"
  22. # cmake ../src/ -DCMAKE_C_COMPILER=$(which clang-3.5) -DCMAKE_C_FLAGS="-Oz -pedantic"
  23. #
  24. ########################################################
  25. # example SANITIZE options
  26. ########################################################
  27. #
  28. # SANITIZE with clang++
  29. # cmake ../src/ -DCMAKE_C_COMPILER=/usr/bin/clang-3.5 -DCMAKE_C_FLAGS="-O0 -g -fsanitize=address -fno-omit-frame-pointer"
  30. # make
  31. # ASAN_OPTIONS=detect_leaks=1 ./checkit_tiff ...
  32. #
  33. # SANITIZE with gcc
  34. # cmake ../src/ -DCMAKE_C_FLAGS="-Og -g -fsanitize=address -fno-omit-frame-pointer"
  35. # make
  36. # ASAN_OPTIONS=detect_leaks=1 ./checkit_tiff ...
  37. #
  38. #
  39. ########################################################
  40. # example CLANG-TIDY
  41. ########################################################
  42. # cmake ../src/ -DCMAKE_C_CLANG_TIDY:STRING="clang-tidy;-checks=-*,readability-*" -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DCMAKE_C_COMPILER=/usr/bin/clang-3.8 -DCMAKE_C_FLAGS="-O0 -g -fsanitize=address -fno-omit-frame-pointer"
  43. # make
  44. # run-clang-tidy-3.8.py -clang-tidy-binary /usr/bin/clang-tidy-3.8
  45. #