Warning, /pim/mimetreeparser/cmake/modules/generate_crypto_test_wrapper.cmake is written in an unsupported language. File is not indexed.
0001 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> 0002 # Copyright (c) 2013, Sandro Knauß <mail@sandroknauss.de> 0003 # Copyright (c) 2018, Christian Mollekopf <mollekopf@kolabsys.com> 0004 # 0005 # SPDX-License-Identifier: BSD-3-Clause 0006 0007 0008 if (UNIX) 0009 0010 file(WRITE "${_filename}" 0011 "#!/usr/bin/env sh 0012 # created by cmake, don't edit, changes will be lost 0013 0014 # don't mess with a gpg-agent already running on the system 0015 unset GPG_AGENT_INFO 0016 0017 ${_library_path_variable}=${_ld_library_path}\${${_library_path_variable}:+:\$${_library_path_variable}} GNUPGHOME=${_gnupghome} gpg-agent --daemon \"${_executable}\" \"$@\" 0018 _result=$? 0019 GNUPGHOME=${_gnupghome} gpg-connect-agent killagent /bye 0020 exit \$_result 0021 ") 0022 0023 # make it executable 0024 # since this is only executed on UNIX, it is safe to call chmod 0025 exec_program(chmod ARGS ug+x \"${_filename}\" OUTPUT_VARIABLE _dummy ) 0026 0027 else (UNIX) 0028 0029 file(TO_NATIVE_PATH "${_ld_library_path}" win_path) 0030 file(TO_NATIVE_PATH "${_gnupghome}" win_gnupghome) 0031 0032 file(WRITE "${_filename}" 0033 " 0034 set PATH=${win_path};$ENV{PATH} 0035 set GNUPGHOME=${win_gnupghome};$ENV{GNUPGHOME} 0036 gpg-agent --daemon \"${_executable}\" %* 0037 ") 0038 0039 endif (UNIX)