Warning, /sdk/kshim/src/libkshimgen/config.h.in is written in an unsupported language. File is not indexed.

0001 /*
0002     Copyright Hannah von Reth <vonreth@kde.org>
0003 
0004     Redistribution and use in source and binary forms, with or without
0005     modification, are permitted provided that the following conditions
0006     are met:
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 REGENTS AND CONTRIBUTORS ``AS IS'' AND
0014     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0015     IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0016     ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
0017     FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
0018     DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
0019     OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
0020     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
0021     LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
0022     OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
0023     SUCH DAMAGE.
0024 */
0025 
0026 #ifndef CONFIG_H
0027 #define CONFIG_H
0028 
0029 #include "kshimstring.h"
0030 
0031 // needs to be a define as it needs to end up in a native char array in the shim
0032 #define KShimDataDef "KShimData"
0033 
0034 namespace KShimLib {
0035 
0036 constexpr int version_major = @PROJECT_VERSION_MAJOR@;
0037 constexpr int version_minor = @PROJECT_VERSION_MINOR@;
0038 constexpr int version_patch = @PROJECT_VERSION_PATCH@;
0039 constexpr KShimLib::string_view version(KSTRING("@PROJECT_VERSION@"));
0040 constexpr std::string_view exeSuffix("@CMAKE_EXECUTABLE_SUFFIX@");
0041 constexpr KShimLib::string_view exeSuffixW(KSTRING("@CMAKE_EXECUTABLE_SUFFIX@"));
0042 
0043 #ifdef _WIN32
0044 constexpr auto PayLoadKey = KShimLib::string_view(L"PAYLOAD");
0045 constexpr auto PayloadCategory = KShimLib::string_view(L"KSHIM");
0046 #endif
0047 
0048 constexpr int DataStorageSize = 1024 * 2;
0049 }
0050 #endif // CONFIG_H