Blame cppan.yml

rpm-build 01e673
files:
rpm-build 01e673
    - src/.*\.h
rpm-build 01e673
    - src/.*\.c
rpm-build 01e673
    - src/endianness.h.in
rpm-build 01e673
rpm-build 01e673
include_directories:
rpm-build 01e673
    public: src
rpm-build 01e673
rpm-build 01e673
check_function_exists:
rpm-build 01e673
  - fmemopen
rpm-build 01e673
  - fstatat
rpm-build 01e673
rpm-build 01e673
check_include_exists:
rpm-build 01e673
  - dlfcn.h
rpm-build 01e673
  - inttypes.h
rpm-build 01e673
  - memory.h
rpm-build 01e673
  - stdint.h
rpm-build 01e673
  - stdlib.h
rpm-build 01e673
  - strings.h
rpm-build 01e673
  - string.h
rpm-build 01e673
  - sys/stat.h
rpm-build 01e673
  - sys/types.h
rpm-build 01e673
  - unistd.h
rpm-build 01e673
rpm-build 01e673
pre_sources: |
rpm-build 01e673
    if(WORDS_BIGENDIAN)
rpm-build 01e673
      set(ENDIANNESS L_BIG_ENDIAN)
rpm-build 01e673
    else()
rpm-build 01e673
      set(ENDIANNESS L_LITTLE_ENDIAN)
rpm-build 01e673
    endif()
rpm-build 01e673
rpm-build 01e673
    set(APPLE_UNIVERSAL_BUILD "defined (__APPLE_CC__)")
rpm-build 01e673
    configure_file(
rpm-build 01e673
        ${SDIR}/src/endianness.h.in
rpm-build 01e673
        ${BDIR}/endianness.h
rpm-build 01e673
        @ONLY)
rpm-build 01e673
rpm-build 01e673
    # dummy config file
rpm-build 01e673
    if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
rpm-build 01e673
        file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
rpm-build 01e673
    endif()
rpm-build 01e673
rpm-build 01e673
post_sources: |
rpm-build 01e673
    if (MSVC)
rpm-build 01e673
        file(GLOB_RECURSE csrc "${SDIR}/*.c")
rpm-build 01e673
        set_source_files_properties(${csrc} PROPERTIES LANGUAGE CXX)
rpm-build 01e673
    endif()
rpm-build 01e673
rpm-build 01e673
options:
rpm-build 01e673
    any:
rpm-build 01e673
        definitions:
rpm-build 01e673
            public:
rpm-build 01e673
              - HAVE_CONFIG_H
rpm-build 01e673
            private:
rpm-build 01e673
              - HAVE_LIBGIF
rpm-build 01e673
              - HAVE_LIBJPEG
rpm-build 01e673
              - HAVE_LIBPNG
rpm-build 01e673
              - HAVE_LIBTIFF
rpm-build 01e673
              - HAVE_LIBWEBP
rpm-build 01e673
              - HAVE_LIBZ
rpm-build 01e673
              - HAVE_LIBJP2K
rpm-build 01e673
              - LIBJP2K_HEADER="openjpeg.h"
rpm-build 01e673
    shared:
rpm-build 01e673
        definitions:
rpm-build 01e673
            private: LIBLEPT_EXPORTS
rpm-build 01e673
rpm-build 01e673
dependencies:
rpm-build 01e673
    private:
rpm-build 01e673
        pvt.cppan.demo.gif: 5
rpm-build 01e673
        pvt.cppan.demo.jpeg: 9
rpm-build 01e673
        pvt.cppan.demo.png: 1
rpm-build 01e673
        pvt.cppan.demo.tiff: 4
rpm-build 01e673
        pvt.cppan.demo.webmproject.webp: 1
rpm-build 01e673
        pvt.cppan.demo.openjpeg.openjp2: 2