summaryrefslogtreecommitdiffstats
path: root/kjsembed/setup_qtonly
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /kjsembed/setup_qtonly
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/setup_qtonly')
-rwxr-xr-xkjsembed/setup_qtonly54
1 files changed, 54 insertions, 0 deletions
diff --git a/kjsembed/setup_qtonly b/kjsembed/setup_qtonly
new file mode 100755
index 00000000..c0a790ca
--- /dev/null
+++ b/kjsembed/setup_qtonly
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+#
+# Sets a clean checkout of kjsembed for qt-only builds.
+#
+
+# If there is no kjs tree then fetch one
+if test ! -d kjs ; then
+ echo 'Setting up kjs tree'
+
+ cvs co -l kdelibs
+ cd kdelibs
+ cvs up -dP kjs
+ mv kjs ..
+ cd ..
+ rm -rf kdelibs
+
+ cd kjs
+ ln -s ../kjs.pro .
+ echo > config.h
+ perl create_hash_table keywords.table -i > lexer.lut.h
+ perl create_hash_table array_object.cpp -i > array_object.lut.h
+ perl create_hash_table math_object.cpp -i > math_object.lut.h
+ perl create_hash_table date_object.cpp -i > date_object.lut.h
+ perl create_hash_table number_object.cpp -i > number_object.lut.h
+ perl create_hash_table string_object.cpp -i > string_object.lut.h
+ cd ..
+fi
+
+echo 'Running qmake'
+cd kjs
+qmake kjs.pro
+cd ../builtins
+qmake builtins.pro
+cd ../qtbindings
+qmake qtbindings.pro
+cd ..
+qmake kjsembed.pro
+qmake -o Makefile.qjscmd qjscmd.pro
+
+echo 'Building KJSEmbed/Qt'
+
+echo ' + kjs...'
+( cd kjs ; make )
+echo ' + builtins...'
+( cd builtins ; make )
+echo ' + qtbindings...'
+( cd qtbindings ; make )
+echo ' + lib...'
+make
+echo ' + app...'
+make -f Makefile.qjscmd
+
+echo 'Done'