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
commit5651b27ede21b8f291794a16997ec50022c16bd9 (patch)
tree52f8ee9b22658ea1a1eb9d62f671219592d2d95a
parentebec28c3ebc82691856912b48447098c0924ff7b (diff)
downloadscintilla-mirror-5651b27ede21b8f291794a16997ec50022c16bd9.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 ../..