2023-02-09 16:06:41 +01:00
|
|
|
import qbs.Utilities
|
|
|
|
|
2023-01-04 17:31:50 +01:00
|
|
|
VLib {
|
2023-10-07 17:56:39 +02:00
|
|
|
Depends { name: "Qt"; submodules: ["core", "printsupport", "gui"] }
|
2023-02-09 16:06:41 +01:00
|
|
|
|
2023-01-04 17:31:50 +01:00
|
|
|
name: "VMiscLib"
|
2023-02-11 15:14:15 +01:00
|
|
|
files: {
|
|
|
|
var files = [
|
|
|
|
"def.cpp",
|
|
|
|
"testpath.cpp",
|
|
|
|
"vabstractvalapplication.cpp",
|
|
|
|
"vabstractapplication.cpp",
|
|
|
|
"projectversion.cpp",
|
|
|
|
"vcommonsettings.cpp",
|
|
|
|
"vvalentinasettings.cpp",
|
|
|
|
"commandoptions.cpp",
|
|
|
|
"qxtcsvmodel.cpp",
|
|
|
|
"vtablesearch.cpp",
|
|
|
|
"literals.cpp",
|
|
|
|
"vmodifierkey.cpp",
|
|
|
|
"compatibility.h",
|
|
|
|
"lambdaconstants.h",
|
|
|
|
"def.h",
|
|
|
|
"testpath.h",
|
|
|
|
"vabstractvalapplication.h",
|
|
|
|
"vmath.h",
|
|
|
|
"vabstractapplication.h",
|
|
|
|
"projectversion.h",
|
|
|
|
"vcommonsettings.h",
|
|
|
|
"vvalentinasettings.h",
|
|
|
|
"debugbreak.h",
|
|
|
|
"vlockguard.h",
|
|
|
|
"vsysexits.h",
|
|
|
|
"commandoptions.h",
|
|
|
|
"qxtcsvmodel.h",
|
|
|
|
"vtablesearch.h",
|
|
|
|
"customevents.h",
|
|
|
|
"defglobal.h",
|
|
|
|
"testvapplication.h",
|
|
|
|
"literals.h",
|
|
|
|
"qt_dispatch/qt_dispatch.h",
|
|
|
|
"vdatastreamenum.h",
|
|
|
|
"vmodifierkey.h",
|
|
|
|
"typedef.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (Utilities.versionCompare(Qt.core.version, "6") >= 0) {
|
|
|
|
files.push("vtextcodec.cpp", "vtextcodec.h");
|
|
|
|
}
|
|
|
|
|
|
|
|
return files;
|
|
|
|
}
|
2023-01-04 17:31:50 +01:00
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "AppImage"
|
2023-01-10 18:35:39 +01:00
|
|
|
condition: buildconfig.enableAppImage && qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
|
2023-01-04 17:31:50 +01:00
|
|
|
files: [
|
|
|
|
"binreloc.h",
|
|
|
|
"appimage.h",
|
|
|
|
"binreloc.c",
|
|
|
|
"appimage.cpp"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "dialogs"
|
|
|
|
prefix: "dialogs/"
|
|
|
|
files: [
|
2023-06-27 13:15:21 +02:00
|
|
|
"dialogaskcollectstatistic.cpp",
|
|
|
|
"dialogaskcollectstatistic.h",
|
|
|
|
"dialogaskcollectstatistic.ui",
|
2023-01-04 17:31:50 +01:00
|
|
|
"dialogexporttocsv.cpp",
|
|
|
|
"dialogselectlanguage.cpp",
|
|
|
|
"dialogexporttocsv.h",
|
|
|
|
"dialogselectlanguage.h",
|
|
|
|
"dialogexporttocsv.ui",
|
2023-06-27 13:15:21 +02:00
|
|
|
"dialogselectlanguage.ui",
|
2023-01-04 17:31:50 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "bpstd"
|
|
|
|
prefix: "bpstd/"
|
|
|
|
files: [
|
|
|
|
"any.hpp",
|
|
|
|
"chrono.hpp",
|
|
|
|
"complex.hpp",
|
|
|
|
"cstddef.hpp",
|
|
|
|
"detail/config.hpp",
|
|
|
|
"detail/enable_overload.hpp",
|
|
|
|
"detail/invoke.hpp",
|
|
|
|
"detail/move.hpp",
|
|
|
|
"detail/nth_type.hpp",
|
|
|
|
"detail/proxy_iterator.hpp",
|
|
|
|
"detail/variant_base.hpp",
|
|
|
|
"detail/variant_fwds.hpp",
|
|
|
|
"detail/variant_traits.hpp",
|
|
|
|
"detail/variant_union.hpp",
|
|
|
|
"detail/variant_visitors.hpp",
|
|
|
|
"exception.hpp",
|
|
|
|
"functional.hpp",
|
|
|
|
"iterator.hpp",
|
|
|
|
"memory.hpp",
|
|
|
|
"optional.hpp",
|
|
|
|
"span.hpp",
|
|
|
|
"string.hpp",
|
|
|
|
"string_view.hpp",
|
|
|
|
"tuple.hpp",
|
|
|
|
"type_traits.hpp",
|
|
|
|
"utility.hpp",
|
|
|
|
"variant.hpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "backport"
|
|
|
|
prefix: "backport/"
|
|
|
|
files: [
|
|
|
|
"qoverload.h",
|
|
|
|
"qscopeguard.h",
|
2023-02-09 15:43:00 +01:00
|
|
|
"text.h",
|
2023-01-04 17:31:50 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "fpm"
|
|
|
|
prefix: "fpm/"
|
|
|
|
files: [
|
|
|
|
"fixed.hpp",
|
|
|
|
"math.hpp",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-06-22 17:30:43 +02:00
|
|
|
Group {
|
|
|
|
name: "svgfont"
|
|
|
|
prefix: "svgfont/"
|
|
|
|
files: [
|
|
|
|
"svgdef.cpp",
|
|
|
|
"svgdef.h",
|
|
|
|
"vsvgfont.cpp",
|
|
|
|
"vsvgfont.h",
|
|
|
|
"vsvgfont_p.h",
|
|
|
|
"vsvgfontdatabase.cpp",
|
|
|
|
"vsvgfontdatabase.h",
|
|
|
|
"vsvgfontengine.cpp",
|
|
|
|
"vsvgfontengine.h",
|
|
|
|
"vsvgfontengine_p.h",
|
|
|
|
"vsvgfontreader.cpp",
|
|
|
|
"vsvgfontreader.h",
|
|
|
|
"vsvgglyph.cpp",
|
|
|
|
"vsvgglyph.h",
|
|
|
|
"vsvgglyph_p.h",
|
|
|
|
"vsvgpathtokenizer.cpp",
|
|
|
|
"vsvgpathtokenizer.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2023-07-24 12:41:42 +02:00
|
|
|
Group {
|
|
|
|
name: "theme"
|
|
|
|
prefix: "theme/"
|
|
|
|
files: [
|
2023-08-05 16:51:23 +02:00
|
|
|
"themeDef.h",
|
2023-07-24 12:41:42 +02:00
|
|
|
"vapplicationstyle.cpp",
|
|
|
|
"vapplicationstyle.h",
|
2023-08-05 16:51:23 +02:00
|
|
|
"vmanuallayoutstyle.cpp",
|
|
|
|
"vmanuallayoutstyle.h",
|
|
|
|
"vpatternpiecestyle.cpp",
|
|
|
|
"vpatternpiecestyle.h",
|
|
|
|
"vscenestylesheet.cpp",
|
|
|
|
"vscenestylesheet.h",
|
|
|
|
"vstylesheetstyle.cpp",
|
|
|
|
"vstylesheetstyle.h",
|
2023-07-24 12:41:42 +02:00
|
|
|
"vtheme.h",
|
|
|
|
"vtheme.cpp",
|
2023-08-05 16:51:23 +02:00
|
|
|
"vtoolstyle.cpp",
|
|
|
|
"vtoolstyle.h",
|
2023-07-24 12:41:42 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Mac utils"
|
|
|
|
prefix: "theme/"
|
|
|
|
files: [
|
|
|
|
"macutils.h",
|
|
|
|
"macutils.mm"
|
|
|
|
]
|
|
|
|
condition: qbs.targetOS.contains("macos")
|
|
|
|
}
|
|
|
|
|
2023-01-04 17:31:50 +01:00
|
|
|
Group {
|
|
|
|
name: "Resources"
|
|
|
|
prefix: "share/resources/"
|
|
|
|
files: [
|
2023-07-24 12:41:42 +02:00
|
|
|
"icon.qrc",
|
2023-01-04 17:31:50 +01:00
|
|
|
"flags.qrc",
|
2023-08-05 16:51:23 +02:00
|
|
|
"breezethemes/breeze.qrc",
|
|
|
|
"scenestyle.qrc",
|
2023-08-28 16:25:22 +02:00
|
|
|
"cursor.qrc",
|
2023-07-24 12:41:42 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
2023-08-07 08:37:00 +02:00
|
|
|
name: "Win icon themes"
|
2023-07-24 12:41:42 +02:00
|
|
|
prefix: "share/resources/"
|
|
|
|
files: [
|
2023-08-07 08:37:00 +02:00
|
|
|
"win_light_theme.qrc",
|
|
|
|
"win_dark_theme.qrc"
|
2023-07-24 12:41:42 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
2023-08-07 08:37:00 +02:00
|
|
|
name: "Mac icon themes"
|
2023-07-24 12:41:42 +02:00
|
|
|
prefix: "share/resources/"
|
|
|
|
files: [
|
2023-08-07 08:37:00 +02:00
|
|
|
"mac_light_theme.qrc",
|
|
|
|
"mac_dark_theme.qrc"
|
2023-01-04 17:31:50 +01:00
|
|
|
]
|
2023-07-24 12:41:42 +02:00
|
|
|
condition: qbs.targetOS.contains("macos")
|
2023-01-04 17:31:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Export {
|
|
|
|
Depends { name: "cpp" }
|
2023-01-05 11:25:29 +01:00
|
|
|
Depends { name: "Qt"; submodules: ["printsupport"] }
|
|
|
|
cpp.includePaths: [exportingProduct.sourceDirectory]
|
2023-01-04 17:31:50 +01:00
|
|
|
}
|
|
|
|
}
|