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

Absolute Path of the Current *.qbs File and Directory

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes