Warning, /sdk/licensedigger/autotests/testdata/BSD-2-Clause/FindPlymouth.cmake is written in an unsupported language. File is not indexed.
0001 # Copyright 2016 Harald Sitter <sitter@kde.org> 0002 # 0003 # Redistribution and use in source and binary forms, with or without 0004 # modification, are permitted provided that the following conditions 0005 # are met: 0006 # 0007 # 1. Redistributions of source code must retain the above copyright 0008 # notice, this list of conditions and the following disclaimer. 0009 # 2. Redistributions in binary form must reproduce the above copyright 0010 # notice, this list of conditions and the following disclaimer in the 0011 # documentation and/or other materials provided with the distribution. 0012 # 0013 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0014 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0015 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0016 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0017 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0018 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0019 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0020 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0021 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0022 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0023 0024 include(FindPkgConfig) 0025 0026 pkg_check_modules(Plymouth ply-boot-client ply-splash-core) 0027 exec_program(${PKG_CONFIG_EXECUTABLE} 0028 ARGS ply-splash-core --variable=pluginsdir 0029 OUTPUT_VARIABLE Plymouth_PLUGINSDIR) 0030 exec_program(${PKG_CONFIG_EXECUTABLE} 0031 ARGS ply-splash-core --variable=themesdir 0032 OUTPUT_VARIABLE Plymouth_THEMESDIR) 0033 0034 find_package_handle_standard_args(Plymouth 0035 FOUND_VAR 0036 Plymouth_FOUND 0037 REQUIRED_VARS 0038 Plymouth_LIBRARIES 0039 VERSION_VAR 0040 Plymouth_VERSION 0041 HANDLE_COMPONENTS 0042 ) 0043 0044 include(FeatureSummary) 0045 set_package_properties(Plymouth PROPERTIES 0046 URL "https://www.freedesktop.org/wiki/Software/Plymouth/" 0047 DESCRIPTION "Plymouth development files." 0048 )