This file is indexed.

/usr/lib/Wt/cmake/WtFindSkia.txt is in witty-examples 3.3.6+dfsg-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# We set:
# - SKIA_INCLUDE_DIRS
# - SKIA_LIBRARIES
# - SKIA_DEFINITIONS
# - SKIA_FOUND
# Taking into account:
# - SKIA_PREFIX

SET(SKIA_FOUND FALSE)

FIND_PATH(SKIA_BASE_INCLUDE_DIR
    core/SkBitmap.h
  PATHS
    ${SKIA_PREFIX}/include
)

IF(SKIA_BASE_INCLUDE_DIR)
  SET(SKIA_INCLUDE_DIRS
    ${SKIA_BASE_INCLUDE_DIR}/codec
    ${SKIA_BASE_INCLUDE_DIR}/core
    ${SKIA_BASE_INCLUDE_DIR}/config
    ${SKIA_BASE_INCLUDE_DIR}/images
    ${SKIA_BASE_INCLUDE_DIR}/effects
    ${SKIA_BASE_INCLUDE_DIR}/lazy
  )
ENDIF(SKIA_BASE_INCLUDE_DIR)

SET(SKIA_DEBUG
  ${SKIA_PREFIX}/out/gyp/Debug
  ${SKIA_PREFIX}/out/gyp/Debug/lib
  ${SKIA_PREFIX}/out/Debug/obj/gyp
  ${SKIA_PREFIX}/out/Debug
)
SET(SKIA_RELEASE
  ${SKIA_PREFIX}/out/gyp/Release
  ${SKIA_PREFIX}/out/gyp/Release/lib
  ${SKIA_PREFIX}/out/Release/obj/gyp
  ${SKIA_PREFIX}/out/Release
)
FIND_LIBRARY(SKIA_CORE_LIB_D NAMES skia_core PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PORTS_LIB_D NAMES skia_ports PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_LIB_D NAMES skia_opts PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_IMAGES_LIB_D NAMES skia_images PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_UTILS_LIB_D NAMES skia_utils PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_SSSE3_LIB_D NAMES skia_opts_ssse3 PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_SSE41_LIB_D NAMES skia_opts_sse41 PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_AVX_LIB_D NAMES skia_opts_avx PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_EFFECTS_LIB_D NAMES skia_effects PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SFNT_LIB_D NAMES skia_sfnt PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SKGPU_LIB_D NAMES skia_skgpu PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_ETC1_LIB_D NAMES libetc1 PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SKKTX_LIB_D NAMES libSkKTX PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_CODEC_LIB_D NAMES skia_codec PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_RAW_CODEC_LIB_D NAMES raw_codec PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PNG_LIB_D NAMES libpng_static PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_JPG_LIB_D NAMES libjpeg-turbo PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_GIF_LIB_D NAMES giflib PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_DEC_LIB_D NAMES libwebp_dec PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_UTILS_LIB_D NAMES libwebp_utils PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_DSP_LIB_D NAMES libwebp_dsp PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_DNG_SDK_LIB_D NAMES dng_sdk PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_ZLIB_LIB_D NAMES zlib PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PIEX_LIB_D NAMES piex PATHS ${SKIA_DEBUG} NO_DEFAULT_PATH)


FIND_LIBRARY(SKIA_CORE_LIB_R NAMES skia_core PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PORTS_LIB_R NAMES skia_ports PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_LIB_R NAMES skia_opts PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_IMAGES_LIB_R NAMES skia_images PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_UTILS_LIB_R NAMES skia_utils PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_SSSE3_LIB_R NAMES skia_opts_ssse3 PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_SSE41_LIB_R NAMES skia_opts_sse41 PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_OPTS_AVX_LIB_R NAMES skia_opts_avx PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_EFFECTS_LIB_R NAMES skia_effects PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SFNT_LIB_R NAMES skia_sfnt PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SKGPU_LIB_R NAMES skia_skgpu PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_ETC1_LIB_R NAMES libetc1 PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_SKKTX_LIB_R NAMES libSkKTX PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_CODEC_LIB_R NAMES skia_codec PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_RAW_CODEC_LIB_R NAMES raw_codec PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PNG_LIB_R NAMES libpng_static PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_JPG_LIB_R NAMES libjpeg-turbo PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_GIF_LIB_R NAMES giflib PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_DEC_LIB_R NAMES libwebp_dec PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_UTILS_LIB_R NAMES libwebp_utils PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_WEBP_DSP_LIB_R NAMES libwebp_dsp PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_DNG_SDK_LIB_R NAMES dng_sdk PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_ZLIB_LIB_R NAMES zlib PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)
FIND_LIBRARY(SKIA_PIEX_LIB_R NAMES piex PATHS ${SKIA_RELEASE} NO_DEFAULT_PATH)

