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

paths not relative to qbs file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 0.3
    • 0.3
    • General
    • None

      I have several test applications which share some settings with a common TestApp module. The applications' qbs are in subfolder and refer to the main module which can be found in upper folder. Like this:

      import "../TestApp.qbs" as TestApp
      
      TestApp {
          name : "test"
          cpp.defines : ['HELLO_COUNT=10']
      }
      

      The TestApp has some common settings:

      import qbs.base 1.0
      
      Application {
          
          cpp.includePaths : [
      
          ]
      
          files : [
              "main.cpp"
          ]
      
          Depends { name: "cpp" } 
      }
      

      But when I try to build the test.qbs, (go to 'test' dir and run 'qbs') it tries to look for the 'files' relative to TestApp.qbs, not test.qbs. It seems to fail even if I set the path to '../main.cpp' in TestApp. It works only if I set the files in test.qbs, which is the thing I wanted to avoid.

      QBS-83 seems to be related to same issue.

      Git version: 67c622ab807302f3b630100454a4e3a7a8e85676

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

            jbornema Joerg Bornemann
            jtoivola Jussi Toivola
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes