[QBS] Project configuration from within qbs profile

2014-07-19 Thread Richard Weickelt
Hi, I have a question regarding project configuration. A qbs project defines a property "myProperty". I can of course set the property in the qbs file itself and I can set the property on command line via: qbs build myproject.qbs project.myProperty:bla Would it also be possible to set this pro

Re: [QBS] Project configuration from within qbs profile

2014-07-21 Thread Richard Weickelt
> Ok, I've tried to create a module "MyModule" and access one of its > properties, but failed: > > mymodule.qbs > import qbs.base 1.0 > > Module > { > name: "MyModule" > property string myProperty > } > > myproject.qbs > import qbs.base 1.0

[QBS] Global and local properties in projects and products

2014-07-25 Thread Richard Weickelt
Hi, I have a project containing a couple of static libraries. This project is then being used as a sub-project for application projects. Illustration of the project structure - Project { name : "framework" } | +-- StaticLibrary { name : "lib1" } +-- StaticLibr

[QBS] How to resolve dependencies on generated header files

2014-08-07 Thread Richard Weickelt
Hi, my question related to QBS release post at http://blog.qt.digia.com/blog/2014/05/05/qbs-1-2-0-released/ > Qbs now supports rules with a flexible number of outputs. For example, > you may write an IDL file containing the descriptions of several C++ > interfaces. An interface compiler generate

Re: [QBS] How to resolve dependencies on generated header files

2014-08-07 Thread Richard Weickelt
Hi, >>> Qbs now supports rules with a flexible number of outputs. For example, >>> you may write an IDL file containing the descriptions of several C++ >>> interfaces. An interface compiler generates a number of header files. The >>> generated header files are automatically taken into account as

[QBS] Preserve directory structure during installation

2014-08-07 Thread Richard Weickelt
Hi, how can I install a specific file type from a given folder while preserving the folder hierarchy? Example: source-dir | +-- subdir1 | +--file1.h | +--file1.cpp | +-- file2.h +-- file2.cpp should install to: install-root | +-- include | +-- subdir1 | +--file1.h | +

Re: [QBS] How to resolve dependencies on generated header files

2014-08-07 Thread Richard Weickelt
er is what I have expected and where the confusion comes from. Is this correct? Richard -- Richard Weickelt Jagowstraße 15 10555 Berlin Germany Tel:(+49) (0) 30 96 60 30 90 Fax:(+49) (0) 355 5 478 477 9 Mobil: (+49) (0) 151 23347215 ___ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs

[QBS] How to preserve commas in toolchain profiles

2014-10-21 Thread Richard Weickelt
Hi, let's consider the following line of a toolchain profile (exported format) profiles.atmega.cpp.linkerFlags: -Wl,--gc-sections -Wl tells g++ (running as linker driver) to pass an additional flag towards the linker. When importing a profile with the above line using "qbs config --import", ea

[QBS] Enclosing a library product in special linker flags

2014-11-06 Thread Richard Weickelt
Hi, I have a project with an application and a couple of static libary products as dependencies. When it comes to linking, I need all symbols of one library to be linked into the executable. This can be achieved with the --whole-archive flag. The following line applies this flag to only one librar

Re: [QBS] Enclosing a library product in special linker flags

2014-11-07 Thread Richard Weickelt
>> I have a project with an application and a couple of static libary >> products as dependencies. When it comes to linking, I need all symbols >> of one library to be linked into the executable. This can be achieved >> with the --whole-archive flag. The following line applies this flag to >> only

Re: [QBS] propagate compiler options

2015-01-11 Thread Richard Weickelt
> Thanks for your reaction. I probably have now other choice than doing it > like that but I see it as a work-around. I also played with SubProjects > and Modules but nothing solves my problem. For QT creator I tried the > test in this directory "qt-labs-qbs/tests/auto/api/testdata” and that one >

Re: [QBS] propagate compiler options

2015-01-16 Thread Richard Weickelt
> I don’t understand why they made it in such a way. You want to make a > product using other products but the “main" product decides for which > platform and with which configuration it is build. This is only a very specific use-case. What, if there is no single "main" product, but many products

