Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-242

Absolute Path of the Current *.qbs File and Directory

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • None
    • None

      I'd like to do the following:

       
      Project {
        references: ["sources/Component1/Component1.qbs",
                     "sources/Component2/Component2.qbs"]
      
        property string dirPath: absolutePath('.') // <- hypothetical function
      }
      

      and now in any of components I can do the following:

      CppApplication {
        ...
      
        Group {
          fileTagsFilter: 'application'
          qbs.install: true
          qbs.installDir: project.dirPath + '/bin/' + qbs.buildVariant
        }
      
        ...
      }
      

      I don't see how I could do this with the current version of Qbs. I know there are many workarounds. What would you recommend?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            haroogan hwgexohr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes