QMake::Project

Perl interface to qmake .pro file(s)
Download

QMake::Project Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rohan McGovern
  • Publisher web site:
  • http://search.cpan.org/~rohanpm/

QMake::Project Tags


QMake::Project Description

For projects using qmake, .pro files are a convenient place to include all sorts of metadata. However, making that metadata robustly readable by tools other than qmake has been rather challenging. Typically the data is only able to flow in one direction: if some tool outside of the build system wants to access build system metadata, then qmake or some .prf files must be modified to explicitly export that data. General programmatic access has not been possible.QMake::Project is a Perl module that aims to solve this problem, allowing robust and correct reading of metadata from qmake project files without requiring any changes to qmake.SYNOPSIS use QMake::Project; # Load a project from a qmake-generated Makefile my $prj = QMake::Project->new( 'Makefile' ); # Perform arbitrary tests; may be anything usable from a qmake scope my $testcase = $prj->test( 'testcase' ); my $insignificant = $prj->test( 'insignificant_test' ); # Retrieve arbitrary values (scalars or lists) my $target = $prj->values( 'TARGET' ); return unless $testcase; my $status = system( $target, '-silent' ); return unless $status; if ($insignificant) { warn "Test $target failed; ignoring, since it is insignificant"; return; } die "Test $target failed with exit status $status";Given a qmake-generated Makefile, provides an API for accessing any qmake variables or tests (scopes).Product's homepage


QMake::Project Related Software