Re: [QBS] propagate compiler options

2015-01-17 Thread Richard Weickelt
Hi Marcel, > I don’t think it is a special use case I am talking about. Probably I am > not clear about how I see it. A project exists of one or more products. > Each top-level product defines a set of options and flags, because you do > not define this in the project item. The product uses “sub”-

Re: [QBS] propagate compiler options

2015-01-17 Thread Richard Weickelt
> I have for example application A which depend on static library B and C. > Static library B depends on static library C. No problem yet but now > static library C depends on B. Now we have a problem because of creating > a loop. This is however not uncommon. Most RTOSes will have such kind of >

Re: [QBS] run script after building products

2015-03-03 Thread Richard Weickelt
> Currently I'm struggling that only inputs["application"][0] is defined > but not inputs["application"][1] (I have two products of type > application). I guess, You forgot to mark the rule as multiplex in order to catch all files at once. ___ QBS maili

Re: [QBS] qbs and Altera NIOS toolchain

2015-07-11 Thread Richard Weickelt
> The only problem I have is that the linker (Altera always links with > gcc or g++) expectd a very special switch -msys-crt0=. > > Unfortunatly this switch must be given to g++ _before_ giving the > object files to link: > > nios2-elf-g++ -msys-crt='crt0.o' -o app.elf a.o b.o > > I read the sou

Re: [QBS] Linking inter-dependent libraries using gcc

2015-08-09 Thread Richard Weickelt
> I'm trying to link inter-dependent libraries, but as qbs merges the list of > libraries it seems to be impossible now. I had a somehow related question some time ago [1] and created QBS-701 [2] which You may want to support. It addresses the same procedure. > For example there are two libraries

Re: [QBS] static library dependency always recompiles

2015-09-30 Thread Richard Weickelt
> I develop an open source library which i also use in my projects. I have > created a qbs project for my applications that has the library's qbs as > a dependency, using reference. The problem is that whenever i start a > new application it recompiles the library completely. > > Instead of recompi

Re: [QBS] static library dependency always recompiles

2015-09-30 Thread Richard Weickelt
> i'm trying now to set the library in cpp.staticLibraries or directly the > full path to the .a as a cpp.linkerFlags but the project won't detect if > the library has changed. Shouldn't you use cpp.libraryPaths instead of cpp.linkerFlags? > if i modify the library and recompile it, then run the

Re: [Qbs] QBS usage

2018-06-17 Thread Richard Weickelt
Hello Tino, > I’d like to conduct a small survey about QBS usage in the community to make > investment and feature decisions to the product. I was really worried when your handyman and chief evangelist jumped off the boat towards the dark side in February. So I've got a question back: What are th

Re: [Qbs] QBS usage

2018-06-18 Thread Richard Weickelt
>> But I've had a hard time to sell Qbs at work for embedded C programming. >> The major issues is that Qbs doesn't support awkward toolchains like IAR >> or TI CGT. > > There is nothing magical about that. If you provide the necessary > information, these can simply be supported by a new cpp bac

Re: [Qbs] Any novice tickets

2018-08-06 Thread Richard Weickelt
>> https://bugreports.qt.io/browse/QBS-511 (QBS help text is not properly >> format in windows cmd shell) I guess, QBS doesn't use QCommandLineParser at >> the moment? > > No, and I don't think it can, because of the "command plus additional > arguments" syntax that qbs uses. This would be a v

Re: [Qbs] Qbs vs Jenkins

2018-09-25 Thread Richard Weickelt
> I am wondering if it was possible to replace the Jenkins pipeline with only > Qbs. In theory I see no reason why this should not work given the flexibility > of the Qbs but is there any specific functionality out of the box that could > make the typicial tasks performed by Jenkins easier? Spec

[Qbs] Future of Qbs

2018-10-30 Thread Richard Weickelt
ommittment from those? - Can we keep using TQtC infrastructure, domain wtc.? - How does the release process of Qbs work? - Are there parts in the codebase that make maintenance difficult and that could be simplified? Maybe parts duplicating Qt code that should be rebased onto Vanilla Qt? Thank You