IF(WIN32)

  # Assume that if we find core, we find the rest too
  IF(SKIA_BASE_INCLUDE_DIR AND SKIA_CORE_LIB_R AND SKIA_CORE_LIB_D)
    SET(SKIA_FOUND TRUE)
    SET(SKIA_LIBRARIES
      optimized ${SKIA_CORE_LIB_R}
      debug ${SKIA_CORE_LIB_D}
      optimized ${SKIA_PORTS_LIB_R}
      debug ${SKIA_PORTS_LIB_D}
      optimized ${SKIA_OPTS_LIB_R}
      debug ${SKIA_OPTS_LIB_D}
      optimized ${SKIA_IMAGES_LIB_R}
      debug ${SKIA_IMAGES_LIB_D}
      optimized ${SKIA_UTILS_LIB_R}
      debug ${SKIA_UTILS_LIB_D}
      optimized ${SKIA_OPTS_SSSE3_LIB_R}
      debug ${SKIA_OPTS_SSSE3_LIB_D}
      optimized ${SKIA_EFFECTS_LIB_R}
      debug ${SKIA_EFFECTS_LIB_D}
      optimized ${SKIA_SFNT_LIB_R}
      debug ${SKIA_SFNT_LIB_D}
      optimized ${SKIA_SKGPU_LIB_R}
      debug ${SKIA_SKGPU_LIB_D}
      Usp10.lib
      Opengl32.lib
    )

    IF(SKIA_OPTS_SSE41_LIB_D AND SKIA_OPTS_SSE41_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_OPTS_SSE41_LIB_R}
        debug ${SKIA_OPTS_SSE41_LIB_D}
      )
    ENDIF(SKIA_OPTS_SSE41_LIB_D AND SKIA_OPTS_SSE41_LIB_R)
    IF(SKIA_OPTS_AVX_LIB_D AND SKIA_OPTS_AVX_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_OPTS_AVX_LIB_R}
        debug ${SKIA_OPTS_AVX_LIB_D}
      )
    ENDIF(SKIA_OPTS_AVX_LIB_D AND SKIA_OPTS_AVX_LIB_R)
    IF(SKIA_ETC1_LIB_D AND SKIA_ETC1_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_ETC1_LIB_R}
        debug ${SKIA_ETC1_LIB_D}
      )
    ENDIF(SKIA_ETC1_LIB_D AND SKIA_ETC1_LIB_R)
    IF(SKIA_SKKTX_LIB_D AND SKIA_SKKTX_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_SKKTX_LIB_R}
        debug ${SKIA_SKKTX_LIB_D}
      )
    ENDIF(SKIA_SKKTX_LIB_D AND SKIA_SKKTX_LIB_R)
    IF(SKIA_CODEC_LIB_D AND SKIA_CODEC_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_CODEC_LIB_R}
        debug ${SKIA_CODEC_LIB_D}
      )
    ENDIF(SKIA_CODEC_LIB_D AND SKIA_CODEC_LIB_R)
    IF(SKIA_RAW_CODEC_LIB_D AND SKIA_RAW_CODEC_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_RAW_CODEC_LIB_R}
        debug ${SKIA_RAW_CODEC_LIB_D}
      )
    ENDIF(SKIA_RAW_CODEC_LIB_D AND SKIA_RAW_CODEC_LIB_R)
    IF(SKIA_PNG_LIB_D AND SKIA_PNG_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_PNG_LIB_R}
        debug ${SKIA_PNG_LIB_D}
      )
    ENDIF(SKIA_PNG_LIB_D AND SKIA_PNG_LIB_R)
    IF(SKIA_JPG_LIB_D AND SKIA_JPG_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_JPG_LIB_R}
        debug ${SKIA_JPG_LIB_D}
      )
    ENDIF(SKIA_JPG_LIB_D AND SKIA_JPG_LIB_R)
    IF(SKIA_GIF_LIB_D AND SKIA_GIF_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_GIF_LIB_R}
        debug ${SKIA_GIF_LIB_D}
      )
    ENDIF(SKIA_GIF_LIB_D AND SKIA_GIF_LIB_R)
    IF(SKIA_WEBP_DEC_LIB_D AND SKIA_WEBP_DEC_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_WEBP_DEC_LIB_R}
        debug ${SKIA_WEBP_DEC_LIB_D}
      )
    ENDIF(SKIA_WEBP_DEC_LIB_D AND SKIA_WEBP_DEC_LIB_R)
    IF(SKIA_WEBP_UTILS_LIB_D AND SKIA_WEBP_UTILS_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_WEBP_UTILS_LIB_R}
        debug ${SKIA_WEBP_UTILS_LIB_D}
      )
    ENDIF(SKIA_WEBP_UTILS_LIB_D AND SKIA_WEBP_UTILS_LIB_R)
    IF(SKIA_WEBP_DSP_LIB_D AND SKIA_WEBP_DSP_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_WEBP_DSP_LIB_R}
        debug ${SKIA_WEBP_DSP_LIB_D}
      )
    ENDIF(SKIA_WEBP_DSP_LIB_D AND SKIA_WEBP_DSP_LIB_R)
    IF(SKIA_DNG_SDK_LIB_D AND SKIA_DNG_SDK_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_DNG_SDK_LIB_R}
        debug ${SKIA_DNG_SDK_LIB_D}
      )
    ENDIF(SKIA_DNG_SDK_LIB_D AND SKIA_DNG_SDK_LIB_R)
    IF(SKIA_ZLIB_LIB_D AND SKIA_ZLIB_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_ZLIB_LIB_R}
        debug ${SKIA_ZLIB_LIB_D}
      )
    ENDIF(SKIA_ZLIB_LIB_D AND SKIA_ZLIB_LIB_R)
    IF(SKIA_PIEX_LIB_D AND SKIA_PIEX_LIB_R)
      SET(SKIA_LIBRARIES ${SKIA_LIBRARIES}
        optimized ${SKIA_PIEX_LIB_R}
        debug ${SKIA_PIEX_LIB_D}
      )
    ENDIF(SKIA_PIEX_LIB_D AND SKIA_PIEX_LIB_R)
  ENDIF(SKIA_BASE_INCLUDE_DIR AND SKIA_CORE_LIB_R AND SKIA_CORE_LIB_D)
