Qbs Manual | InstallPackage Item

Qbs 1.9.0

InnoSetup Item ◦ JavaClassCollection Item

# InstallPackage Item

An `InstallPackage` item is a product of type `archiver.archive`. It is used to produce an archive from a set of installable files via the archiver Module. Consider the following example project:

      Project {
          CppApplication {
              name: "myapp"
              Depends { name: "mylib" }
              files: ["main.cpp"]
              Group {
                  fileTagsFilter: product.type
                  qbs.install: true
                  qbs.installDir: "bin"
              }
          }
          DynamicLibrary {
              name: "mylib"
              files: ["mylib.cpp"]
              Group {
                  name: "public headers"
                  files: ["mylib.h"]
                  qbs.install: true
                  qbs.installDir: "include"
              }
              Group {
                  fileTagsFilter: product.type
                  qbs.install: true
                  qbs.installDir: "lib"
              }
          }

          InstallPackage {
              archiver.type: "tar"
              name: "tar-package"
              Depends { name: "myapp" }
              Depends { name: "mylib" }
          }
      }

Building the product "tar-package" on a Unix system will result in a tar file with these contents:

      include/mylib.h
      lib/libmylib.so
      bin/myapp

InnoSetup Item ◦ JavaClassCollection Item