File: cppan.yml

package info (click to toggle)
leptonlib 1.76.0-1~bpo9+1
  • links: PTS
  • area: main
  • in suites: stretch-backports
  • size: 26,468 kB
  • sloc: ansic: 186,278; sh: 4,454; makefile: 204; cpp: 61
file content (74 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
files:
    - src/.*\.h
    - src/.*\.c
    - src/endianness.h.in

include_directories:
    public: src

check_function_exists:
  - fmemopen
  - fstatat

check_include_exists:
  - dlfcn.h
  - inttypes.h
  - memory.h
  - stdint.h
  - stdlib.h
  - strings.h
  - string.h
  - sys/stat.h
  - sys/types.h
  - unistd.h

pre_sources: |
    if(WORDS_BIGENDIAN)
      set(ENDIANNESS L_BIG_ENDIAN)
    else()
      set(ENDIANNESS L_LITTLE_ENDIAN)
    endif()

    set(APPLE_UNIVERSAL_BUILD "defined (__APPLE_CC__)")
    configure_file(
        ${SDIR}/src/endianness.h.in
        ${BDIR}/endianness.h
        @ONLY)

    # dummy config file
    if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
        file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
    endif()

post_sources: |
    if (MSVC)
        file(GLOB_RECURSE csrc "${SDIR}/*.c")
        set_source_files_properties(${csrc} PROPERTIES LANGUAGE CXX)
    endif()

options:
    any:
        definitions:
            public:
              - HAVE_CONFIG_H
            private:
              - HAVE_LIBGIF
              - HAVE_LIBJPEG
              - HAVE_LIBPNG
              - HAVE_LIBTIFF
              - HAVE_LIBWEBP
              - HAVE_LIBZ
              - HAVE_LIBJP2K
              - LIBJP2K_HEADER="openjpeg.h"
    shared:
        definitions:
            private: LIBLEPT_EXPORTS

dependencies:
    private:
        pvt.cppan.demo.gif: 5
        pvt.cppan.demo.jpeg: 9
        pvt.cppan.demo.png: 1
        pvt.cppan.demo.tiff: 4
        pvt.cppan.demo.webmproject.webp: 1
        pvt.cppan.demo.openjpeg.openjp2: 2