Compare commits

...

8 Commits

Author SHA1 Message Date
Roman Telezhynskyi d3ee5df455 Fix build script. 2024-03-26 21:13:39 +02:00
Roman Telezhynskyi 62e66deb5e Since we zip sym file, we no longer need it. 2024-03-26 21:09:48 +02:00
Roman Telezhynskyi c630b5cdf8 Fix typo. 2024-03-26 20:34:57 +02:00
Roman Telezhynskyi f4efda8de6 dump_sysms needs this. 2024-03-26 20:34:45 +02:00
Roman Telezhynskyi 12a12a2a45 Improve calling conan.
Catching exception gives feedback in case of errors.
2024-03-26 20:34:12 +02:00
Roman Telezhynskyi a829a2d2de Fix copying debug files on macos. 2024-03-26 20:33:21 +02:00
Roman Telezhynskyi dfe40b7df4 Fix build on macos. 2024-03-26 20:32:50 +02:00
Roman Telezhynskyi e72cebf473 Additional crashpad dependencies on macos. 2024-03-26 20:32:02 +02:00
10 changed files with 32 additions and 25 deletions

View File

@ -370,7 +370,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- qbs --version
build_script:
- echo $PATH
- export PATH="${HOME}/.local/bin:`python3 -m site --user-base`/bin:$PATH"
- export PATH="${HOME}/.local/bin:`python3 -m site --user-base`/bin:$HOME/.cargo/bin:$PATH"
- echo $PATH
- whereis python3
- sudo mkdir /usr/local/bin

View File

@ -421,7 +421,7 @@ for:
$env:CRASH_SHORT_SHA = git log --pretty=format:%h -n 1
}
- ps: scripts/install_dump_sysms.ps1
- if "%WITH_CRASH_REPORTING%" == "True" (python3 scripts/symupload.py %APPVEYOR_BUILD_FOLDER%\build\install-root\valentina $VALENTINA_VERSION $CRASH_SHORT_SHA $CRASH_QT_VERSION --clean)
- if "%WITH_CRASH_REPORTING%" == "True" (python scripts/symupload.py %APPVEYOR_BUILD_FOLDER%\build\install-root\valentina $VALENTINA_VERSION $CRASH_SHORT_SHA $CRASH_QT_VERSION --clean)
- if "%DEPLOY%" == "true" (qbs build -f valentina.qbs -d %APPVEYOR_BUILD_FOLDER%\build -p ValentinaSetup --jobs %NUMBER_OF_PROCESSORS% config:release qbs.installRoot:%APPVEYOR_BUILD_FOLDER%\build\install-root\valentina profile:qt6 project.enableConan:true project.conanWithCrashReporting:true project.conanWithXerces:true modules.buildconfig.enableCcache:false project.conanProfiles:valentina modules.buildconfig.enablePCH:%ENABLE_PCH% modules.windeployqt.windeployqtProgramBinPath:%WINDEPLOYQT_BIN_PATH% modules.windeployqt.compilerRuntime:%WINDEPLOYQT_COMPILER_RUNTIME% modules.windeployqt.noCompilerRuntime:%WINDEPLOYQT_NO_COMPILER_RUNTIME%)
- ps: scripts/appveyor-deploy.ps1

View File

@ -122,25 +122,8 @@ Probe {
}
var p = new Process();
p.start(executable, args);
while (!p.waitForFinished(500)) {
const output = p.readStdOut();
if (verbose && output) {
console.info(output);
}
}
while (!p.atEnd()) {
const output = p.readStdOut();
if (verbose && output) {
console.info(output);
}
}
if (p.exitCode()) {
const errorOutput = p.readStdErr();
p.close();
throw errorOutput;
}
p.close();
console.info("Start conan: " + executable + " " + args.join(" "));
p.exec(executable, args, true);
if (generators.contains("json")) {
if (!File.exists(generatedFilesPath + "/conanbuildinfo.json"))

View File

@ -815,7 +815,7 @@ Module {
cpp.systemIncludePaths: {
var paths = [FileInfo.joinPaths(product.buildDirectory, "qt.headers")];
if (Utilities.versionCompare(Qt.core.version, "6") >= 0 && !useConanPackages)
if (Utilities.versionCompare(Qt.core.version, "6") >= 0)
{
var includePaths = product.cpp.includePaths;

View File

@ -80,7 +80,7 @@ Module {
artifactNames.push(installRoot + "/" + targetApp + ".app/Contents/MacOS/" + input.fileName);
if (product.installDebugInformation)
artifactNames.push(installRoot + "/" + targetApp + ".app/Contents/MacOS/" + input.fileName +
artifactNames.push(installRoot + "/" + targetApp + ".app/Contents/MacOS/" + input.fileName + ".app" +
product.cpp.debugInfoBundleSuffix);
});
@ -109,7 +109,7 @@ Module {
if (product.installDebugInformation)
data.push({
"source" : product.buildDirectory + "/" + input.fileName + product.cpp.debugInfoBundleSuffix,
"source" : product.buildDirectory + "/" + input.fileName + ".app" + product.cpp.debugInfoBundleSuffix,
"destination": installRoot + "/" + targetApp + ".app/Contents/MacOS/" + fileName +
product.cpp.debugInfoBundleSuffix
});

View File

@ -15,7 +15,7 @@ if ($env:WITH_CRASH_REPORTING -eq "True") {
$env:Path += ";$extractPath"
# Check if dump_syms is callable
if (Test-Path (Join-Path $extractedFolderPath "dump_syms.exe")) {
if (Test-Path (Join-Path $extractPath "dump_syms.exe")) {
Write-Host "dump_syms utility installed successfully and added to PATH."
} else {
Write-Host "Failed to install dump_syms utility."

View File

@ -47,6 +47,7 @@ def generate_sym_files(install_root):
subprocess.run(dump_syms_cmd, check=True)
sym_files.append((debug_file, zip_sym(sym_file)))
os.remove(sym_file)
return sym_files
@ -79,6 +80,8 @@ def get_app_name(sym_file):
elif platform == "darwin":
if base_name.endswith(".framework"):
return base_name.split(".framework")[0]
elif base_name.endswith(".app"):
return base_name.split(".app")[0]
return base_name

View File

@ -14,6 +14,13 @@ VLib {
cpp.dynamicLibraries: ["Advapi32"]
}
Properties {
condition: buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled && qbs.targetOS.contains("macos")
cpp.libraryPaths: ["/usr/lib"]
cpp.dynamicLibraries: ["bsm"]
cpp.frameworks: ["AppKit", "Security"]
}
name: "VMiscLib"
files: {
var files = [

View File

@ -30,6 +30,13 @@ VTestApp {
cpp.dynamicLibraries: ["Advapi32"]
}
Properties {
condition: buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled && qbs.targetOS.contains("macos")
cpp.libraryPaths: ["/usr/lib"]
cpp.dynamicLibraries: ["bsm"]
cpp.frameworks: ["AppKit", "Security"]
}
name: "CollectionTest"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "CollectionTest" : "collectionTest"
targetName: buildconfig.appTarget

View File

@ -29,6 +29,13 @@ VTestApp {
cpp.dynamicLibraries: ["Advapi32"]
}
Properties {
condition: buildconfig.useConanPackages && buildconfig.conanCrashReportingEnabled && qbs.targetOS.contains("macos")
cpp.libraryPaths: ["/usr/lib"]
cpp.dynamicLibraries: ["bsm"]
cpp.frameworks: ["AppKit", "Security"]
}
name: "TranslationsTest"
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "TranslationsTest" : "translationsTest"
targetName: buildconfig.appTarget