Re: [Qbs] How to explicitly prohibit the use of qt-framework in project

2020-10-20 Thread Christian Kandeler
On 10/19/20 8:26 PM, Карелин Павел wrote: Depends { name: "Qt"; submodules: ["core", "network"]; required: false} condition: Qt.core.present Then in QtC I created a profile without qt-framework, and I tried to build the project. ... and the project was built. It turned out that QBS found

Re: [Qbs] Issues building for Android

2020-10-12 Thread Christian Kandeler
On Mon, 12 Oct 2020 16:20:44 +0200 Ola Røer Thorsen wrote: > Compiler feature detection failure! > The command > "/home/olathorsen/Android/Sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ > -x c++ -E -dM -target arm-linux-androideabi -target '' -fPIC -std=c++14 -" >

Re: [Qbs] Issues building for Android

2020-10-12 Thread Christian Kandeler
On Mon, 12 Oct 2020 15:07:14 +0200 Ola Røer Thorsen wrote: > The process '/Android/Sdk/build-tools/aidl' could not be started: > execve: No such file or directory. Looks like Android.sdk.buildToolsVersion is empty. Please verify. However, I think this should have resulted in an error message

Re: [Qbs] Specify custom applications and application arguments in qbs project

2020-09-21 Thread Christian Kandeler
On Mon, 21 Sep 2020 13:15:58 + Jochen Ulrich wrote: > PS: And if you want to run an executable which is built as part of your > project, then the product should of course depend on that executable to make > sure it is built before. Yes. > And the rule should use the executable's

Re: [Qbs] dependency tracking

2020-09-16 Thread Christian Kandeler
On Tue, 15 Sep 2020 22:10:13 +0500 Dan Pat wrote: > "testinput.h" file contains "#include "a.h" directive. Changing > testinput.h results in a generator run followed by a C++ compiler run. > Changing a.h results in no action, although in this case the generator > is intended to reprocess its

Re: [Qbs] dependency tracking

2020-09-14 Thread Christian Kandeler
On Mon, 14 Sep 2020 19:11:41 +0500 Dan Pat wrote: > Hi, I have a code generator using C++ *.h headers as its input. Everything > works fine for me except for dependency tracking. Since inputs are ordinary > include files they often include other include files which include other > include files

Re: [Qbs] How to use texttemplate module?

2020-09-09 Thread Christian Kandeler
On Wed, 9 Sep 2020 00:24:36 +0300 Alberto Mardegan wrote: > Of course, in my project the product type is not "text" But it has to be, or at least appear as a dependency of the product type somewhere. Otherwise there's no path from the source artifact to the product type. A detailed explanation

Re: [Qbs] How to get the full dependency name in a ModuleProvider?

2020-07-31 Thread Christian Kandeler
On Thu, 30 Jul 2020 23:32:11 +0300 Alberto Mardegan wrote: >I started playing with ModuleProvider, and I find the "name" property > a bit confusing: if the dependency was specified as > > Depends { name: "myprovider.a" } > > the the module provider in

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-23 Thread Christian Kandeler
On Thu, 23 Jul 2020 14:13:13 +0300 Карелин Павел wrote: > Having weighed all the "pros" and "cons", I have decided not to use > qbs.Process in outputArtifacts. Now I settled on a stupidly-simple > solution: I reduced the number of generated files from 6 to 5. But how do you know there will

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Christian Kandeler
On Tue, 21 Jul 2020 18:32:10 +0300 Карелин Павел wrote: > How can I execute Command from outputArtifacts? You can't, you need to use a JavaScript command and qbs.Process. Christian ___ Qbs mailing list Qbs@qt-project.org

Re: [Qbs] Rule.Return dynamic list for outputArtifacts

