This file is indexed.

/usr/lib/Wt/cmake/WtFindSkia.txt is in witty-examples 3.3.3+dfsg-4.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
# 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}/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)
SET(SKIA_RELEASE ${SKIA_PREFIX}/out/gyp/Release)
FIND_LIBRARY(SKIA_CORE_LIB_D NAMES skia_core PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_PORTS_LIB_D NAMES skia_ports PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_OPTS_LIB_D NAMES skia_opts PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_IMAGES_LIB_D NAMES skia_images PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_UTILS_LIB_D NAMES skia_utils PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_OPTS_SSSE3_LIB_D NAMES skia_opts_ssse3 PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_EFFECTS_LIB_D NAMES skia_effects PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_SFNT_LIB_D NAMES skia_sfnt PATHS ${SKIA_DEBUG})
FIND_LIBRARY(SKIA_SKGPU_LIB_D NAMES skia_skgpu PATHS ${SKIA_DEBUG})

FIND_LIBRARY(SKIA_CORE_LIB_R NAMES skia_core PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_PORTS_LIB_R NAMES skia_ports PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_OPTS_LIB_R NAMES skia_opts PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_IMAGES_LIB_R NAMES skia_images PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_UTILS_LIB_R NAMES skia_utils PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_OPTS_SSSE3_LIB_R NAMES skia_opts_ssse3 PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_EFFECTS_LIB_R NAMES skia_effects PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_SFNT_LIB_R NAMES skia_sfnt PATHS ${SKIA_RELEASE})
FIND_LIBRARY(SKIA_SKGPU_LIB_R NAMES skia_skgpu PATHS ${SKIA_RELEASE})

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
    )
  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)