File: build-dmg-externalqt-clang.sh

package info (click to toggle)
librecad 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 106,400 kB
  • sloc: cpp: 188,363; ansic: 3,069; sh: 336; xml: 43; makefile: 24
file content (36 lines) | stat: -rwxr-xr-x 1,120 bytes parent folder | download | duplicates (3)
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
#!/bin/bash -x

# Build dmg installers for OS/X
#
# Qt came from a external installation and can be found using the default path
# You have to make sure it will find that version of qmake, and not the version of macports
# Compilation will happen with clang, make sure it's your default compiler set : sudo port select gcc none and test with gcc --version
# This will possible work without macports but I didn't test it (if you have boost installed somewhere)


OSNAME[7]="Lion"
OSNAME[8]="MountainLion"
OSNAME[9]="Mavericks"
OSNAME[10]="Yosemite"
OSNAME[11]="ElCapitan"
OSNAME[12]="Sierra"

OSSDK[7]="macosx10.7"
OSSDK[8]="macosx10.8"
OSSDK[9]="macosx10.9"
OSSDK[10]="macosx10.10"
OSSDK[11]="macosx10.11"
OSSDK[12]="macosx10.12"

#path of this script file
SCRIPTPATH="$(dirname "$0")"

for v in $(xcodebuild -showsdks | grep macosx | sed -e 's/.*macosx10\.//g')
do
	for t in $(seq 7 $v)
	do
		"${SCRIPTPATH}"/build-osx.sh --no-qtpath -qmake_opts="QMAKE_MAC_SDK=${OSSDK[$v]} QMAKE_MACOSX_DEPLOYMENT_TARGET=10.$t"
		mv -v ${SCRIPTPATH}/../LibreCAD.dmg ${SCRIPTPATH}/../LibreCAD-${OSNAME[$t]}-${OSSDK[$v]}.dmg
	done
done