[Qbs] Using self compiled Qbs with self compiled QtCreator

2018-12-16 Thread Björn Schäpers
Hi, I try to use self compiled Qbs and QtCreator on Windows (MinGW not MSVC, no msys or cygwin). I'm using a separate Qbs checkout, not the one delivered with QtCreator. My first problem was while compiling QtCreator the linker looked for libqbscore.a, but the file is named libqbscore1.a.

[Qbs] Including project files matching git submodules

2019-01-03 Thread Björn Schäpers
Hi, 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/ - lib1.qbs - lib2/ - lib2.qbs Lib2 needs lib1. The file contents

Re: [Qbs] Including project files matching git submodules

2019-01-04 Thread Björn Schäpers
Am 03.01.2019 um 22:36 schrieb Silvano Cerza: I think it should be enough to delete up.qbs and remove references: ["../up.qbs"] from lib2.qbs. Obviously if you export cpp.includePaths you must export a dependency to cpp. Il giorno gio 3 gen 2019 alle ore 22:17 Björn Schäpers <ma

Re: [Qbs] Including project files matching git submodules

2019-01-04 Thread Björn Schäpers
Am 04.01.2019 um 10:21 schrieb 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

[Qbs] Exporting libraries to link only for MinGW

2020-02-21 Thread Björn Schäpers
Hi, I'm trying to incorporate Howard Hinnant's date library and he states "mingw users: -lpthread and -lole32 are required" So I tried StaticLibrary { files: ["date/include/date/*.h", "date/src/*.cpp"] name: "date" Depends { name: "cpp" }

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

2020-02-22 Thread Björn Schäpers
Am 22.02.2020 um 09:56 schrieb 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

[Qbs] Products with Space in Name

2020-06-26 Thread Björn Schäpers
Hi, I have a lot of products which have spaces in their name. Until now everything was fine, but now I want to access the property of one of my dependencies. How to do that with a space in the name, or should spaces in the name be banned completely? Works: DynamicLibrary { name:

Re: [Qbs] Products with Space in Name

2020-06-26 Thread Björn Schäpers
Am 26.06.2020 um 13:42 schrieb 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 = ["F