cmake.yml: Test cmake builds using gcc

cmake configure step was wrongly hard-coded to clang which prevented
testing the gcc based builds. It is now updated to pick appropriate
compilers based on the build type.
1 file changed
tree: d301d00931c049bd84eea1083a7d0d21b1517304
  1. .github/
  2. adobe-hdr-gain-map-license/
  3. docs/
  4. fuzzer/
  5. include/
  6. tests/
  7. third_party/
  8. Android.bp
  9. CMakeLists.txt
  10. gainmapmath.cpp
  11. icc.cpp
  12. jpegdecoderhelper.cpp
  13. jpegencoderhelper.cpp
  14. jpegr.cpp
  15. jpegrutils.cpp
  16. LICENSE
  17. multipictureformat.cpp
  18. README.md
  19. utils.cmake
README.md

Format Introduction

https://developer.android.com/guide/topics/media/platform/hdr-image-format

Getting Started

Supports:

  • x86_32/x86_64 on Linux
  • macOS

Preferred Compiler: Clang Tested with:

  • C compiler: Clang 15.0.7
  • CXX compiler: Clang 15.0.7

Building Commands

For x86_32 on a x86_64 Linux machine

$ mkdir build
$ cd build
$ cmake ..
$ make

For macOS

$ mkdir build
$ cd build
$ cmake ..
$ make