"Fossies" - the Fresh Open Source Software Archive

Member "qt-creator-opensource-src-4.15.1/qbs/modules/qtc/qtc.qbs" (8 Jun 2021, 4356 Bytes) of package /linux/misc/qt-creator-opensource-src-4.15.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "qtc.qbs": opensource-src-4.15.0_vs_opensource-src-4.15.1.

    1 import qbs
    2 import qbs.Environment
    3 import qbs.FileInfo
    4 
    5 Module {
    6     property string qtcreator_display_version: '4.15.1'
    7     property string ide_version_major: '4'
    8     property string ide_version_minor: '15'
    9     property string ide_version_release: '1'
   10     property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.'
   11                                        + ide_version_release
   12 
   13     property string ide_compat_version_major: '4'
   14     property string ide_compat_version_minor: '15'
   15     property string ide_compat_version_release: '0'
   16     property string qtcreator_compat_version: ide_compat_version_major + '.'
   17             + ide_compat_version_minor + '.' + ide_compat_version_release
   18 
   19     property string qtcreator_copyright_year: '2021'
   20     property string qtcreator_copyright_string: "(C) " + qtcreator_copyright_year + " The Qt Company Ltd"
   21 
   22     property string ide_display_name: 'Qt Creator'
   23     property string ide_id: 'qtcreator'
   24     property string ide_cased_id: 'QtCreator'
   25     property string ide_bundle_identifier: 'org.qt-project.qtcreator'
   26 
   27     property string libDirName: "lib"
   28     property string ide_app_path: qbs.targetOS.contains("macos") ? "" : "bin"
   29     property string ide_app_target: qbs.targetOS.contains("macos") ? ide_display_name : ide_id
   30     property string ide_library_path: {
   31         if (qbs.targetOS.contains("macos"))
   32             return ide_app_target + ".app/Contents/Frameworks"
   33         else if (qbs.targetOS.contains("windows"))
   34             return ide_app_path
   35         else
   36             return libDirName + "/qtcreator"
   37     }
   38     property string ide_plugin_path: {
   39         if (qbs.targetOS.contains("macos"))
   40             return ide_app_target + ".app/Contents/PlugIns"
   41         else if (qbs.targetOS.contains("windows"))
   42             return libDirName + "/qtcreator/plugins"
   43         else
   44             return ide_library_path + "/plugins"
   45     }
   46     property string ide_data_path: qbs.targetOS.contains("macos")
   47             ? ide_app_target + ".app/Contents/Resources"
   48             : "share/qtcreator"
   49     property string ide_libexec_path: qbs.targetOS.contains("macos")
   50             ? ide_data_path + "/libexec" : qbs.targetOS.contains("windows")
   51             ? ide_app_path
   52             : "libexec/qtcreator"
   53     property string ide_bin_path: qbs.targetOS.contains("macos")
   54             ? ide_app_target + ".app/Contents/MacOS"
   55             : ide_app_path
   56     property string ide_doc_path: qbs.targetOS.contains("macos")
   57             ? ide_data_path + "/doc"
   58             : "share/doc/qtcreator"
   59     property string ide_include_path: "include"
   60     property string ide_qbs_resources_path: "qbs-resources"
   61     property string ide_qbs_modules_path: ide_qbs_resources_path + "/modules"
   62     property string ide_qbs_imports_path: ide_qbs_resources_path + "/imports"
   63     property string ide_shared_sources_path: "src/shared"
   64 
   65     property string litehtmlInstallDir: Environment.getEnv("LITEHTML_INSTALL_DIR")
   66 
   67     property bool enableAddressSanitizer: false
   68     property bool enableUbSanitizer: false
   69     property bool enableThreadSanitizer: false
   70 
   71     property bool make_dev_package: false
   72 
   73     // Will be replaced when creating modules from products
   74     property string export_data_base: project.ide_source_tree + "/share/qtcreator"
   75 
   76     property bool testsEnabled: Environment.getEnv("TEST") || qbs.buildVariant === "debug"
   77     property stringList generalDefines: [
   78         "QT_CREATOR",
   79         'IDE_LIBRARY_BASENAME="' + libDirName + '"',
   80         'RELATIVE_PLUGIN_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
   81                                                          '/' + ide_plugin_path) + '"',
   82         'RELATIVE_LIBEXEC_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
   83                                                           '/' + ide_libexec_path) + '"',
   84         'RELATIVE_DATA_PATH="' + FileInfo.relativePath('/' + ide_bin_path,
   85                                                        '/' + ide_data_path) + '"',
   86         'RELATIVE_DOC_PATH="' + FileInfo.relativePath('/' + ide_bin_path, '/' + ide_doc_path) + '"',
   87         "QT_NO_CAST_TO_ASCII",
   88         "QT_RESTRICTED_CAST_FROM_ASCII",
   89         "QT_DISABLE_DEPRECATED_BEFORE=0x050900",
   90         "QT_USE_QSTRINGBUILDER",
   91     ].concat(testsEnabled ? ["WITH_TESTS"] : [])
   92      .concat(qbs.toolchain.contains("msvc") ? ["_CRT_SECURE_NO_WARNINGS"] : [])
   93 }