[Qbs] tst_blackbox-qt fails

2018-12-28 Thread Richard Weickelt
Hi, 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 tests failing in tst_blackbox-qt (see log below). Looking closer a

Re: [Qbs] tst_blackbox-qt fails

2019-01-02 Thread Richard Weickelt
Christian, >> 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 >> tests failing in tst_blackbox-qt (see log below)

[Qbs] Meta-modules in Qbs

2019-01-07 Thread Richard Weickelt
Hi, this patch introduces meta-modules in Qbs: https://codereview.qt-project.org/#/c/249274/1 > If a dependency is not found, we now search for a matching meta-module > that can generate one for us. We also provide a generic fall-back > meta-module which uses pkg-config to locate the dependency (

Re: [Qbs] Including project files matching git submodules

2019-01-09 Thread Richard Weickelt
> But I have one more question: Is Project { references: [...] } the only way > to include other files, apart from defining new modules? Please specify "include other files". Did you want to say "include other .qbs files into a project"? If yes, then in addition to the 2 ways you mentioned, you

Re: [Qbs] tst_blackbox-qt fails

2019-01-29 Thread Richard Weickelt
Christian, >> 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 build -p autotest-runner profile:qt >> >>

Re: [Qbs] Unexpected behavior of MSVC generator

2019-02-16 Thread Richard Weickelt
Denis, > > What’s the point of implementing a rule for cpp files directly in the > solution and not implementing it for other cases? I don’t see any use cases. > > I'm don't understand a bit, what do you mean here? I think your view on the build process is too narrow. If all you care about is t

Re: [Qbs] bare-metal: Need help with adding of SDCC compiler

2019-02-21 Thread Richard Weickelt
> I have planns to add support for SDCC [1] compiler to QBS/QtC for > bare-metal devices. > > But problem is that this compiler supports multiple different arcitectures: Unlike your IAR implementation, I wouldn't probe the compiler and guess qbs.architecture. Instead I would expect the user t

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

2019-04-04 Thread Richard Weickelt
Hello Tino, thanks for the update. > In addition to contributors, the Qbs project would need a new maintainer. > Christian Kandeler has done a great job, but his effort is needed in other > projects as well. We are looking for a new maintainer, who has a good > understanding of Qbs and will take

Re: [Qbs] Any novice tickets

2019-05-01 Thread Richard Weickelt
> Meanwhile, I get another question… I think, I already asked it, but still. Is > the magic behind config parameter documented somewhere? Have you looked at https://doc.qt.io/qbs/cli-build.html#parameters ? This was updated only recently. ___ Qbs mai

Re: [Qbs] Donation to QBS developers/maintainers/contributes

2019-05-14 Thread Richard Weickelt
> If I am right, one urgent task is to remove the dependency of Qt Script. I don't think it's urgent. It might not even be necessary given that Qbs won't be Qt's next build system and won't have to be bootstrapped. But if you have good ideas, feel free to discuss in https://bugreports.qt.io/brow

Re: [Qbs] Donation to QBS developers/maintainers/contributes

2019-05-14 Thread Richard Weickelt
>> However, will this help to get new developers? Right now, there are not that >> many contributors. > > I agree, how much money do you want to raise? And what for? > For now Qbs can use Qt (company/project) infra, so there's no need to > manage an infra. The Qt Company pays for qt.io. We can a

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

2019-05-14 Thread Richard Weickelt
Tobias, I think it is of utmost importance for the survival of Qbs that it is fully supported by an IDE like QtCreator. > Note that this is about the build system used to *build Qt Creator with*, not > about *build systems supported by Qt Creator*. I would personally like to keep > qbs supported

Re: [Qbs] Donation to QBS developers/maintainers/contributes

2019-05-15 Thread Richard Weickelt
> Maybe then, do we can take the JS engine from the Qt declarative? As > a simple way... No? Let's define a first concrete tasks, what do we > need to do at all? :) 1. Read and understand https://bugreports.qt.io/browse/QBS-913 2. Analyse and understand how Qbs uses the JS engine from QtScript 3

Re: [Qbs] Future of Qbs

