diff options
author | David Schulz <david.schulz@nokia.com> | 2012-04-19 09:49:16 +0200 |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2012-04-23 14:59:23 +0200 |
commit | e6f4e4d05ce314167510f8ceb1cbc0bc6ee7d621 (patch) | |
tree | cb30dee340b80bd478c41b1e914e994dc3fb215c /dist/gdb | |
parent | 863c6b4aa7a500e794e7c76a014c8addfe5bd7e8 (diff) | |
download | qt-creator-e6f4e4d05ce314167510f8ceb1cbc0bc6ee7d621.tar.gz |
Add Test for Python in GDB makefile for MinGW
Download python if necessary.
Git ignore the python directory.
Task-number: QTCREATORBUG-7305
Change-Id: I03fa3ea404b38e5541d3d0380eb4e0987ceaa811
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Diffstat (limited to 'dist/gdb')
-rw-r--r-- | dist/gdb/Makefile.mingw | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/dist/gdb/Makefile.mingw b/dist/gdb/Makefile.mingw index de12c18469..0dd0e358ae 100644 --- a/dist/gdb/Makefile.mingw +++ b/dist/gdb/Makefile.mingw @@ -35,6 +35,18 @@ maketargetdir: makestagingdir: test -e ${staging} || mkdir ${staging} +checkunzip: + unzip -v &> /dev/null || mingw-get install msys-unzip + +${source}/python.zip: | makesourcedir checkwget + cd ${source} && \ + wget http://download.qt.nokia.com/misc/gdb/7.4/build-prerequisits/python.zip && \ + touch python.zip + +${broot}/python/python.exe: ${source}/python.zip | checkunzip + cd ${broot} && \ + unzip ${source}/python.zip + checkwget: wget -V &> /dev/null || mingw-get install msys-wget-bin @@ -76,7 +88,7 @@ ${staging}/lib/libexpat.a: ${source}/expat-${expatversion}.tar.gz | makestagingd ./configure -prefix=${staging} --enable-static && \ ${MAKE} && ${MAKE} install -${gdbtargets}: ${targetdir}/gdb-%: ${staging}/lib/libexpat.a ${staging}/lib/libiconv.a ${staging}/gdb-${version}/configure | maketargetdir +${gdbtargets}: ${targetdir}/gdb-%: ${staging}/lib/libexpat.a ${staging}/lib/libiconv.a ${staging}/gdb-${version}/configure | maketargetdir ${broot}/python/python.exe test -e ${staging}/gdb-${version}-$* || mkdir ${staging}/gdb-${version}-$* export PYTHONHOME=${pydir} && \ LDFLAGS="L${pydir} -lpthread -ldl -lutil -lpython27" && \ @@ -90,12 +102,11 @@ ${gdbtargets}: ${targetdir}/gdb-%: ${staging}/lib/libexpat.a ${staging}/lib/libi strip gdb/gdb.exe && \ cp -T gdb/gdb.exe ${targetdir}/gdb-$*.exe -package: ${gdbtargets} +package: ${gdbtargets} ${broot}/python/python.exe cp ${staging}/bin/libiconv* ${targetdir} && \ cp ${staging}/bin/libexpat* ${targetdir} && \ cp ${pydir}/python*.dll ${targetdir} && \ cp -r ${pydir}/lib ${targetdir} && \ - cp -r ${pydir}/include ${targetdir} && \ mv ${targetdir} ${targetdir}-${arch} && \ tar cvzf ${packagename} qtcreator-gdb-${version}-${arch} && \ mv ${targetdir}-${arch} ${targetdir} |