summaryrefslogtreecommitdiffstats
path: root/src/tools/qconfig.cpp.cmake
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-03-15 15:32:40 +0100
committerSlávek Banko <slavek.banko@axis.cz>2024-03-02 18:52:12 +0100
commit12bd9b6b2bba50da9c3444dfb42b985ed2a6a7c1 (patch)
tree8319b9e98b3fa1f2a2a61d7719eb9a714c7ad66a /src/tools/qconfig.cpp.cmake
parent34587584ab80fd696cc9d73dda1326f175125ddf (diff)
downloadtqt3-12bd9b6b2bba50da9c3444dfb42b985ed2a6a7c1.tar.gz
tqt3-12bd9b6b2bba50da9c3444dfb42b985ed2a6a7c1.zip
Conversion to the cmake building system.feat/cmakeConv
Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/tools/qconfig.cpp.cmake')
-rw-r--r--src/tools/qconfig.cpp.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tools/qconfig.cpp.cmake b/src/tools/qconfig.cpp.cmake
new file mode 100644
index 00000000..170254fb
--- /dev/null
+++ b/src/tools/qconfig.cpp.cmake
@@ -0,0 +1,27 @@
+/* Install paths from configure */
+#include "ntqglobal.h"
+
+// might use nameless namespace as storage class here instead of static keyword specifier
+
+static const char QT_INSTALL_PREFIX[] = "qt_nstpath=@QT_INSTALL_PREFIX@";
+static const char QT_INSTALL_BINS[] = "qt_binpath=@QT_INSTALL_BINS@";
+static const char QT_INSTALL_DOCS[] = "qt_docpath=@QT_INSTALL_DOCS@";
+static const char QT_INSTALL_HEADERS[] = "qt_hdrpath=@QT_INSTALL_HEADERS@";
+static const char QT_INSTALL_LIBS[] = "qt_libpath=@QT_INSTALL_LIBS@";
+static const char QT_INSTALL_PLUGINS[] = "qt_plgpath=@QT_INSTALL_PLUGINS@";
+static const char QT_INSTALL_DATA[] = "qt_datpath=@QT_INSTALL_DATA@";
+static const char QT_INSTALL_TRANSLATIONS[] = "qt_trnpath=@QT_INSTALL_TRANSLATIONS@";
+static const char QT_INSTALL_SYSCONF[] = "qt_cnfpath=@QT_INSTALL_SYSCONF@";
+static const char QT_INSTALL_SHARE[] = "qt_shapath=@QT_INSTALL_SHARE@";
+
+/* strlen( "qt_xxxpath=" ) == 11 */
+const char *tqInstallPath() { return QT_INSTALL_PREFIX + 11; }
+const char *tqInstallPathDocs() { return QT_INSTALL_DOCS + 11; }
+const char *tqInstallPathHeaders() { return QT_INSTALL_HEADERS + 11; }
+const char *tqInstallPathLibs() { return QT_INSTALL_LIBS + 11; }
+const char *tqInstallPathBins() { return QT_INSTALL_BINS + 11; }
+const char *tqInstallPathPlugins() { return QT_INSTALL_PLUGINS + 11; }
+const char *tqInstallPathData() { return QT_INSTALL_DATA + 11; }
+const char *tqInstallPathTranslations() { return QT_INSTALL_TRANSLATIONS + 11; }
+const char *tqInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; }
+const char *tqInstallPathShare() { return QT_INSTALL_SHARE + 11; }