Re: [QBS] Property baseDir in input but not inputs

2014-05-28 Thread Christian Kandeler
On 05/28/2014 12:12 PM, johannes.mato...@microchip.com wrote: I’m wondering why the rules ‘input’ property contains a property baseDir while the artifacts in the ‘inputs’ property don’t have it. I That's an implementation glitch. Should really be fixed. I’m currently trying to create a

Re: [QBS] Just a few questions

2014-05-28 Thread Christian Kandeler
On 05/28/2014 04:13 PM, Kevin Chaves wrote: That is certainly unexpected. If you can reproduce, please file a bug with a minimal example and the steps to trigger it. It does not happen for me. I'll see if i can reproduce it on a smaller scale. There is a very large stack of subprojects. I

Re: [QBS] Just a few questions

2014-05-28 Thread Christian Kandeler
On 05/28/2014 05:49 PM, kmchaves wrote: project dir/qbs/imports/MyItem.qbs: import qbs So would project dir br a relative path? I don't think I understand. This is just an example directory layout. Christian ___ QBS mailing list

Re: [QBS] Just a few questions

2014-05-27 Thread Christian Kandeler
On 05/26/2014 07:10 PM, Kevin Chaves wrote: I thought I read something about qbs being able to use inheritance but I’m not sure if this is true. And I’m a little confused over the difference between Project { references: } and Project { SubProject {} }. references is a shorter way of saying

Re: [QBS] flex

2014-05-27 Thread Christian Kandeler
On 05/27/2014 12:40 AM, olivier musse wrote: I have implemented Rules for qlalr and flex in qbs but i'm facing an issue. My qlarl rule is well working since the generated cpp file is a file that is compiled. But my flex rule is not working because the generated file is included from another

Re: [QBS] flex

2014-05-27 Thread Christian Kandeler
On 05/27/2014 11:19 AM, olivier musse wrote: 2) If you want your generated file to be considered a C++ source file, you need to tell qbs that by giving it the cpp file tag: Artifact { fileName:ruleslexer.cpp fileTags: cpp } This is what I have done but then the

Re: [QBS] How to use linking dependences of the third-party libraries

2014-05-27 Thread Christian Kandeler
On 05/27/2014 12:03 PM, Denis Shienkov wrote: Guys, can someone help me, please? :) Sorry, this is so weird I don't even know where to start. The fact that you add DLLs as source files takes me right out, for instance. Perhaps you want cpp.dynamicLibraries? I can only guess. Christian

Re: [QBS] Just a few questions

2014-05-27 Thread Christian Kandeler
On 05/27/2014 04:19 PM, Kevin Chaves wrote: I guess you could achieve something like that with a custom Rule or Transformer, but you should be aware that that part of the build will be opaque to qbs, so a bit of time will be wasted calling qmake/make when building incrementally as qbs

Re: [QBS] Just a few questions

2014-05-27 Thread Christian Kandeler
On 05/27/2014 05:36 PM, Kevin Chaves wrote: Possibly. I guess it depends on what exactly you want to do. One example is to build qwt and export the paths to the headers and .lib. After this initial build we shouldn't have to worry about building it again in the project tree. The

Re: [QBS] Get property from parent project

