src.qbs 1.25 KB
Newer Older
1
import qbs
2
import qbs.File
3 4 5 6 7 8 9 10 11 12

Project {
    name: "Sources"
    references: [
        "app/app.qbs",
        "app/app_version_header.qbs",
        "libs/libs.qbs",
        "plugins/plugins.qbs",
        "tools/tools.qbs"
    ]
13 14

    property bool qbsSubModuleExists: File.exists(qbsProject.qbsBaseDir + "/qbs.qbs")
15 16
    property path qbs_install_dir: qbs.getenv("QBS_INSTALL_DIR")
    property bool useExternalQbs: qbs_install_dir
17
    property bool buildQbsProjectManager: useExternalQbs || qbsSubModuleExists
18 19 20 21 22 23 24 25 26 27 28 29
    Project {
        name: "qbs"
        id: qbsProject
        property string qbsBaseDir: path + "/shared/qbs"
        condition: qbsSubModuleExists && !useExternalQbs

        property bool enableUnitTests: false
        property bool installApiHeaders: false
        property path libInstallDir: project.ide_library_path
        property path libRPaths:  qbs.targetOS.contains("osx")
            ? ["@loader_path/.."] : ["$ORIGIN/.."]
        property path resourcesInstallDir: project.ide_data_path + "/qbs"
30
        property string pluginsInstallDir: project.libDirName + "/qtcreator"
31 32

        references: [
33
            qbsBaseDir + "/src/lib/libs.qbs",
34 35 36 37
            qbsBaseDir + "/src/plugins/plugins.qbs",
            qbsBaseDir + "/share/share.qbs"
        ]
    }
38
}