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

wrong staticLibraries handling

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 1.0.1
    • 1.0.0
    • General
    • None
    • 590c138dc9fe8ece6d7c21fc61f33012cb0c7691

    Description

      For staticLibraries you expect 2 possible inputs: library name or absolute path.

      for (i in staticLibraries) {
              if (FileInfo.isAbsolutePath(staticLibraries[i])) {
                  args.push(staticLibraries[i]);
              } else {
                  args.push('-l' + staticLibraries[i]);
              }
      

      But it is not real world cases. When you configure project to be used by different people you use relative pathes.
      For me it is something like:

        cpp.staticLibraries: [
      			"../libs/Some3rdParty/lib/somelib.a",
      			"../libs/AnotherExternal/lib/anotherlib.lib"
                              ]
      

      or even more handy to use cpp.libraryPaths and then just list libraries.

      So my suggestion is next: not use absolute path dependency, better to verify is static library contain library suffix, e.g. contains '.a' or '.lib'.

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            vitaly@qubyx.com Vitaly Bondar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes