-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.defaults.sh
More file actions
executable file
·69 lines (60 loc) · 1.4 KB
/
.defaults.sh
File metadata and controls
executable file
·69 lines (60 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Default values for gen_cmake and gen_install
# Qt defaults
default_qt_version="6.8.3"
default_qt_win_basePath="C:/Qt"
default_qt_win_arch="msvc2022"
default_qt_mac_basePath="/Applications/Qt"
default_qt_mac_arch="clang_64"
default_qt_linux_basePath="/usr/lib"
default_qt_linux_arch="$(g++ -dumpmachine)"
# gen_cmake defaults
function extend_gc_fnc_defaults()
{
default_VisualGenerator="Visual Studio 17 2022"
default_VisualToolset="v143"
default_VisualToolchain="x64"
default_buildArch="x64"
default_keyDigits=2
default_betaTagName="-beta"
}
# gen_install defaults
function extend_gi_fnc_defaults()
{
default_VisualGenerator="Visual Studio 17 2022"
default_VisualToolset="v143"
default_VisualToolchain="x64"
if isMac; then
default_buildArch="x64 arm64"
else
default_buildArch="x64"
fi
default_keyDigits=2
default_betaTagName="-beta"
}
# Some helper functions
function get_default_qt_path()
{
local -n _retval="$1"
local result=""
if isWindows; then
result="${default_qt_win_basePath}"
elif isMac; then
result="${default_qt_mac_basePath}"
elif isLinux; then
result="${default_qt_linux_basePath}"
fi
_retval="${result}"
}
function get_default_qt_arch()
{
local -n _retval="$1"
local result=""
if isWindows; then
result="${default_qt_win_arch}"
elif isMac; then
result="${default_qt_mac_arch}"
elif isLinux; then
result="${default_qt_linux_arch}"
fi
_retval="${result}"
}