[QBS] qbs property namespace

Stephan Gatzka stephan.gatzka at gmail.com
Thu Aug 13 11:59:00 CEST 2015


Hi!

I'd like to access a property defined in a Module with in a JavaScriptCommand return by prepare in a Rule:

Module {
  property string serverPort: "12345"
  Rule {

    ...

    prepare: {
      var cmd = new JavaScriptCommand();
      cmd.sourceCode = function() {
	...
        print("serverport: " + serverPort)
      }
      return  cmd;
    }
  }
}

This module is references in a CppApplication via Depends {}

qbs complains that the variable can't be found. I think I've just no clue about the namespaces in qbs.

Maybe someone can help me out here?

Thanks,

Stephan



More information about the Qbs mailing list