aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/ScriptingTcl/ScriptingTcl.pro
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/ScriptingTcl/ScriptingTcl.pro')
-rw-r--r--Plugins/ScriptingTcl/ScriptingTcl.pro58
1 files changed, 10 insertions, 48 deletions
diff --git a/Plugins/ScriptingTcl/ScriptingTcl.pro b/Plugins/ScriptingTcl/ScriptingTcl.pro
index 85d7740..80a11fe 100644
--- a/Plugins/ScriptingTcl/ScriptingTcl.pro
+++ b/Plugins/ScriptingTcl/ScriptingTcl.pro
@@ -42,9 +42,8 @@ linux: {
message("Looking for $$TCL_CONFIG")
}
!exists($$TCL_CONFIG) {
- # Debian case
- DEBIAN_ARCH_PATH=$$system(dpkg-architecture -qDEB_HOST_MULTIARCH)
- TCL_CONFIG = /usr/lib/$$DEBIAN_ARCH_PATH/tcl$$TCL_VERSION/tclConfig.sh
+ # Debian, FreeBSD, Ubuntu Bionic case
+ TCL_CONFIG = $$system(echo "puts [::tcl::pkgconfig get libdir,runtime]" | tclsh)/tcl$$TCL_VERSION/tclConfig.sh
}
message("Looking for $$TCL_CONFIG")
!exists($$TCL_CONFIG) {
@@ -81,27 +80,18 @@ linux: {
macx: {
# Find tclsh
- #TCLSH = $$system(echo "puts 1" | tclsh)
- #!contains(TCLSH, 1): {
- # error("Could not find tclsh executable. ScriptingTcl plugin requires it to find out all Tcl libraries and headers. Make tclsh available in PATH.")
- #}
- #TCLSH = $$system(which tclsh)
+ TCLSH = $$system(echo "puts 1" | tclsh)
+ !contains(TCLSH, 1): {
+ error("Could not find tclsh executable. ScriptingTcl plugin requires it to find out all Tcl libraries and headers. Make tclsh available in PATH.")
+ }
+ TCLSH = $$system(which tclsh)
# Find its version
- #TCL_VERSION = $$system(echo "puts [info tclversion]" | tclsh)
- #message("Found tclsh: $$TCLSH (version: $$TCL_VERSION)")
+ TCL_VERSION = $$system(echo "puts [info tclversion]" | tclsh)
+ message("Found tclsh: $$TCLSH (version: $$TCL_VERSION)")
# Find tclConfig.sh
- #TCL_CONFIG_DIR = $$system(echo "puts [info library]" | tclsh)
- #TCL_CONFIG = $$TCL_CONFIG_DIR/../../tclConfig.sh
-
- XCRUN = $$system(xcrun --version)
- !contains(XCRUN, xcrun): {
- error("Could not find xcrun executable. ScriptingTcl plugin requires it to find out all Tcl libraries and headers.")
- }
-
- SDK_PATH = $$system(xcrun --show-sdk-path)
- TCL_CONFIG = $$SDK_PATH/System/Library/Frameworks/Tcl.framework/Versions/Current/tclConfig.sh
+ TCL_CONFIG = $$system(echo "puts [::tcl::pkgconfig get libdir,runtime]" | tclsh)/tclConfig.sh
# Define other libs required when linking with Tcl
eval($$system(cat $$TCL_CONFIG | grep TCL_LIBS))
@@ -148,31 +138,3 @@ win32: {
RESOURCES += \
scriptingtcl.qrc
-
-
-TRANSLATIONS += ScriptingTcl_ro_RO.ts \
- ScriptingTcl_de.ts \
- ScriptingTcl_it.ts \
- ScriptingTcl_zh_CN.ts \
- ScriptingTcl_sk.ts \
- ScriptingTcl_ru.ts \
- ScriptingTcl_pt_BR.ts \
- ScriptingTcl_fr.ts \
- ScriptingTcl_es.ts \
- ScriptingTcl_pl.ts
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-