2014-05-23 Thread Christian Kandeler
On 05/22/2014 06:07 PM, Tim Hutt wrote: Product { property string foo: baz Rule { prepare: { var a = product.foo; Sure it does. We use that all the time. Try again ;) Here is a full example that I just tested: $ cat project.qbs import qbs Product { type:

Re: [QBS] qbs qt creator

2014-05-23 Thread Christian Kandeler
On 05/23/2014 11:44 AM, Kurt Keller wrote: Am Donnerstag, den 22.05.2014 schrieb Christian Kandeler christian.kande...@digia.com: On 05/22/2014 05:04 PM, Kurt Keller wrote: Is this a self-compiled Creator or did you download it in binary form? This is a self-compiled Creator. In that case

[QBS] qbs 1.2.1 released

2014-05-23 Thread Christian Kandeler
Hi, we have just released qbs 1.2.1, which fixes a number of bugs uncovered after the release of 1.2.0. As usual, source packages and a binary package for Windows can be downloaded from http://download.qt-project.org/official_releases/qbs/1.2.1. Christian

Re: [QBS] Module property in a rule

2014-05-23 Thread Christian Kandeler
On 05/23/2014 01:53 PM, olivier musse wrote: Once again an issue while trying to get properties in a Rule, I found the following is not working and ask myself if it is a bug or not. This should really nice if it works then enabling to add to any product a set of properties and use them in

Re: [QBS] qbs config for multiple users

2014-05-23 Thread Christian Kandeler
On 05/23/2014 11:50 AM, Kurt Keller wrote: I have a linux server with multiple users. All users want to use the same qbs profile. (They all use the same Qt Versions, the same Qt Creator, the same environment, the same compilers.) How can I set up a single profile for all users? (They want

Re: [QBS] Get property from parent project

2014-05-23 Thread Christian Kandeler
On 05/23/2014 11:05 AM, Tim Hutt wrote: I have found a reliable way to trigger the qbs-isn't-updated bug: 1. Create a new C++ QBS project in QtCreator. 2. Rename main.cpp to foo.txt 3. Paste this in the QBS file: import qbs Product { type: foo Group { files: foo.txt fileTags:

Re: [QBS] qbs qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 11:32 AM, Kurt Keller wrote: I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and installed into a single folder, called qtdevenv-5.3. I can use Qt Creator with qbs projects - no problem. But how can I install qbs in a way that - it resides in the same install folder

Re: [QBS] Get property from parent project

2014-05-22 Thread Christian Kandeler
On 05/22/2014 01:26 PM, olivier musse wrote: I have a project with subproject and so on. When in a product or a subproject, how to access parent project properties. Sometimes it seems to be project.MyProperty, sometimes MyProperty Is there any documentation to clarify this point? Simple:

Re: [QBS] qbs qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 02:29 PM, Kurt Keller wrote: Am Donnerstag, den 22.05.2014 schrieb Christian Kandeler christian.kande...@digia.com: On 05/22/2014 11:32 AM, Kurt Keller wrote: I have Qt Creator 3.1.1 and Qt 5.3.0 successfully compiled and installed into a single folder, called qtdevenv-5.3. I

Re: [QBS] qbs qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 03:43 PM, Kurt Keller wrote: So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the Qt Creator version of qbs (1.2) into my development directory. After that I had to copy the plugins from lib/qtcreator/qbs to lib/qbs and the modules from

Re: [QBS] Get property from parent project

2014-05-22 Thread Christian Kandeler
On 05/22/2014 04:00 PM, Tim Hutt wrote: Relatedly, how can I access properties from a Rule's prepare script? E.g. this does not work - it thinks foo is not defined. Rule { property string foo: baz prepare: {

Re: [QBS] Get property from parent project

2014-05-22 Thread Christian Kandeler
On 05/22/2014 04:19 PM, olivier musse wrote: Property inheritance is really nice and simple. Thanks for this important information. I have succeed to verify it, but then have another question : How can I detect in the sub project if the property is already set at an higher level project.

Re: [QBS] Get property from parent project

2014-05-22 Thread Christian Kandeler
On 05/22/2014 04:35 PM, olivier musse wrote: Christian, The bug I was talking about (project prefix) is in a Rule artifact. I do something like (separated in multiple files but the same hierarchy) Project{ property string myProp:val Project{ Product{ Rule{

Re: [QBS] qbs qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 04:43 PM, Kurt Keller wrote: Am Donnerstag, den 22.05.2014 schrieb Christian Kandeler christian.kande...@digia.com: On 05/22/2014 03:43 PM, Kurt Keller wrote: So i did a 'jom install INSTALL_ROOT=.../qtdevenv-5.3' to install the Qt Creator version of qbs (1.2) into my

Re: [QBS] How to run module rules by ordered in single-threaded mode?

2014-05-22 Thread Christian Kandeler
On 05/22/2014 05:16 PM, Denis Shienkov wrote: Hi all.. I in process of creating a custom module to support of an Keil C51 compiler. Currently I have an very big problem: the C51.exe compiler is frequently crashed when it is invoked from the Rule of module. A crash happens if number of

Re: [QBS] qbs qt creator

2014-05-22 Thread Christian Kandeler
On 05/22/2014 05:04 PM, Kurt Keller wrote: Is this a self-compiled Creator or did you download it in binary form? This is a self-compiled Creator. In that case it's much simpler. Just do a make install for your qbs build and set the QBS_INSTALL_DIR environment variable to the respective

Re: [QBS] Generate pre compiled headers

2014-05-21 Thread Christian Kandeler
On 05/21/2014 12:08 AM, olivier musse wrote: Hi, I want to create a module to automatically create and compile a pre compile header file in my project For that I create the following module Why? The cpp module supports this already; see

Re: [QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Christian Kandeler
On 05/15/2014 10:30 AM, Tim Hutt wrote: I have a QBS script that depends on using the GNU Arm toolchain, and I want it to automatically find them (on Windows for now). Are you sure that's really what you want? Toolchain information typically comes from the outside via a profile, and then it

Re: [QBS] Project directory variable.

2014-05-15 Thread Christian Kandeler
On 05/15/2014 10:46 AM, Tim Hutt wrote: Is there a way to get the directory that the QBS file is in, i.e. like buildDirectory, but for the source? There is the path property that gives you the directory the current file is in. In qbs 1.3, the Project item will also have a sourceDirectory

Re: [QBS] Newbie to QBS

2014-05-13 Thread Christian Kandeler
On 05/13/2014 01:57 PM, olivier musse wrote: First thanks, its really amazing to see how people answer quick and precisely in this list. Hope I will be one day able to help also. - About post build process, your solution is working nice but I do not understand : I can understand that inputs is

Re: [QBS] RFC: Adding additional JIRA components for Qbs

2014-05-07 Thread Christian Kandeler
On 05/06/2014 09:44 PM, Jake Petroules wrote: Ossi and I briefly discussed adding some more components for Qbs in JIRA, as General seems to be getting a bit too general. Shouldn't hurt, though it would make more sense if we had enough developers to match each category with a different

Re: [QBS] Do not called custom Rule from custom Module

2014-04-07 Thread Christian Kandeler
described. Are you sure that nothing happens when you invoke qbs on your project? Have you tried removing the build dir? Christian Denis 2014-04-07 12:21 GMT+04:00 Christian Kandeler christian.kande...@digia.com mailto:christian.kande...@digia.com: On 04/05/2014 11:02 AM, Denis

Re: [QBS] Do not called custom Rule from custom Module

2014-04-07 Thread Christian Kandeler
On 04/07/2014 02:02 PM, Denis Shienkov wrote: I apply your changes, but still this Rule do not running, using the QtCreator v3.0.1 with the native integrated QBS/QBSPlugin. But! This Rule works fine using the QtCreator v3.1-beta (with the native integrated QBS/QBSPlugin). In qbs 1.1, the

Re: [QBS] How to install **/*.* and maintain the tree structure by stripping the prefix to the destination installDir?

2014-01-06 Thread Christian Kandeler
On 01/02/2014 07:42 PM, 罗勇刚(Yonggang Luo) wrote: I am using the following qbs instruction to install data, but the problem is Group { name: map data directory files: [D:/CI/615/3DMap-data/] qbs.install: false qbs.installDir: project.binInstallDir +

Re: [QBS] qbs.getenv() in qbsSearchPaths not working

2013-11-19 Thread Christian Kandeler
On 11/18/2013 04:41 PM, Epting, Thomas wrote: I'm currently testing QtCreator 3.0 beta (on Windows) and noticed that using qbs.getenv() in qbsSearchPaths is not working. For example: qbsSearchPaths: qbs.getenv(MYROOT) + /mypath/qbs In this case I get an error message: ReferenceError:

[QBS] qbs 1.1.0 released

2013-11-06 Thread Christian Kandeler
Hi, I'd like to announce the release of qbs 1.1.0 (code name: Polizeiruf). Read all the exciting details here: http://blog.qt.digia.com/blog/2013/11/06/qbs-1-1-0-released Christian ___ QBS mailing list QBS@qt-project.org

Re: [QBS] Multiply Artifacts in the rule

2013-10-28 Thread Christian Kandeler
On 10/28/2013 10:04 AM, Pavel Fischer wrote: for (var out in outputs) { print(Output: + out.fileName); } That's not how the for statement works in JavaScript. Instead, write: print(Output: + outputs[out].fileName); Christian

Re: [QBS] Multiply Artifacts in the rule

2013-10-28 Thread Christian Kandeler
On 10/28/2013 04:48 PM, Fischer Pavel wrote: Thank you for the reply, but it doesn't help. It's still undefined. Here is the sample project. Perhaps there is more than one error. The print statement in the attached project has exactly the same problem as the one in your last post. I have

Re: [QBS] Changing cpp.warningLevel property globally

2013-09-13 Thread Christian Kandeler
in source repository. Raphael Cotty From: qbs-bounces+r.cotty=cascade-technologies@qt-project.org [qbs-bounces+r.cotty=cascade-technologies@qt-project.org] on behalf of Christian Kandeler [christian.kande...@digia.com] Sent: 13 September 2013

<    1   2   3   4   5