Warning, /eic-opticks/sysrap/sconfig.h.in is written in an unsupported language. File is not indexed.
0001 #pragma once
0002 /**
0003 sconfig.h
0004 ===========
0005
0006 This header is generated from sysrap/sconfig.h.in
0007 with some cmakedefine filled in and installed to::
0008
0009 $OPTICKS_PREFIX/include/SysRap/sconfig.h
0010
0011 Test with::
0012
0013 ~/o/sysrap/tests/sconfig_test.sh
0014
0015 **/
0016 #include <cstdlib>
0017 #include <cstring>
0018 #include <string>
0019 #include <sstream>
0020
0021
0022 struct sconfig
0023 {
0024 static const char* OpticksInstallPrefix();
0025 static const char* DefaultSTTFPath();
0026 static std::string Desc();
0027 };
0028
0029
0030
0031 #cmakedefine SYSRAP_OPTICKS_INSTALL_PREFIX "@SYSRAP_OPTICKS_INSTALL_PREFIX@"
0032
0033 inline const char* sconfig::OpticksInstallPrefix()
0034 {
0035 #ifdef SYSRAP_OPTICKS_INSTALL_PREFIX
0036 const char* evalue = getenv("OPTICKS_INSTALL_PREFIX") ;
0037 return evalue ? evalue : SYSRAP_OPTICKS_INSTALL_PREFIX ;
0038 #else
0039 return "MISSING" ;
0040 #endif
0041 }
0042
0043 inline const char* sconfig::DefaultSTTFPath() // static
0044 {
0045 std::stringstream ss ;
0046 ss << OpticksInstallPrefix()
0047 << "/externals/imgui/imgui/extra_fonts/Cousine-Regular.ttf"
0048 ;
0049 std::string ttf = ss.str();
0050 return strdup(ttf.c_str());
0051 }
0052
0053 inline std::string sconfig::Desc()
0054 {
0055 std::stringstream ss ;
0056 ss << "[sconfig::Desc\n" ;
0057 ss << "sconfig::OpticksInstallPrefix() " << OpticksInstallPrefix() << "\n" ;
0058 ss << "sconfig::DefaultSTTFPath() " << DefaultSTTFPath() << "\n" ;
0059 ss << "]sconfig::Desc\n" ;
0060 return ss.str();
0061 }