aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/checkbuildosx.sh
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-09-20 20:23:39 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-09-20 20:23:39 +1000
commitb4994a3a807e1f29d8be1d49afc3c00be4845c7c (patch)
tree002c80dc479b340db4fe5b8027dd3318e4ec6e18 /cocoa/checkbuildosx.sh
parentbdc8a679baba7cbb4350a270ae14e8160859bea7 (diff)
downloadscintilla-mirror-b4994a3a807e1f29d8be1d49afc3c00be4845c7c.tar.gz
Removed make files as they have not been maintained and no longer work.
The checkbuildosx.sh script now looks for installed SDKs macosx10.? and builds with each one that is installed.
Diffstat (limited to 'cocoa/checkbuildosx.sh')
-rwxr-xr-xcocoa/checkbuildosx.sh70
1 files changed, 25 insertions, 45 deletions
diff --git a/cocoa/checkbuildosx.sh b/cocoa/checkbuildosx.sh
index f6b56328a..3ad1207f7 100755
--- a/cocoa/checkbuildosx.sh
+++ b/cocoa/checkbuildosx.sh
@@ -4,46 +4,37 @@
cd ../..
# ************************************************************
-# Target 1: build framework and test app with Xcode targetting OS X 10.7
+# Target 1: build framework and test app with Xcode targetting OS X 10.n with n from 9 to 5
+# Only SDK versions that are installed will be built
# Clean both then build both -- if perform clean in ScintillaTest, also cleans ScintillaFramework
# which can cause double build
-cd scintilla/cocoa/ScintillaFramework
-xcodebuild clean
-cd ../ScintillaTest
-xcodebuild clean
-cd ../ScintillaFramework
-xcodebuild -sdk macosx10.7
-cd ../ScintillaTest
-xcodebuild -sdk macosx10.7
-cd ../../..
+echo Building Cocoa-native ScintillaFramework and ScintillaTest
+for sdk in macosx10.9 macosx10.8 macosx10.7 macosx10.6 macosx10.5
+do
+ xcodebuild -showsdks | grep $sdk
+ if [ "$(xcodebuild -showsdks | grep $sdk)" != "" ]
+ then
+ echo Building with $sdk
+ cd scintilla/cocoa/ScintillaFramework
+ xcodebuild clean
+ cd ../ScintillaTest
+ xcodebuild clean
+ cd ../ScintillaFramework
+ xcodebuild -sdk $sdk
+ cd ../ScintillaTest
+ xcodebuild -sdk $sdk
+ cd ../../..
+ else
+ echo Warning $sdk not available
+ fi
+done
# ************************************************************
-# Target 2: build framework and test app with Xcode targetting OS X 10.6
-cd scintilla/cocoa/ScintillaFramework
-xcodebuild clean
-cd ../ScintillaTest
-xcodebuild clean
-cd ../ScintillaFramework
-xcodebuild -sdk macosx10.6
-cd ../ScintillaTest
-xcodebuild -sdk macosx10.6
-cd ../../..
+# Target 2: Qt builds
+# Requires Qt development libraries and qmake to be installed
-# ************************************************************
-# Target 3: build framework and test app with Xcode targetting OS X 10.5
-cd scintilla/cocoa/ScintillaFramework
-xcodebuild clean
-cd ../ScintillaTest
-xcodebuild clean
-cd ../ScintillaFramework
-xcodebuild -sdk macosx10.5
-cd ../ScintillaTest
-xcodebuild -sdk macosx10.5
-cd ../../..
+echo Building Qt and PySide
-# ************************************************************
-# Target 4: Qt builds
-# Requires Qt development libraries and qmake to be installed
cd scintilla/qt
cd ScintillaEditBase
qmake
@@ -62,14 +53,3 @@ cd ScintillaEditPy
python sepbuild.py
cd ..
cd ../..
-
-# ************************************************************
-# Target 5: build framework and test app with make
-cd scintilla/cocoa
-
-make -f Framework.mk clean
-make -f Framework.mk all
-
-make -f SciTest.mk all
-
-cd ../..