2020-07-21 Thread Christian Kandeler
On Tue, 21 Jul 2020 15:10:38 +0300 Карелин Павел wrote: > I recently needed to develop a rule for a sip generator (see below). > Basically, the rule works well, but yesterday it failed. At the output, > sip-generator create 6 cpp-files of the following format: > sip_corepartX.cpp (this is

Re: [Qbs] Applying cxxFlags to certain files

2020-07-10 Thread Christian Kandeler
On Fri, 10 Jul 2020 16:42:51 +0500 Dan Pat wrote: > I have checked out the solution and discovered an inconvenience. As it > stands, Artifacts are passed to the "cpp" module with flags set by the > Product (and product imported Modules) in the context of which the > Artifacts are built. But as

Re: [Qbs] Products with Space in Name

2020-06-26 Thread Christian Kandeler
On Fri, 26 Jun 2020 13:14:11 +0200 Björn Schäpers wrote: > DynamicLibrary { > name: "FooBar" > } > > CppApplication { > Depends { name: "cpp" } > Depends { name: "FooBar" } > cpp.defines = ["FOO_PATH=\"" + FooBar.buildDirectory + "\""] Eww... This works? You cannot rely on

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Christian Kandeler
On Wed, 10 Jun 2020 11:37:02 +0200 (CEST) "Richard Weickelt" wrote: > ... And module properties set in the profile. I had a glance look at the > source code. When evaluating the condition property, we are taking the > following information from the product context into account: > > - module

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Christian Kandeler
On Tue, 9 Jun 2020 20:55:43 +0200 Christian Gudrian wrote: > Could it be that only a restricted set of variables is available during > evaluation of the module’s „condition“ property? Neither „product“ nor any > imported modules’ variables can be accessed („Can’t find variable“ error). > > Is

Re: [Qbs] isystem with clang

2020-05-20 Thread Christian Kandeler
On Wed, 20 May 2020 22:11:20 +1200 Christian Gagneraud wrote: > Couldn't find any definite answer about using '-isystem' to avoid the > compiler to report warning as error in 3rd party headers (qt, gtest, > ...). > Looking at the cpp module, i can see some logic, but I can't seem to > find a way

Re: [Qbs] Set cpp properties for generated cpp files (moc) does not seem to work

2020-05-20 Thread Christian Kandeler
On Wed, 20 May 2020 21:44:46 +1200 Christian Gagneraud wrote: > On Fri, 15 May 2020 at 03:12, Christian Kandeler > wrote: > > > > On Thu, 14 May 2020 14:49:25 + > > Maximilian Hrabowski wrote: > > > > > Isn’t unmocable used to tag cpp/header files tha

Re: [Qbs] Set cpp properties for generated cpp files (moc) does not seem to work

2020-05-14 Thread Christian Kandeler
On Thu, 14 May 2020 14:49:25 + Maximilian Hrabowski wrote: > Isn’t unmocable used to tag cpp/header files that should not be processed by > moc? Sure, that's why the generated cpp files get it, so they won't get processed again. Christian ___

Re: [Qbs] Set cpp properties for generated cpp files (moc) does not seem to work

2020-05-14 Thread Christian Kandeler
On Thu, 14 May 2020 12:22:53 + Maximilian Hrabowski wrote: > we have quite a strict warning policy so all warnings are treated as errors > in our code. This creates problems when including third-party code that > produces warnings, so usually those files are put in a special group and >

Re: [Qbs] Undocumented SubProject.condition property

2020-04-17 Thread Christian Kandeler
On Thu, 16 Apr 2020 11:57:08 + Jochen Ulrich wrote: > We found that there is an undocumented `condition` property on SubProject > items. > It seems to have the same effect as setting the `condition` property inside > the Properties block. > However, I find it more readable to have the

Re: [Qbs] building android aab package help

2020-04-17 Thread Christian Kandeler
[Redirecting back to the mailing list] On Thu, 16 Apr 2020 20:17:47 +0200 Raphael Cotty wrote: > Le mer. 15 avr. 2020 à 09:48, Christian Kandeler > a écrit : > > > Building an aab is similar to building apk. They both take the same inputs > > > (including java files)

Re: [Qbs] building android aab package help

2020-04-15 Thread Christian Kandeler
On Tue, 14 Apr 2020 21:27:18 +0200 Raphael Cotty wrote: > I am struggling to find a way to build the aab package (non runnable > package required by google store) on the android platform. > For this platform the default qbs product type is changed from application > to android.apk (runnable

Re: [Qbs] Binary stripping

2020-04-14 Thread Christian Kandeler
On Thu, 9 Apr 2020 22:49:48 +0300 Alberto Mardegan wrote: > I noticed that binaries generated by mingw are quite large, and when I > ran the "strip" command on them, the size was reduced by more than half, > without losing functionality. > > I'm building my application with the `config:release`

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-23 Thread Christian Kandeler
> I think you should write: > CppApplication { >name: "app" >files: ["gen.cpp"] >Depends { name: "lib"; profiles: "targetProfile" } > } Ah right, I completely forgot about that property... ___ Qbs mailing list Qbs@qt-project.org

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 16:01:09 + Leon Buckel wrote: > I think I almost got it to work. The problem I have now is that the app seems > to link against the wrong version of the library: > ld: warning: ignoring file > /.../lib.eyJwcm9maWxlIjoiaG9zdFByb2ZpbGUifQ--.cd69e9f1/.tmp/lib, building for

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 15:41:21 +0100 Christian Kandeler wrote: > Your app and build tool use normal Depends items for pulling in the library; > the matching should work automatically. Addendum: Of course, you also need to set the host profile in your build tool: CppAppli

Re: [Qbs] Building code generator and its dependencies for a different architecture than the rest of the products

2020-03-20 Thread Christian Kandeler
On Fri, 20 Mar 2020 14:10:49 + Leon Buckel wrote: > I have a project with the following products: > > * Shared library > * Code generator tool > * Application > > The code generator and application both depend on the shared library. The > build process is as follows: > > 1.

Re: [Qbs] qmath3d build issue

2020-02-19 Thread Christian Kandeler
On Wed, 19 Feb 2020 12:18:13 + Wookey wrote: > I maintain a couple of debian packages that build with qbs. > > Last night, whilst fixing a couple of bugs in qmath3d > (https://tracker.debian.org/pkg/qmath3d) I found a problem: it used to build > but no longer does. > > Well it builds

Re: [Qbs] Construction project.buildDirectory

2020-02-06 Thread Christian Kandeler
On Thu, 6 Feb 2020 16:08:42 +0100 Richard Weickelt wrote: > > sorry for breaking this. The issue has been fixed by > > https://codereview.qt-project.org/c/qbs/qbs/+/289271 and the fix will be in > > Qt Creator 4.11.1 which is about to be released this week. You may try > >

Re: [Qbs] Passing paths to properties

2020-02-05 Thread Christian Kandeler
On Tue, 4 Feb 2020 21:40:24 +0300 Alberto Mardegan wrote: > I was happy to see that the FileInfo.resolvePath() already exists. :-) > It's not documented, however; is there any reason for that, or should we > add it to the reference? The missing documentation is probably unintended. Christian

Re: [Qbs] Use of qbs.architecture with qtc

2020-02-04 Thread Christian Kandeler
On Mon, 3 Feb 2020 18:09:57 +0100 Raphael Cotty wrote: > I was using it at the project level which was obviously wrong. > I managed to change all the occurrences of the test by moving them in the > condition of the different products. > > Except in this case: > Depends { > name: "Qt"; >

Re: [Qbs] Use of qbs.architecture with qtc

2020-02-03 Thread Christian Kandeler
On Sun, 2 Feb 2020 11:57:20 +0100 Raphael Cotty wrote: > I see that the qbs.architecture property is set for the android platform by > the different qbs tools. > But it's not set by qbs-setup-qt or qbs-setup-toolchains for gcc. That's because the cpp module sets it automatically using

Re: [Qbs] Passing paths to properties

2020-02-03 Thread Christian Kandeler
On Sat, 1 Feb 2020 09:30:33 +0100 Richard Weickelt wrote: > > I believe that most other properies which accept a path (like installDir, > > and the prefix property within a Group) all happily accept a relative > > path, so can we consider this a bug in Android.sdk? > > You mean qbs.installDir?

Re: [Qbs] Accessing qbs.architecture in Probe

2020-01-30 Thread Christian Kandeler
On Thu, 30 Jan 2020 12:41:44 + Leon Buckel wrote: > > Though it will still work if you set the architecture via a profile. > How would I access a property set in a profile? I think I've tried it before > but I probably did something wrong. $ qbs config profiles..qbs.architecture x86 $ #

Re: [Qbs] Accessing qbs.architecture in Probe

2020-01-30 Thread Christian Kandeler
On Thu, 30 Jan 2020 11:30:24 + Leon Buckel wrote: > Here's the probe. I is instantiated at project level where the value of > 'generatedQbsFilePath' is added to the 'references' property. That's generally a problem. Modules are per-product, and with very few exceptions (constants like

Re: [Qbs] Accessing qbs.architecture in Probe

2020-01-30 Thread Christian Kandeler
On Thu, 30 Jan 2020 10:01:17 + Leon Buckel wrote: > I’m running conan from a probe to get all required dependencies for the build > and to be able to directly include the generated qbs file into the project. > For the windows build I need to know whether to request the package for 64 or >

Re: [Qbs] QBS behaviour while linking

2020-01-28 Thread Christian Kandeler
On Tue, 28 Jan 2020 18:22:31 +0100 Heiko Nardmann wrote: > I wonder why parallel building stops when libraries are linked ... It does not. > Every time a library is linked (Linux) one core is busy and all others > are completely idle. Is this a known bug? Presumably the library to be built is

Re: [Qbs] Construction project.buildDirectory

2019-12-19 Thread Christian Kandeler
On Thu, 19 Dec 2019 16:35:22 +0300 Карелин Павел wrote: > My colleague decided to try QtCreator 4.11 (QBS 1.15), and faced a problem. > At this project the QtCreator 4.11 issues a mistake: > > import qbs > Project { >     minimumQbsVersion: "1.12.0" > >     Probe { >     id:

Re: [Qbs] (no subject)

2019-11-28 Thread Christian Kandeler
On Thu, 28 Nov 2019 18:58:54 +0500 Dan Pat wrote: > Hello. I am trying to use Asan in my project (windows 10, clang-cl). > There's a requirement for the Asan import library to appear first in the > linker's list of import libraries. Who imposes that requirement and why? > I cannot seem to

Re: [Qbs] Passing settings to qbs generators using the command line

2019-11-19 Thread Christian Kandeler
On Tue, 19 Nov 2019 08:07:22 + Maximilian Hrabowski wrote: > Is there a way to pass settings to qbs generators using the command line? Not yet, because no one has needed it so far. This feature can be easily added, though: Just extend the GenerateCommand class to behave like RunCommand

[Qbs] qbs 1.14.1 release

2019-11-07 Thread Christian Kandeler
Hello, I'd like to announce the release of Qbs 1.14.1. This is a bugfix release. Source and binary packages as well as a change log can be found at https://download.qt.io/official_releases/qbs/1.14.1/. This release of Qbs is also shipped as part of Qt Creator 4.10.2. Christian

[Qbs] qbs 1.14.0 released

2019-10-10 Thread Christian Kandeler
Hello, I'd like to announce the release of Qbs 1.14.0. Source and binary packages as well as a change log can be found at https://download.qt.io/official_releases/qbs/1.14.0/. This release of Qbs is also shipped as part of Qt Creator 4.10.1. Note that this release is not compatible with Xcode

Re: [Qbs] QtC 4.10.1 missed QBS 1.14.1!!

2019-10-09 Thread Christian Kandeler
On Tue, 8 Oct 2019 22:38:49 +0300 Denis Shienkov wrote: > Seems, you are forgot to deliver QBS 1.14.1 with QtC 4.10.1. Right now I > see that it use QBS 1.14.0. What is all this talk about 1.14.1? 1.14.0 has not even been released yet. We expect it shortly. Christian

Re: [Qbs] avoid RPATH pointing to Qt installation folder

2019-10-08 Thread Christian Kandeler
On Tue, 8 Oct 2019 11:39:09 +0200 Heiko Nardmann wrote: > The question is whether to include Qt.core.libPath (as defined inside > core.qbs) into the list of rpaths. If I put it into the list then it > also is part of the binaries RPATH - which I want to avoid. I I leave it > out then I get ld

Re: [Qbs] avoid RPATH pointing to Qt installation folder

2019-10-08 Thread Christian Kandeler
On Tue, 8 Oct 2019 09:53:32 +0200 Heiko Nardmann wrote: > I'm looking for a way to prevent the RPATH of an executable pointing to > the installed Qt. From the "core.qbs" file I see that cpp.rpaths is set > to libPath for Linux by default. There should probably be a Qt.core property that

Re: [Qbs] Android deployment

2019-09-11 Thread Christian Kandeler
This is a bug. If you can reproduce it, please create an issue at bugreports.qt.io. Make sure to add an example project that triggers the problem. Christian From: Qbs on behalf of Raphael Cotty Sent: Monday, September 9, 2019 11:20 PM To:

Re: [Qbs] Use compiler flags file generated by a rule

2019-08-29 Thread Christian Kandeler
On Thu, 29 Aug 2019 13:19:49 +0200 (CEST) "Richard Weickelt" wrote: > I want to integrate a generator tool into a Qbs build flow. This tool is very > slow and produces a bunch of .h/.c files and a "compiler.opt" file with some > compiler flags. I need to use these flags to build the current

Re: [Qbs] Generating a c++ class with Q_OBJECT

2019-08-28 Thread Christian Kandeler
On Wed, 28 Aug 2019 12:56:56 +0200 Raphael Cotty wrote: > I've created a module: > Module { > FileTagger { > patterns: "*.wsdl" > fileTags: ["wsdl"] > } > Depends { name: "kdsoap" } > Rule { > multiplex: false > inputs: ["wsdl"] > Artifact

Re: [Qbs] A simple project that copy an executable does not work

2019-08-23 Thread Christian Kandeler
On Tue, 13 Aug 2019 11:50:38 + Christian Kandeler wrote: > On Mon, 12 Aug 2019 21:57:34 +0800 > Vincent Hui wrote: > > > Do you know why the document for Rule is not updated? > > https://doc-snapshots.qt.io/qbs/qml-qbslanguageitems-rule.html > > The snapshots ar

Re: [Qbs] A simple project that copy an executable does not work

2019-08-13 Thread Christian Kandeler
On Mon, 12 Aug 2019 21:57:34 +0800 Vincent Hui wrote: > Do you know why the document for Rule is not updated? > https://doc-snapshots.qt.io/qbs/qml-qbslanguageitems-rule.html The snapshots are probably updated manually, or the script is broken. I'll ask a doc person. Christian

Re: [Qbs] Define the link order without an explicit dependency

2019-08-09 Thread Christian Kandeler
On Fri, 9 Aug 2019 02:15:31 +0200 Richard Weickelt wrote: > I have the following scenario: > > Product { > name: "some-headers" > } > > // Implementations of some-headers > // A-1 and A-2 define the same symbols and are mutually exclusive. > // An application

Re: [Qbs] Android: -target unknown option

2019-08-01 Thread Christian Kandeler
On Thu, 1 Aug 2019 10:45:35 +0200 Christian Gudrian wrote: > I am trying to build a simple application for Android. Current setup: > > - Qt 5.13.0 > - Qt Creator 4.9.2 (Qbs 1.13.1) Qt Creator has traditionally supported only qmake for Android development. This will change with 4.10, to be

Re: [Qbs] Graphviz export/generator

2019-07-22 Thread Christian Kandeler
On Sun, 21 Jul 2019 15:32:37 +1200 Christian Gagneraud wrote: > Hi there, > > I would like to be able to export a (graphviz) graph of a project and > i'm thinking about writing a new ProjectGenerator plugin for that. > The first kind of graph would be a product dependency graph. > > Once i

Re: [Qbs] How to check whether a project is a subproject of another project?

2019-07-17 Thread Christian Kandeler
On Wed, 17 Jul 2019 23:25:49 +0800 Vincent Hui wrote: > I want to check whether a project is a subproject of another project. If a > project is not a subproject, its examples and tests are built. If a project > is a subproject, its examples and tests are not built. Declare a property in your

Re: [Qbs] qbs resolve, multi-threaded or not?

2019-07-17 Thread Christian Kandeler
On Thu, 18 Jul 2019 00:52:25 +1200 Christian Gagneraud wrote: > When I run qbs resolve (on a 8 cores machine), i can see 3 qbs > threads, and only 2 are busy (100% CPU). The resolve procedure is offloaded into a dedicated thread. Otherwise it would block the main application, which would be a

Re: [Qbs] dump-nodes-tree broken?

2019-07-17 Thread Christian Kandeler
On Thu, 18 Jul 2019 00:26:50 +1200 Christian Gagneraud wrote: > On Wed, 17 Jul 2019 at 23:52, Christian Kandeler > wrote: > > > > On Wed, 17 Jul 2019 23:41:54 +1200 > > Christian Gagneraud wrote: > > > > > I'm trying to use dump-nodes-tree with qbs 1.1

Re: [Qbs] dump-nodes-tree broken?

2019-07-17 Thread Christian Kandeler
On Wed, 17 Jul 2019 23:41:54 +1200 Christian Gagneraud wrote: > I'm trying to use dump-nodes-tree with qbs 1.13.1 (from QtC), and i > get nothing except a message 'Restoring build graph from disk'. > I've tried 'qbs dump-nodes-tree' and 'qbs dump-nodes-tree -p > qtcreator', still the same.. > Is

Re: [Qbs] Qbs (way) faster than cmake (or benchmark issue)

2019-07-16 Thread Christian Kandeler
On Tue, 16 Jul 2019 18:29:35 +1200 Christian Gagneraud wrote: > I finally found time to start my qbs vs cmake build perf. > > What i found is that qbs beats cmake 'big time' on my build machine > and i was actually surprised, so surprised that i'm trying to find > where is the mistake.

Re: [Qbs] Improving qbs resolve performance

2019-07-15 Thread Christian Kandeler
On Sat, 13 Jul 2019 17:37:04 +1200 Christian Gagneraud wrote: > On Sat, 13 Jul 2019 at 00:48, Christian Kandeler > wrote: > > > > On Fri, 12 Jul 2019 12:05:48 + > > Maximilian Hrabowski wrote: > > > > > >> I have a fairly large project with a

Re: [Qbs] Improving qbs resolve performance

2019-07-12 Thread Christian Kandeler
On Fri, 12 Jul 2019 12:05:48 + Maximilian Hrabowski wrote: > >> I have a fairly large project with a root projects that pulls in several > >> SubProjects, altogether with unit tests its about 313 qbs files that are > >> pulled in. > > > > The number of project files is not all that

Re: [Qbs] Improving qbs resolve performance

2019-07-11 Thread Christian Kandeler
On Thu, 11 Jul 2019 12:18:30 + Maximilian Hrabowski wrote: > I have a fairly large project with a root projects that pulls in several > SubProjects, altogether with unit tests its about 313 qbs files that are > pulled in. The number of project files is not all that important by itself. Qt

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 22:13:48 +1200 Christian Gagneraud wrote: > On Mon, 8 Jul 2019 at 22:09, Christian Kandeler > wrote: > > I don't know what you mean by "simulating a full project reload". Lots of > > tst_api test cases do project reloads. > > I just meant

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 21:22:13 +1200 Christian Gagneraud wrote: > On Mon, 8 Jul 2019 at 20:50, Christian Kandeler > wrote: > > > > On Mon, 8 Jul 2019 18:08:25 +1200 > > Christian Gagneraud wrote: > > > > > I'm back on https://codereview.qt-project.org/c/q

Re: [Qbs] How to reload a parent project after inserting a sub-project

2019-07-08 Thread Christian Kandeler
On Mon, 8 Jul 2019 18:08:25 +1200 Christian Gagneraud wrote: > I'm back on https://codereview.qt-project.org/c/qbs/qbs/+/260217, i > decided that I should get that done and tested before I move on > QtCreator integration. > Conceptually, it works, i added a test that check that a sub-project >

Re: [Qbs] Is there a feature similar with cmake option?

2019-07-05 Thread Christian Kandeler
On Fri, 5 Jul 2019 16:06:28 +0200 Richard Weickelt wrote: > And it sounds like CMakeCache.txt is used to prevent from typing a CMake > command line with lots of -D. Is that correct? There is no direct > equivalent in Qbs. But note that the property values are stored in the build graph, so

Re: [Qbs] Is there a feature similar with cmake option?

2019-07-05 Thread Christian Kandeler
On Fri, 5 Jul 2019 21:33:12 +0800 Vincent Hui wrote: > Cmake options can be overridden by CMakeCache.txt files inside build > folders. Is there similar feature in qbs? No, and it sounds like a horrible idea. Christian ___ Qbs mailing list

Re: [Qbs] Is there a feature similar with cmake option?

2019-07-05 Thread Christian Kandeler
On Fri, 5 Jul 2019 16:01:02 +0800 Vincent Hui wrote: > In qbs, is there a feature similar with cmake option > ? Doesn't that just map to properties? Christian ___ Qbs mailing list

Re: [Qbs] How to add -pthread option into projects? a bug in qbs ?

2019-07-04 Thread Christian Kandeler
On Thu, 4 Jul 2019 14:20:09 +0800 Vincent Hui wrote: > cpp.cppFlags: ["-pthread"] cpp.driverFlags: "-pthread" Christian ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

[Qbs] 1.14 branch created

2019-06-20 Thread Christian Kandeler
Hi, we have branched off qbs 1.14 today. Scheduled release date for version 1.14.0 is end of July. We recommend users to try this branch with their projects and report back any new problems they find. Contributors are requested to push bug fixes and small, zero-risk improvements to this

[Qbs] qbs 1.13.1 released

2019-05-28 Thread Christian Kandeler
Hello, I'd like to announce the release of Qbs 1.13.1. This is a bugfix release. Source and binary packages as well as a change log can be found at https://download.qt.io/official_releases/qbs/1.13.1/. This release of Qbs is also shipped as part of Qt Creator 4.9.1. Christian

Re: [Qbs] Install/Depends resolution changed from qbs 1.12.2 to qbs 1.13.0?

2019-05-20 Thread Christian Kandeler
On Mon, 20 May 2019 09:01:02 +0200 Richard Weickelt wrote: > > Oh yeah, it has been an unsatisfying surprise that default installation > > prefix changed from empty string to "usr/local/" on Linux. All builds > > are broken, all scripts working on the results are broken. Not > > hardcoding is

Re: [Qbs] Install/Depends resolution changed from qbs 1.12.2 to qbs 1.13.0?

2019-05-16 Thread Christian Kandeler
On Thu, 16 May 2019 12:20:25 +0200 Frederik Christiani via Qbs wrote: > I ran into a similar problem and solved it by explicitly setting > qbs.installPrefix to an empty string. Though you should generally not hardcode such locations in a rule, but retrieve the path from the artifact. There is

Re: [Qbs] Install/Depends resolution changed from qbs 1.12.2 to qbs 1.13.0?

2019-05-16 Thread Christian Kandeler
On Thu, 16 May 2019 09:17:37 + Maximilian Hrabowski wrote: > after upgrading to qbs 1.13 our build was broken. > > During the build process a generator tool it built that depends on a > framework which is also build. The generator tool is later used to generate > code that will be

Re: [Qbs] Who compared build times of Qt Creator with CMake and qbs?

2019-05-16 Thread Christian Kandeler
On Wed, 15 May 2019 19:16:01 +0300 Orgad Shaneh wrote: > Probably because cmake aggregates files, while qbs builds each one > separately. One could verify: https://doc.qt.io/qbs/qml-qbsmodules-cpp.html#combineCxxSources-prop

Re: [Qbs] Who compared build times of Qt Creator with CMake and qbs?

2019-05-15 Thread Christian Kandeler
On Thu, 16 May 2019 02:01:21 +1200 Christian Gagneraud wrote: > As well, please note that the current CMake doesn't build as much > stuff as the qbs one. Not sure the difference is huge, but you need to > compare "equal jobs". For instance, all autotests are missing from the cmake build, so

Re: [Qbs] Any novice tickets

2019-04-30 Thread Christian Kandeler
On Tue, 30 Apr 2019 08:22:05 +0200 Иван Комиссаров wrote: > I want to add doc about how to run tests using QBS. But I can’t find Appendix > A page, surprisingly, it is not near Appendix B page. > Christian, can you please point to the correct page location? You mean in the sources? In the

Re: [Qbs] qbs 1.13 released

2019-04-23 Thread Christian Kandeler
On Tue, 23 Apr 2019 13:29:57 +0300 Иван Комиссаров wrote: > I’ve noticed, that cpp.minimumOsxVersion was renamed to > cpp.minimumMacosVersion at some point of time and QtCreator’s clang code > model does not understand this property. At least, it highlights std::visit() > call which requires

[Qbs] qbs 1.13 released

2019-04-18 Thread Christian Kandeler
https://blog.qt.io/blog/2019/04/18/qbs-1-13-released/ Christian ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] Qbs status update - looking for a maintainer

2019-04-09 Thread Christian Kandeler
On Thu, 4 Apr 2019 22:29:59 +0200 Richard Weickelt wrote: > Christian, are you planning to step down as a maintainer in 2019 or will you > make that dependent on the amount of external contribution? Right now, the > amount of contribution doesn't look overwhelming. If no one takes over, I can

Re: [Qbs] Any novice tickets

2019-02-13 Thread Christian Kandeler
On Wed, 13 Feb 2019 15:26:00 +0100 Иван Комиссаров wrote: > I see that module providers feature was implemented. Is it now possible to > use a provider to create a module for auto-detected protobuf library (via > probes and via pkg-config)? Which problem are you trying to solve? Christian

[Qbs] 1.13 branch created

2019-02-12 Thread Christian Kandeler
Hi, we have branched off qbs 1.13 today. Scheduled release date for version 1.13.0 is beginning of April. We recommend users to try this branch with their projects and report back any new problems they find. Contributors are requested to push bug fixes and small, zero-risk improvements to this

Re: [Qbs] tst_blackbox-qt fails

2019-01-30 Thread Christian Kandeler
On Wed, 30 Jan 2019 07:20:30 +0100 Richard Weickelt wrote: > >> This is how I build and test now: > >> > >> qbs build profile:qt > >> qbs run -p qbs_app profile:qt -- setup-toolchains --detect > >> qbs run -p qbs_app profile:qt -- setup-qt > >> /usr/local/Qt/5.9.7/gcc_64/bin/qmake qt > >>

Re: [Qbs] lupdate/ts-file generation support in qbs

2019-01-24 Thread Christian Kandeler
On Thu, 24 Jan 2019 07:08:03 + Maximilian Hrabowski wrote: > is there already some support in “Qt.core” to create ts files from cpp > sources using lupdate? I can only find lrelease/qm support in the doc. No, because lupdate was tied tightly to qmake project files. However, this has

Re: [Qbs] Qbs Rule for a tool like syncqt.pl

2019-01-23 Thread Christian Kandeler
On Wed, 23 Jan 2019 14:32:03 +0100 Christian Gudrian wrote: > Usually the list of outputArtifacts is known beforehand or can be > derived from the inputs. What about scenarios where this is not the > case? Is it "allowed" to perform the actual transformation while > evaluating the

Re: [Qbs] Qbs Rule for a tool like syncqt.pl

2019-01-22 Thread Christian Kandeler
On Tue, 22 Jan 2019 09:23:01 +0100 Christian Gudrian wrote: > Am 21.01.2019 um 11:55 schrieb Christian Kandeler: > > but technically, they aren't the "real" headers, since they are not > > what you include. > > That's true. They are however the header files I

Re: [Qbs] Qbs Rule for a tool like syncqt.pl

2019-01-21 Thread Christian Kandeler
On Mon, 21 Jan 2019 08:45:30 +0100 Christian Gudrian wrote: > I'm struggling with writing a Rule for a tool like Qt's syncqt.pl script > which automatically generates a set of API headers from the source code > with the source itself already referencing these generated headers (that >

Re: [Qbs] qbs command line help vs. documentation on qbs.io needs clarification

2019-01-18 Thread Christian Kandeler
On Fri, 18 Jan 2019 15:40:04 + Maximilian Hrabowski wrote: > It seems > > > qbs config:release profile:xxx > > just works. but when i try to build both configurations > > > qbs config:debug config:release profile:xxx > > it fails with errors for configuration "release" (can’t resolve

Re: [Qbs] qbs command line help vs. documentation on qbs.io needs clarification

2019-01-18 Thread Christian Kandeler
On Fri, 18 Jan 2019 13:35:24 + Maximilian Hrabowski wrote: > Hi all, > > when looking at the command line help of the build command i get: > > qbs build [options] [[config:] [:] ...] … > Builds a project in one or more configuration(s). > … > So for me this means i can build my project

Re: [Qbs] Including project files matching git submodules

2019-01-04 Thread Christian Kandeler
On Thu, 3 Jan 2019 22:14:09 +0100 Björn Schäpers wrote: > I'm trying to build a repository for multiple libraries and applications, > where > every product is located in an own submodule. Right now I'm at this point: > > root/ > - all.qbs > - libs/ >- libs.qbs >- up.qbs >- lib1/ >

Re: [Qbs] tst_blackbox-qt fails

2019-01-03 Thread Christian Kandeler
On Wed, 2 Jan 2019 17:27:29 +0100 Richard Weickelt wrote: > This is how I build and test now: > > qbs build profile:qt > qbs run -p qbs_app profile:qt -- setup-toolchains --detect > qbs run -p qbs_app profile:qt -- setup-qt > /usr/local/Qt/5.9.7/gcc_64/bin/qmake qt > QBS_AUTOTEST_PROFILE=qt qbs

Re: [Qbs] debian patches

2019-01-02 Thread Christian Kandeler
On Sat, 22 Dec 2018 03:31:16 + Wookey wrote: > On 2018-12-21 09:18 +0000, Christian Kandeler wrote: > > By the way, I was looking at the patches Debian applies, and I have a > > couple of questions/comments. > > - remove_rpaths.diff: Why is the line that *conditio

Re: [Qbs] tst_blackbox-qt fails

2019-01-02 Thread Christian Kandeler
On Sat, 29 Dec 2018 08:48:37 +0100 Richard Weickelt wrote: > I tried to build Qbs from source and to run the autotests on Debian stretch > with Qt 5.9.7 and 5.12.0. After creating a Qt profile (with the built Qbs) > and setting the undocumented QBS_AUTOTEST_PROFILE variable I still see some >

Re: [Qbs] --more-verbose causes segfault

2018-12-17 Thread Christian Kandeler
On Mon, 17 Dec 2018 05:15:40 + Wookey wrote: > I just uploaded dewalls 1.0.0+ds1-7 to debian to fix some minor lintian > issues: > https://lintian.debian.org/full/woo...@debian.org.html#dewalls > > However I noticed (whilst trying to comply with the new debian policy about > making build

Re: [Qbs] How QBS && QtCreator integration does work?

2018-12-13 Thread Christian Kandeler
On Thu, 13 Dec 2018 12:52:58 +0300 Denis Shienkov wrote: > > The compiler is looked up in the PATH if the respective property is not > set. > > I'm don't understand a bit.. What if my PATH contains two compilers? Then the first one will be picked up. > > if the respective property is not

Re: [Qbs] How QBS && QtCreator integration does work?

2018-12-13 Thread Christian Kandeler
On Thu, 13 Dec 2018 12:16:52 +0300 Denis Shienkov wrote: > How does it work? Why we need in this Probes at all? The compiler is looked up in the PATH if the respective property is not set. In the case of Qt Creator, all the relevant information comes from the Kits (which are turned into qbs

Re: [Qbs] iOS code signing

2018-11-12 Thread Christian Kandeler
On Sun, 11 Nov 2018 20:18:14 +0300 Павел Лысенко via Qbs wrote: > I'm trying to run application on iOS device. It was built successfully, but I > see no option to sign a bundle. > If I build with qmake, it creates an xcode project where I can set code sign > settings. > If I build with qbs, it

Re: [Qbs] Include current git branch in installation directory

2018-11-09 Thread Christian Kandeler
On Fri, 9 Nov 2018 13:53:25 +0100 Christian Gudrian wrote: > Am 09.11.2018 um 13:49 schrieb rich...@weickelt.de: > > I think You can use the Probe item for that purpose. > > That would help to determine the current git branch. But how do I tell > Qbs to prefix that branch to all installation

Re: [Qbs] Include current git branch in installation directory

2018-11-09 Thread Christian Kandeler
On Fri, 9 Nov 2018 12:49:12 + wrote: > I think You can use the Probe item for that purpose. > > https://doc.qt.io/qbs/qml-qbslanguageitems-probe.html > > You would combine it with Process service. Search for gitProbe in the > following file to get inspired: > >

Re: [Qbs] Include current git branch in installation directory

2018-11-09 Thread Christian Kandeler
On Fri, 9 Nov 2018 12:18:43 +0100 Christian Gudrian wrote: > I would like to have Qbs automatically install all artifacts into a > directory that contains the current git branch of the working copy. How > can I accomplish that? I'm afraid I don't understand this. Can you elaborate? In

Re: [Qbs] Mysterious config: parameter

2018-11-05 Thread Christian Kandeler
On Sun, 4 Nov 2018 00:54:25 +0300 Иван Комиссаров wrote: > Perhaps, I am blind, but I can’t find any mentions in documentation. E.g. https://doc-snapshots.qt.io/qbs/cli-build.html#config-configuration-op-op-name > What’s this is used for? It's the name of the configuration to which

  1   2   3   4   >