2019-05-16 Thread Richard Weickelt
for your reply. Best regards Richard Weickelt ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

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

2019-05-20 Thread Richard Weickelt
> 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 not an option when it comes to CI integration etc. > > Next time I will

Re: [Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Richard Weickelt
Ivan, Do you actually want to achieve this? Module { property bool useFeature: false Probes.BinaryProbe { condition: useFeature } } Product { Depends { name: "mymodule"; } mymodule.useFeature: true } The Parameter item, as far

Re: [Qbs] How do I use Parameter property in a module itself?

2019-06-10 Thread Richard Weickelt
> Is it true that all module properties should be allowed to be set per-file? > > Product { > Depends { name: "mymodule"; } > mymodule.useFeature: true // enable some probes here, do heavy checks > > Group { files: «file»; mymodule.useFeature: false; } // does nothing, > all

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

2019-07-04 Thread Richard Weickelt
> How to add -pthread option into projects? > ... >     cpp.cppFlags: ["-pthread"] Try using cpp.cxxFlags or cpp.driverFlags instead. cpp.cppFlags has a different meaning. See https://doc.qt.io/qbs/qml-qbsmodules-cpp.html#cppFlags-prop > I encountered this error too when use qbs file generated by

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

2019-07-04 Thread Richard Weickelt
> How to add -pthread option into projects? > ... >     cpp.cppFlags: ["-pthread"] Try using cpp.cxxFlags or cpp.driverFlags instead. cpp.cppFlags has a different meaning. See https://doc.qt.io/qbs/qml-qbsmodules-cpp.html#cppFlags-prop > I encountered this error too when use qbs file generated by

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

2019-07-05 Thread Richard Weickelt
> My next question is how to fix the bug in conan qbs generator? driverFlags > does not exist in conan qbs generator. You can either 1. Wait for this fix to be integrated: https://github.com/conan-io/conan/pull/5452 2. Modify the Qbs generator in your Conan installation 3. Implement your own Qbs

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

2019-07-05 Thread Richard Weickelt
>> 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. Regardless of the CMake inherent beauty. If you (Victor) want to have a profound answer to your question, you should explain what CMake

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

2019-07-06 Thread Richard Weickelt
> I created a simple project to copy an executable generated by > CppApplication. However the executable is not copied. > > I cannot figure out why? Can anyone tell me why? Please read https://doc.qt.io/qbs/qml-qbslanguageitems-rule.html#rules-and-product-types Your rule is not executed because

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

2019-07-07 Thread Richard Weickelt
> No, this is not possible. The reason is that in common case those products > (applications, libraries) will diverge in some way. For example, you might > want to use different resources - icons (you probably do not want to name > them icon1.png and icon2.png, right?), .desktop entires on Linux, p

Re: [Qbs] [RFC] Add a clang-format config file to qbs repo

2019-07-09 Thread Richard Weickelt
Nice, is there a possibility that the Qt Sanity Bot will review the style and give feedback immediately? ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] How to download and uncompress files with Qbs directly?

2019-08-04 Thread Richard Weickelt
> Does Qbs support downloading and uncompressing files directly? Not directly, because it is a build automation tool and not a package manager. > For example, I need to use Eigen 3.3.7 > in my project, and > install it in the build folders of

Re: [Qbs] How to download and uncompress files with Qbs directly?

2019-08-05 Thread Richard Weickelt
>> Another automated and platform-independent library interface would be Conan >> or vcpgkg. Have you searched for packages on bintray? >> > these are some of the services that would need wrapping. Why would you wrap these tools with Qbs and not use them side-by-side or - the other way round -

Re: [Qbs] How to download and uncompress files with Qbs directly?

2019-08-06 Thread Richard Weickelt
> Do you think I can use Network Access API of Qt to download files and > QByteArray::qUncompress to uncompress files in Qbs code? Qbs doesn't provide access to these API. And even if it would, they are not sufficient to achieve what you want. I think you are better off using external tools for do

[Qbs] Define the link order without an explicit dependency

2019-08-08 Thread Richard Weickelt
Hello, 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 product can only depend on one of them at a time StaticLibrary {

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

2019-08-11 Thread Richard Weickelt
> Why not have a central property that controls these dependencies everywhere? > Can be done without redundant code via a proxy product: > > Product { > name: "A" > property string libAVariant: "a1" > Export { > Depends { name: "A-1"; condition: product.libAVariant === "a1" }

Re: [Qbs] Will Qbs 1.15 be developed and released by The Qt company?

2019-08-21 Thread Richard Weickelt
> Thanks to The Qt company and all Qbs contributors, we know Qbs 1.14 release > is around the corner. > > I think it should be the time to let Qbs contributors and users to know > more the future of Qbs. > > Will Qbs 1.15 be developed and released by The Qt company? If the Qt Company follows th

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

2019-08-27 Thread Richard Weickelt
> CppApplication { > name: "test" > cpp.includePaths: sourceDirectory > files: [ > "main.cpp", > ] > Depends { name: "Qt"; submodules: ["core", "xml"] } > Depends { name: "kdsoap" } > Rule { > multiplex: true >

Re: [Qbs] run test executables outside QBS environment

2019-08-28 Thread Richard Weickelt
> I'm looking for a way to run test executables - created by QBS - outside > of a QBS environment. To me this looks problematic since you can define > runVars inside QBS that are not known outside of QBS. > > Any idea how to handle this? An idea, not a solution. You could generate a shell wrappe

[Qbs] Use compiler flags file generated by a rule

2019-08-29 Thread Richard Weickelt
Hi, 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 product and also export them to dependent products. I guess this is not p

Re: [Qbs] Ideas inspired by pro2cmake.py

2019-09-20 Thread Richard Weickelt
> On Fri, Sep 20, 2019 at 10:14:54PM +0800, Vincent Hui wrote: >> It seems that it is possible to develop pro2qbs.py, [...] >> > patches for https://bugreports.qt.io/browse/QBS-586 welcome. ;) Indeed, that would be a great contribution, Vincent. ___ Qbs

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

2019-10-09 Thread Richard Weickelt
re unsure whether you will do the 1.15.0 release at all, please communicate that as well. That is the only chance for the community to step up and take over responsibilities. Thanks Richard Weickelt ___ Qbs mailing list Qbs@qt-project.org https:/

Re: [Qbs] [baremetal] I looking proffesionals faced with Cypress FX2 && IAR

2019-10-18 Thread Richard Weickelt
Hi, > Currently it does work with Keil C51 compiler && SDCC compiler. But, it does> > not work with an IAR 8051 compiler. I guess you do not have JTAG access to this device and can step-debug. But it looks like you have GPIOs that you could access with a logic analyzer. > I don't know why, but

Re: [Qbs] Session at Qt Contributor Summit next month?

2019-10-18 Thread Richard Weickelt
Hi Kai, thanks for the heads-up. > Nov 19-21th 2019 Qt contributors gather in Berlin to discuss the state of > the project, make plans and sometimes also do decisions 😉 I'm wondering > whether there's interest also for a Qbs session? So far nobody registered > one ... Since Qbs will not become Q

Re: [Qbs] [baremetal] I looking proffesionals faced with Cypress FX2 && IAR

2019-10-19 Thread Richard Weickelt
> It did not helps, because a problem is somewhere  deeped. E.g. in this code: > > static BOOL ep0_std_descriptor_proc(void) > { >     BYTE XDATA *pdesc = >     (BYTE XDATA *)hid_ep0_std_desc_get(); >     if (pdesc) { >     SUDPTRH = usb_word_msb_get(pdesc); >     SUDPTRL = usb_wor

[Qbs] 1.15 branch created

2019-10-19 Thread Richard Weickelt
Hi, Christian has branched off qbs 1.15 yesterday. Scheduled release date for version 1.15.0 is end of November (together with Qt Creator 4.11) [1]. We recommend users to try this branch with their projects and report back any new problems they find. Qt Creator 4.11 beta still ships the Qbs 1.14 b

Re: [Qbs] Understanding installation rules

2019-11-18 Thread Richard Weickelt
> The reason why I added the "application" tag to the rule is that this > seemed to force the execution of the rule, with otherwise wouldn't be > considered. This is semantically wrong because your rule does not produce an "application" artifact. I'd suggest to add "desktopfile" to the additionalP

Re: [Qbs] Module adding source files to a project

2019-11-27 Thread Richard Weickelt
> Should the AppImageKit repository (or only the parts needed for building > the runtime.c file) be imported into the QBS repository (maybe added as > a git submodule)? Or should we fetch the sources at runtime? Ideally, I think, the user would just invoke some tool and use a prebuilt binary and n

Re: [Qbs] Deployment and dependency bundling

2019-12-28 Thread Richard Weickelt
> I've got it working to some point by adding these properties to the Rule: > > inputsFromDependencies: ["application", "dynamiclibrary"] > multiplex: true > outputFileTags: ["deployed_library"] > > but this causes the Rule to be run only for the application's > dependencies, and not

[Qbs] Qbs 1.15.0 released

2020-01-02 Thread Richard Weickelt
Hello, I'd like to announce the release of Qbs 1.15.0. Source and binary packages as well as a change log can be found at https://download.qt.io/official_releases/qbs/1.15.0/. This release of Qbs is also shipped as part of Qt Creator 4.11.0. Please refer to https://www.qt.io/blog/qbs-1.15.0-relea

Re: [Qbs] QBS behaviour while linking

2020-01-28 Thread Richard Weickelt
Hi, > Hmm ... I observe that the "Compile Output" inside QtC sometimes stops while > linking a library and (using htop) one can see that no other core is used. > After that further compilations can be seen. > Maybe the linking of the component A has to be completely finished before > compiling

Re: [Qbs] Accessing qbs.architecture in Probe

2020-01-30 Thread Richard Weickelt
>> Here's the probe. I is instantiated at project level where the value of >> 'generatedQbsFilePath' is added to the 'references' property. Leon, would you please post your probe code to the mailing list? I am generally interested in Qbs Conan integration and would like to see how others do it.

Re: [Qbs] Passing paths to properties

2020-02-01 Thread Richard Weickelt
> 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? That is - by definition - relative to qbs.installRoot. > Also, while t

Re: [Qbs] Interfacing Qbs to Conan

2020-02-02 Thread Richard Weickelt
Hello Leon, I am really glad to read that Clausmark is looking into interfacing Qbs with Conan. Since Conan gets more and more traction and brings great advantages, Qbs should support it well. That's why I want to share some more detailed thoughts on this topic. I'll start with what I originally h

Re: [Qbs] Construction project.buildDirectory

2020-02-05 Thread Richard Weickelt
Hello Pavel, >> Some code has been moved around to fix a different problem with >> Project-level probes, so this appears to be a side effect of that. >> However, you can just leave off the "project.", and it will work both >> with 1.15 and 1.14. > Yes, i did so. But I wanted to find out if the pr

Re: [Qbs] Construction project.buildDirectory

2020-02-06 Thread Richard Weickelt
> 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 > http://download.qt.io/snapshots/qtcreator/4.11/4.11.1/187/ or just wait for > the official

Re: [Qbs] Interfacing Qbs to Conan

2020-02-13 Thread Richard Weickelt
Jochen, > Basically, we are doing it the way you described. However, we decided not > to make a conan module which the generated modules depend on because we > expect that this would lead to multiple invokations of `conan install` > (one for each generated module) which we want to avoid. This sh

Re: [Qbs] Exporting libraries to link only for MinGW

2020-02-22 Thread Richard Weickelt
> You don't need a group here in the first place. Just > cpp.dynamicLibraries: { >var libs = []; >if(qbs.toolchain.contains("mingw")) >libs = libs.concat(["pthread", "ole32"] ) >return libs; > } Or to be more explicit: You **must** not use the Group item for this purpose. The

[Qbs] 1.16 branch created

2020-03-17 Thread Richard Weickelt
Hello, we branched off qbs 1.16 today. Scheduled release date for version 1.16.0 is mid of April (together with Qt Creator 4.12) [1]. We recommend users to try this branch with their projects and report back any new problems they find. Snapshots of Qt Creator can then be obtained from [2]. Contri

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

2020-03-20 Thread Richard Weickelt
> 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 iOS-arm64 but attempting to link with file built for

Re: [Qbs] Building Qbs for conan/bintray on Gitlab

2020-03-23 Thread Richard Weickelt
Hello, > I try to build a Qbs conan package (with static linked Qt) so conan could > just install Qbs with a simple "build_requires". Building the conan package > works fine on my local machine. But when I use Gitlab-CI to build the > packages it fails to build. > To build locally I use the follow

Re: [Qbs] Building Qbs for conan/bintray on Gitlab

2020-03-29 Thread Richard Weickelt
> Oh. Interesting. I did not saw that the plugins are not compiled. But I > don't know why. If you look into conanfile.py it just calls > > qmake -r qbs/qbs.pro CONFIG+=qbs_no_dev_install > CONFIG+=qbs_no_man_install CONFIG+=qbs_use_bundled_qtscript > > Followed by a simple >

Re: [Qbs] Mingw issues

2020-04-05 Thread Richard Weickelt
Alberto Mardegan wrote on 5. Apr 2020 18:52 (GMT +02:00): > Hi all! > I've a feeling I've met this problem before, but I cannot remember > what the solution was. So here I am again :-) > > I'm trying to build an application for Linux, using QBS with MXE. I've > setup my toolchain like this: >

Re: [Qbs] Mingw issues

2020-04-07 Thread Richard Weickelt
> It looks like the value of > `profiles.mxe-i686-w64-mingw32-static.cpp.toolchainPrefix` was > incomplete (you can see it from the config pasted above). It should have > been "i686-w64-mingw32.static-", and after changing it to that value, > the build started. > > So, actually, my problem is solv

[Qbs] Qbs 1.15.0 released

2020-05-05 Thread Richard Weickelt
Hello, I'd like to announce the release of Qbs 1.16.0 if you haven't seen the blog post, yet. Source and binary packages as well as a change log can be found at https://download.qt.io/official_releases/qbs/1.16.0/. This release of Qbs is also shipped as part of Qt Creator 4.12.0. Please refer to

Re: [Qbs] Qtc: Cannot find the androiddeploy Json file

2020-05-11 Thread Richard Weickelt
> When i want to "run" on the device: > Initializing deployment to Android device/simulator > Deploying to 150c980e8288de07 > Cannot find the androiddeploy Json file. > Error while building/deploying project Neon Factory Tools (kit: > Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a))

Re: [Qbs] Android multiarch

2020-05-14 Thread Richard Weickelt
> As an experiment, i've just tried Qt-5.14, and this has enabled > multi-arch on Android. > I can select the list of architecture i want to support with > qbs.architectures. > This works for libraries, but my application is disabled: > Error while handling 'TestApp' > Product 'TestApp' had error

Re: [Qbs] Using ConanfileProbe with yocto cross compiling toolchain

2020-05-15 Thread Richard Weickelt
> I just stumbled across a scenario in which we use with multiple profiles for > different cross compiling toolchains. Yocto creates a script which exports > environment variables. We normally just extract the needed values from the > script and set them as additional qbs profile settings. > This l

Re: [Qbs] Using ConanfileProbe with yocto cross compiling toolchain

2020-05-15 Thread Richard Weickelt
> I will try this approach. But maybe I use `conan install -e` instead of > setting the environment variables for the complete process. If the result is the same, then why not. > Do you know how I can easily extract the environment variables? >  https://doc.qt.io/qbs/jsextension-environment.html#

Re: [Qbs] Using ConanfileProbe with yocto cross compiling toolchain

2020-05-15 Thread Richard Weickelt
> Sorry. I meant how to extract the environment variables from the yocto script. > My idea was to source the script in a process > with https://doc.qt.io/qbs/jsextension-process.html  > and then just query all the process environment variables with > https://doc.qt.io/qbs/jsextension-environment.h

Re: [Qbs] setup-android, no --system?

2020-05-15 Thread Richard Weickelt
> I find this quite useful when creating docker container. > The idea is that the container (name) completely define the whole > build config, and running "qbs build" in there build an APK with the > "right" configuration. > No env involved, no foreknowledge of the profile name, it just work > out

Re: [Qbs] setup-android, no --system?

2020-05-15 Thread Richard Weickelt
> Because this file will end up in some "home" directory, which might > not be accessible to the end user (eg. custom UID, GID, home, ...) > Having a system wide qbs conf is bullet-proof in that regard. > So, yes i would prefer to run the above command, but with '--system' > and no, you cannot sim

Re: [Qbs] setup-android, no --system?

2020-05-15 Thread Richard Weickelt
> Thanks for the detailed explanation, i've been looking at your scripts > and docker files recently (and have adopted your install-qt.sh! ;)) > I think we don't have the same use case, you need to build and test > qbs, i need to build and test a android+qt+qbs container that works > "out of the b

Re: [Qbs] Using ConanfileProbe with yocto cross compiling toolchain

2020-05-22 Thread Richard Weickelt
> I archived my goal with the following code: Good to hear. Thanks for posting the code. > But this code has some restrictions (like using bash or zsh but not fish). I wouldn't consider it a restriction not to support an exotic shell. > Thus I don't think that it should be made into the offici

Re: [Qbs] Evaluation of Conditional Depends

2020-06-06 Thread Richard Weickelt
> In ModuleA there is a property enableFeature which by default is false. > > ModuleB conditionally depends on ModuleC, if ModuleA.enableFeature is true. > > A Product depends on ModuleA and ModuleB and sets ModuleA.enableFeature to > true. However, ModuleC is not used as a dependency. Could y

Re: [Qbs] Evaluation of Conditional Depends

2020-06-07 Thread Richard Weickelt
Christian Gudrian wrote on 7. June 2020 10:48 (GMT +02:00): > > I’ve put a simple example project on GitHub: > https://github.com/cgudrian/QbsConfigurationDemo > . > > I am trying to implement basic Qbs support for the RT operating system > Ch

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Richard Weickelt
Christian Kandeler wrote on 10. June 2020 10:09 (GMT +02:00): > 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 mo

Re: [Qbs] Evaluation of Conditional Depends

2020-06-10 Thread Richard Weickelt
> And of course the module's own properties set in the module file, except > those referring to probes. But we do evaluate the module condition in a > product context. Is that not the real product context or at least very > close? E.g. if product sets moduleX.propA to true and depends on moduleX, >

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Richard Weickelt
> We faced similar problems but our resolve times were even higher (30 s to > 2 mins). > > We were able to work around this and significantly reduce the resolve > times by avoiding transitive dependencies (meaning exporting > dependencies). I would like to understand why exactly this pattern mak

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Richard Weickelt
> I would like to know if any measures are being planned to > increase the speed of re-parsing a project? I am using QtCreator 4.11.2 > (QBS 1.15.1) Some ideas: 1. Incremental project resolving: Take the dependency graph into account when re-resolving a project so that unchanged products are not

Re: [Qbs] QBS script parsing speed

2020-06-30 Thread Richard Weickelt
Jochen, >> Well [the time] goes into "Handling Products". So it is >> ModuleLoader::handleProduct(). >> And there, it could be the ModuleMerger. But speculation is dangerous when >> discussing about performance. > See https://lists.qt-project.org/pipermail/qbs/2019-August/002546.html > > You ca

[Qbs] 1.17 branch created

2020-07-09 Thread Richard Weickelt
Hello, we branched off Qbs 1.17 today. Scheduled release date for version 1.17.0 is end of August (together with Qt Creator 4.13) [1]. We recommend users to try this branch with their projects and report back any new problems they find. Snapshots of Qt Creator can then be obtained from [2]. Contr

Re: [Qbs] Applying cxxFlags to certain files

2020-07-10 Thread Richard Weickelt
> Hi. I have a code generator, encapsulated in a dedicated Module, producing > c++ source files. The generator's artifacts are then picked up by the > "cpp" > module according to the rules. For such generated files (and for them > only) > I would like to pass certain flags to the compiler (to suppr

  1   2   >