aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2012-06-07 14:26:05 +1000
committernyamatongwe <nyamatongwe@gmail.com>2012-06-07 14:26:05 +1000
commit4cec67557dfaa31313b31f8250b2f7506f8b3f0e (patch)
tree6f89290d4bb5d7221b9f391d6067f3915c5a4390
parentd732def6ae09c7434ace89f14c9094016b215912 (diff)
downloadscintilla-mirror-4cec67557dfaa31313b31f8250b2f7506f8b3f0e.tar.gz
Initial version of build checker script.
-rwxr-xr-xcocoa/checkbuildosx.sh75
1 files changed, 75 insertions, 0 deletions
diff --git a/cocoa/checkbuildosx.sh b/cocoa/checkbuildosx.sh
new file mode 100755
index 000000000..f6b56328a
--- /dev/null
+++ b/cocoa/checkbuildosx.sh
@@ -0,0 +1,75 @@
+# Script to build Scintilla for OS X with most supported build files.
+# Current directory should be scintilla/cocoa before running.
+
+cd ../..
+
+# ************************************************************
+# Target 1: build framework and test app with Xcode targetting OS X 10.7
+# 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 ../../..
+
+# ************************************************************
+# 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 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 ../../..
+
+# ************************************************************
+# Target 4: Qt builds
+# Requires Qt development libraries and qmake to be installed
+cd scintilla/qt
+cd ScintillaEditBase
+qmake
+xcodebuild clean
+xcodebuild
+cd ..
+
+cd ScintillaEdit
+python WidgetGen.py
+qmake
+xcodebuild clean
+xcodebuild
+cd ..
+
+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 ../..