ELSEIF(APPLE)
  IF(SKIA_BASE_INCLUDE_DIR AND SKIA_CORE_LIB_R)
    SET(SKIA_FOUND TRUE)
    # lines below don't work
    #FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundatation)
    #FIND_LIBRARY(MOBILECORESERVICES_LIBRARY ApplicationServices)
    SET(SKIA_LIBRARIES
      ${SKIA_CORE_LIB_R}
      ${SKIA_PORTS_LIB_R}
      ${SKIA_OPTS_LIB_R}
      ${SKIA_IMAGES_LIB_R}
      ${SKIA_UTILS_LIB_R}
      ${SKIA_OPTS_SSSE3_LIB_R}
      ${SKIA_EFFECTS_LIB_R}
      ${SKIA_SFNT_LIB_R}
      ${SKIA_SKGPU_LIB_R}
      "-framework CoreFoundation"
      "-framework ApplicationServices"
    )
    # avoid undefined SkTOU8 etc (skia checks NDEBUG if SK_RELEASE and
    # SK_DEBUG are undefined)
    SET(SKIA_DEFINES "-DSK_RELEASE")
  ENDIF(SKIA_BASE_INCLUDE_DIR AND SKIA_CORE_LIB_R)
ENDIF(WIN32)

# used for binary builds against older versions of skia
SET(WT_SKIA_OLD OFF CACHE BOOL "Use older version of skia (see WRasterImage-skia.C)")
IF (SKIA_FOUND)
  IF(WT_SKIA_OLD)
    SET(SKIA_DEFINES "${SKIA_DEFINES} -DWT_SKIA_OLD")
  ENDIF(WT_SKIA_OLD)
ENDIF (SKIA_FOUND)