diff options
Diffstat (limited to 'tools/copydlldeps.md')
-rw-r--r-- | tools/copydlldeps.md | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tools/copydlldeps.md b/tools/copydlldeps.md index 3b63a03..7b54159 100644 --- a/tools/copydlldeps.md +++ b/tools/copydlldeps.md @@ -6,12 +6,12 @@ It can be invoked on the command line like: ``` /share/mxe/tools/copydlldeps.sh --infile /home/mxeuser/test/i686-w64-mingw32.shared/Application.exe \ - --destdir /home/mxeuser/testdlls/ \ - --recursivesrcdir /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/ \ - --srcdir /home/mxeuser/test/ \ - --copy \ - --enforcedir /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms/ \ - --objdump /home/mxeuser/mxe/usr/bin/i686-w64-mingw32.shared-objdump + --destdir /home/mxeuser/testdlls/ \ + --recursivesrcdir /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/ \ + --srcdir /home/mxeuser/test/ \ + --copy \ + --enforcedir /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms/ \ + --objdump /home/mxeuser/mxe/usr/bin/i686-w64-mingw32.shared-objdump ``` It got embedded in a build script like: @@ -22,26 +22,26 @@ compiler=i686-w64-mingw32.shared orgDir=/path/to/my/nsis/dll # nsis is then copying all dlls in there to the place where the exe is located if [ ! $( echo $compiler | grep -q "shared" ) ]; then - echo "\$compiler=$compiler and contains the word 'shared'" | tee -a $CURLOG + echo "\$compiler=$compiler and contains the word 'shared'" | tee -a $CURLOG - echo "+-----------------------------------------------+ " | tee -a $CURLOG - echo "| Starting new MXE copydlldeps.sh by LHE DL5RCW | " | tee -a $CURLOG - echo "+-----------------------------------------------+ " | tee -a $CURLOG - echo "currently working in $( pwd ) " | tee -a $CURLOG - executable=$( find . -name "*.exe" | tail -n 1 ) - sharedLibsDir="${orgDir}/nsis/sharedLibs" - echo "populating dir $sharedLibsDir with dll dependencies of $executable" | tee -a $CURLOG - OBJDUMP=objdump - if [ -e "$MXEPATH/usr/bin/$compiler-objdump" ]; then - OBJDUMP="$MXEPATH/usr/bin/$compiler-objdump" - fi - $MXEPATH/tools/copydlldeps.sh --infile $executable \ - --destdir "$sharedLibsDir" \ - --recursivesrcdir "$MXEPATH/usr/$compiler/" \ - --enforcedir "$MXEPATH/usr/$compiler/qt5/plugins/platforms/" \ - --copy \ - --objdump "$OBJDUMP" \ - | tee -a $CURLOG + echo "+-----------------------------------------------+ " | tee -a $CURLOG + echo "| Starting new MXE copydlldeps.sh by LHE DL5RCW | " | tee -a $CURLOG + echo "+-----------------------------------------------+ " | tee -a $CURLOG + echo "currently working in $( pwd ) " | tee -a $CURLOG + executable=$( find . -name "*.exe" | tail -n 1 ) + sharedLibsDir="${orgDir}/nsis/sharedLibs" + echo "populating dir $sharedLibsDir with dll dependencies of $executable" | tee -a $CURLOG + OBJDUMP=objdump + if [ -e "$MXEPATH/usr/bin/$compiler-objdump" ]; then + OBJDUMP="$MXEPATH/usr/bin/$compiler-objdump" + fi + $MXEPATH/tools/copydlldeps.sh --infile $executable \ + --destdir "$sharedLibsDir" \ + --recursivesrcdir "$MXEPATH/usr/$compiler/" \ + --enforcedir "$MXEPATH/usr/$compiler/qt5/plugins/platforms/" \ + --copy \ + --objdump "$OBJDUMP" \ + | tee -a $CURLOG fi ``` |