summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-09-25 20:50:14 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-13 10:13:58 -0800
commitec7bb26873c7aa4cff57065fe29e19cb1cd39032 (patch)
treefaf07165c4f2c2c524c52e804a040359b7820315
parente10284d2cf2067913a81ad5c897c16e086b9e3b8 (diff)
downloadsubsurface-ec7bb26873c7aa4cff57065fe29e19cb1cd39032.tar.gz
Minor changes to Windows build and packaging
With these changes we link statically against libusb and libdivecomputer but don't add the .a files to our installers. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xpackaging/windows/mingw-make.sh2
-rw-r--r--scripts/win-ldd.pl2
2 files changed, 1 insertions, 3 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
index 530678a32..578847c4c 100755
--- a/packaging/windows/mingw-make.sh
+++ b/packaging/windows/mingw-make.sh
@@ -29,7 +29,6 @@ if [[ $1 == "Qt5-64" ]] ; then
QMAKE_MOC=/usr/x86_64-w64-mingw32/bin/qt5/moc \
QMAKE_UIC=/usr/x86_64-w64-mingw32/bin/qt5/uic \
QMAKE_RCC=/usr/x86_64-w64-mingw32/bin/qt5/rcc \
- LIBDCDEVEL=../libdivecomputer \
LIBMARBLEDEVEL=../marble \
LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \
QMAKE_LIBDIR+=../openssl \
@@ -70,7 +69,6 @@ else
mingw32-qmake-qt4 \
CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw \
- LIBDCDEVEL=../libdivecomputer \
LIBMARBLEDEVEL=../marble \
LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \
$BASEDIR/../../subsurface.pro
diff --git a/scripts/win-ldd.pl b/scripts/win-ldd.pl
index 9a303d325..7870a13e3 100644
--- a/scripts/win-ldd.pl
+++ b/scripts/win-ldd.pl
@@ -51,7 +51,7 @@ for (@ARGV) {
next if /^-/;
if (-d $_) {
push @searchdirs, $_;
- } elsif (-f $_) {
+ } elsif (-f $_ && ! /\.a$/) {
# Add $_'s path to the search list too
my $dirname = $_;
$dirname =~ s,/[^/]+$,,;