cmake_modules/FindSparkle.cmake
author koda
Sun, 20 Mar 2016 03:08:51 -0400
changeset 11617 b7d5d75469ee
parent 8667 f93cc19d8b98
permissions -rw-r--r--
Move pixel format conversion from uVideoRec to AVWrapper This has several benefits, being in C-land allows us to better use libav API and avoid mixing memory allocated from Pascal. Also the C code for the conversion loop generated by GCC or Clang is probably more optimized than by Freepascal. Finally it will simplify code in the future if we are going to enable any other pixel format than yuv420p. Change the coefficients to improve color accuracy during conversion.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     1
# Find Sparkle.framework
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     2
#
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     3
# Once done this will define
2395
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     4
#  SPARKLE_FOUND - system has Sparkle
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     5
#  SPARKLE_INCLUDE_DIR - the Sparkle include directory
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
     6
#  SPARKLE_LIBRARY - The library needed to use Sparkle
8667
f93cc19d8b98 comas and capitals
koda
parents: 8657
diff changeset
     7
# Copyright (c) 2009, Vittorio Giovara <vittorio.giovara@gmail.com>
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
     8
#
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
     9
# Distributed under the OSI-approved BSD License (the "License");
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    10
# see accompanying file Copyright.txt for details.
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    11
#
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    12
# This software is distributed WITHOUT ANY WARRANTY; without even the
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    13
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    14
# See the License for more information.
2395
d01d3bf3e1de makes the updater optional at compile time
koda
parents: 2261
diff changeset
    15
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    16
include(FindPackageHandleStandardArgs)
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    17
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    18
find_path(SPARKLE_INCLUDE_DIR Sparkle.h)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    19
find_library(SPARKLE_LIBRARY NAMES Sparkle)
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    20
8657
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    21
find_package_handle_standard_args(Sparkle DEFAULT_MSG SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
3a957233f459 rework FindSparkle.cmake
koda
parents: 7933
diff changeset
    22
mark_as_advanced(SPARKLE_INCLUDE_DIR SPARKLE_LIBRARY)
2261
57e99c908e7c a lot of stuff:
koda
parents:
diff changeset
    23