Package: debhelper
Version: 7.4.11
Severity: wishlist
Please consider providing the attched qmake build system class.
Thanks, Kel.
---
# A debhelper build system class for Qt projects
# (based on the makefile class).
#
# Copyright: © 2010 Kelvin Modderman
# License: GPL-2+
package Debian::Debhelper::Buildsystem::qmake;
use strict;
use warnings;
use base 'Debian::Debhelper::Buildsystem::makefile';
sub DESCRIPTION {
"qmake (*.pro)";
}
sub check_auto_buildable {
my $this=shift;
my @projects=glob($this->get_sourcepath('*.pro'));
return $#projects + 1;
}
sub configure {
my $this=shift;
my @options;
my @flags;
push @options, '-makefile';
push @options, '-nocache';
if ($ENV{CFLAGS}) {
push @flags, "QMAKE_CFLAGS_RELEASE=$ENV{CFLAGS}";
push @flags, "QMAKE_CFLAGS_DEBUG=$ENV{CFLAGS}";
}
if ($ENV{CXXFLAGS}) {
push @flags, "QMAKE_CXXFLAGS_RELEASE=$ENV{CXXFLAGS}";
push @flags, "QMAKE_CXXFLAGS_DEBUG=$ENV{CXXFLAGS}";
}
if ($ENV{LDFLAGS}) {
push @flags, "QMAKE_LFLAGS_RELEASE=$ENV{LDFLAGS}";
push @flags, "QMAKE_LFLAGS_DEBUG=$ENV{LDFLAGS}";
}
push @flags, "QMAKE_STRIP=:";
$this->doit_in_builddir('qmake', @options, @flags, @_);
}
1;
---
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]